示例#1
0
文件: Category.php 项目: kingsj/core
 /**
  * Get pages sections
  *
  * @return array
  */
 public function getPages()
 {
     $list = parent::getPages();
     $list['category_modify'] = $this->getCategory()->isPersistent() ? 'Modify category' : 'Add new category';
     return $list;
 }
示例#2
0
文件: Product.php 项目: kingsj/core
 /**
  * Get pages sections
  *
  * @return array
  */
 public function getPages()
 {
     $list = parent::getPages();
     $list['info'] = 'Product info';
     if (!$this->isNew()) {
         $list['images'] = 'Product images';
         $list['inventory'] = 'Inventory tracking';
     }
     return $list;
 }