public function add() { $pl = new MootoolsPluginList(); $filesets = $pl->getMootoolsPluginPackage(); $this->set("current", $this->getLoadFileSet()); $this->set("filesets", $filesets); }
public function view() { $handle = FRONTEND_DEVELOPER_PACKAGE_HANDLE; $pl = new MootoolsPluginList(); $html = Loader::helper('html'); $this->addHeaderItem($html->css('style.css', $handle)); $u = new User(); $ui = UserInfo::getByID($u->getUserID()); $username = $ui->getAttribute(MOOTOOLS_GITHUB_USER); $plugins = $pl->getMootoolsPluginPackage(); if (is_array($plugins) && count($plugins) > 0) { $fs = array_slice($plugins, 0, 1); $fs = array_shift($fs); $files = $pl->getMootoolsPluginFiles($fs); $filesets[$fs->getFileSetName()] = $files; } $this->set("uID", $u->getUserID()); $this->set("username", $username); $this->set("pkgHandle", FRONTEND_DEVELOPER_PACKAGE_HANDLE); $this->set("plugins", $plugins); $this->set("filesets", $filesets); $this->set("searchInstance", 'file' . time()); }