public function add_plugin_dir($dir) { if (!is_dir($dir)) { throw new pakeException("plugin path {$dir} is not found"); } $this->PLUGINDIRS[] = $dir; }