[name, description, type] array // to avoid these tasks be done several times. Skipping for the moment. #'dc' => 'plugins/departments/images/domain.png', #'dc' => 'plugins/departments/images/dc.png', #'l' => 'plugins/departments/images/locality.png', #'c' => 'plugins/departments/images/country.png', #'o' => 'plugins/departments/images/organization.png', #'ou' => 'plugins/departments/images/folder.png', function __construct($bases, $base= "") { $this->setBases($bases); $this->setBase($base); } function setBase($base) { if (isset($this->pathMapping[$base])) { $this->base= $base; } else { die("Invalid base selected"); } } function setBases($bases) { global $config; $this->pathMapping= array(); $selected= $this->base == $config->current['BASE']?"Selected":""; $this->tree= "
"._("Root")."\n"; } $this->tree.= "
\n"; echo $this->tree; // Save bases to session for autocompletion session::global_set('pathMapping', $this->pathMapping); } function render() { $result= ""; return $result; } function update() { echo "update"; } function getBase() { return $this->base; } function getAction() { // Do not do anything if this is not our PID, or there's even no PID available... #if(!isset($_REQUEST['PID']) || $_REQUEST['PID'] != $this->pid) { # return; #} } } ?>