public static function getFolders($userid, $orderby = 'pmf_name ASC') { return array_merge(GWF_PMFolder::getDefaultFolders(), GDO::table('GWF_PMFolder')->selectObjects('*', 'pmf_uid=' . intval($userid), $orderby)); }
public function folderTable() { $folders = GWF_PMFolder::getFolders(GWF_Session::getUserID()); $uid = GWF_Session::getUserID(); $conditions = "pmf_uid={$uid}"; $orderby = GDO::table('GWF_PMFolder')->getMultiOrderby(Common::getGet('fby', 'pmf_name'), Common::getGet('fdir')); $folders = array_merge(GWF_PMFolder::getDefaultFolders(), GDO::table('GWF_PMFolder')->selectObjects('*', $conditions, $orderby)); $tVars = array('orderby' => $orderby, 'folders' => $folders, 'sort_url' => '', 'folder_action' => $this->module->getMethodURL('FolderAction')); return $this->module->templatePHP('folders.php', $tVars); }