コード例 #1
0
ファイル: LowInventory.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Define view list
  *
  * @param string $list List name
  *
  * @return array
  */
 protected function defineViewList($list)
 {
     $result = parent::defineViewList($list);
     if ($this->getListName() . '.footer' === $list) {
         $result[] = $this->getWidget(array('label' => 'Update'), '\\XLite\\View\\Button\\Submit');
     }
     return $result;
 }
コード例 #2
0
ファイル: FeaturedProducts.php プロジェクト: kingsj/core
 /**
  * Return params list to use for search
  *
  * @return \XLite\Core\CommonCell
  */
 protected function getSearchCondition()
 {
     $result = parent::getSearchCondition();
     foreach (\XLite\View\ItemsList\Model\Product\Admin\Search::getSearchParams() as $modelParam => $requestParam) {
         $result->{$modelParam} = $this->getParam($requestParam);
     }
     if (empty($result->{static::PARAM_CATEGORY_ID})) {
         unset($result->{static::PARAM_CATEGORY_ID});
         unset($result->{static::PARAM_SEARCH_IN_SUBCATS});
     }
     return $result;
 }