/** * Get a list of active modules, with the folder name as the key * * This method is necessary to be able to use a static method * * @since 1.3 * @return array List of active modules */ public static function getActive() { $module_handler = new self(icms::$xoopsDB); $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('isactive', 1)); return $module_handler->getList($criteria, TRUE); }
public function copy($src, $dest) { if (!$this->isAbsolutePath($dest)) { $dest = $this->path . DS . $dest; } if (!$this->isAbsolutePath($src)) { $src = $this->path . DS . $src; } $dir = new self($src); $this->_mkdir($dest, $dir->getPermission()); if ($items = $dir->getList()) { foreach ($items as $item) { $destination = $dest . DS . basename($item->getPath()); if ($item->isFile()) { $item->copyTo($destination); } else { $this->copy($item->pwd(), $destination); } } } }
/** * * @param type $em * @param array $fields * @return type */ public static function getFullList($em, array $fields = array()) { $_instance = new self($em); return $_instance->getList(array(), $fields); }