예제 #1
0
 /**
  * Return name of the base widgets list
  *
  * @return string
  */
 protected function getListName()
 {
     return parent::getListName() . '.admin';
 }
예제 #2
0
 /**
  * Compose URL from target, action and additional params
  *
  * @param string  $target      Page identifier OPTIONAL
  * @param string  $action      Action to perform OPTIONAL
  * @param array   $params      Additional params OPTIONAL
  * @param boolean $forceCuFlag Force flag - use Clean URL OPTIONAL
  *
  * @return string
  */
 public function buildURL($target = '', $action = '', array $params = array(), $forceCuFlag = null)
 {
     if ('product' == $target && isset($params['category_id']) && $this->getRootCategoryId() == $params['category_id']) {
         unset($params['category_id']);
     }
     return parent::buildURL($target, $action, $params, $forceCuFlag);
 }
예제 #3
0
파일: ACustomer.php 프로젝트: kingsj/core
 /**
  * getPageBodyFile
  *
  * @return string
  */
 protected function getPageBodyFile()
 {
     if ($this->getParam(static::PARAM_WIDGET_TYPE) == static::WIDGET_TYPE_CENTER && $this->getParam(static::PARAM_DISPLAY_MODE) == static::DISPLAY_MODE_GRID) {
         return $this->isCSSLayout() ? 'body-css-layout.tpl' : 'body-table-layout.tpl';
     } else {
         return parent::getPageBodyFile();
     }
 }