Source for file LDirectoryDropDown.php
Documentation is available at LDirectoryDropDown.php
* @package Phundament.Components
* @subpackage WebControls
* @package System.Web.UI.WebControls
$this->setViewState('Directory', $value);
$this->getViewState('Directory');
return $this->getViewState('Directory');
parent::onPreRender($param);
$this->readDirectory($this->Directory);
$this->DataSource = $this->_s;
private function readDirectory($dir)
#if (empty($this->_s[$dir])) $this->_s[$dir] = ".";
$fullPath = $dir. "/". $file;
// prepare for dropdown datasource
$this->_s[$fullPath] = str_repeat(" ",$level- 1). $file;
$this->readDirectory($fullPath);
|