* @package WB */ /** * Load required class */ WBClass::load('WBContent' , 'WBContent_LandingPage' , 'WBContent_TableEditor'); /** * Content component: TableEditor_Banner * * @version 0.1.0 * @package WB */ class WBContent_LandingPage_Manager extends WBContent_TableEditor { /** * 2nd constructor * * Reset template folder */ protected function init() { // call parent's init parent::init(); if (empty($this->config['tableenv'])) { $this->config['tableenv'] = WBContent_LandingPage::TABLE_LANDINGPAGE; } $this->config['tmplDir'] = 'LandingPage/Manager'; switch ($this->config['tableenv']) { case WBContent_LandingPage::TABLE_ARTICLE: $this->config['table'] = WBContent_LandingPage::TABLE_ARTICLE; $this->config['searchfields'] = array('title', 'brief', 'blurb'); $this->config['managesortcolumn'] = 'orderpos'; break; default: case WBContent_LandingPage::TABLE_LANDINGPAGE: $this->config['table'] = WBContent_LandingPage::TABLE_LANDINGPAGE; $this->config['addcurrentuser'] = 'always'; $this->config['usefilter'] = 1; $this->config['searchfields'] = array('urlpath', 'title', 'brief', 'blurb'); $this->config['managesortcolumn'] = ''; break; } } /** * location of form config * * Return sub directory where form element definitions are located * * @return string folder */ protected function getFormConfigDir() { return 'landingpage/manager/' . $this->config['tableenv']; } }