コード例 #1
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('admin.keywords.service');
     $types = getConfig('system.keywords.type');
     $this->assign('types', $types);
 }
コード例 #2
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('admin.messageTemplate.service');
     //获取应用配置文档配置参数
     $templateTypes = getConfig('message.template.type');
     $messageTags = getConfig('message.template.tags');
     $this->assign('templateTypes', $templateTypes);
     $this->assign('messageTags', $messageTags);
 }
コード例 #3
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('article.article.service');
     //获取所有的子频道
     $chanelService = Beans::get('admin.chanel.service');
     $subChanels = $chanelService->getItems('pid > 0', 'id,pid,name,seo_title', 'sort_num ASC');
     $chanels = $chanelService->getItems(null, 'id,pid,name,seo_title', 'sort_num ASC');
     $this->assign('subChanels', $subChanels);
     $this->assign('chanels', ArrayUtils::changeArrayKey($chanels, 'id'));
 }
コード例 #4
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('article.article.service');
     //获取所有的频道
     $chanelService = Beans::get('admin.chanel.service');
     $chanels = $chanelService->getItems(null, 'id,pid,name,seo_title', 'sort_num ASC');
     //提取一级频道
     $topChanels = ArrayUtils::filterArrayByKey('pid', 0, $chanels);
     $tchanelIds = array();
     foreach ($topChanels as $key => $value) {
         $topChanels[$key]['sub'] = ArrayUtils::filterArrayByKey('pid', $value['id'], $chanels);
         $tchanelIds[] = $value['id'];
     }
     //提取子频道
     $subChanels = ArrayUtils::filterArrayByKey('pid', $tchanelIds, $chanels);
     $this->assign('chanels', ArrayUtils::changeArrayKey($chanels, 'id'));
     $this->assign('topChanels', $topChanels);
     $this->assign('subChanels', $subChanels);
 }
コード例 #5
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('admin.role.service');
 }
コード例 #6
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('media.media.service');
 }
コード例 #7
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('tipoff.tipoff.service');
 }
コード例 #8
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('article.tags.service');
 }
コード例 #9
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('admin.friendlink.service');
     $this->friendlink = Beans::get('admin.friendlink.service');
 }
コード例 #10
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('artone.position.service');
 }
コード例 #11
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('admin.chanel.service');
     $this->chanelService = Beans::get('admin.chanel.service');
 }
コード例 #12
0
 /**
  * 初始化方法
  */
 public function C_start()
 {
     parent::C_start();
     $this->setServiceBean('user.user.service');
 }