/**
  * Инициализация модуля.
  */
 public function Init()
 {
     parent::Init();
     /**
      * Здесь можно выполнить дополнительную логику при инициализации модуля
      */
 }
Example #2
0
 /**
  * Инициализация модуля
  */
 public function Init()
 {
     parent::Init();
     /**
      * Получаем текущего пользователя
      */
     $this->oUserCurrent = $this->User_GetUserCurrent();
     /**
      * Получаем объект маппера
      */
     $this->oMapperForum = Engine::GetMapper(__CLASS__);
 }
 public function Init()
 {
     parent::Init();
     $this->oMapper = Engine::GetMapper(__CLASS__);
     /**
      * Получаем типы из БД и активируем их
      */
     if ($aTargetItems = $this->GetTargetItemsByFilter(array('state' => self::TARGET_STATE_ACTIVE))) {
         foreach ($aTargetItems as $oTarget) {
             $this->Property_AddTargetType($oTarget->getType(), $oTarget->getParams());
         }
     }
 }
 /**
  * Инициализация модуля
  *
  */
 public function Init()
 {
     parent::Init();
     $this->sPluginsDir = Config::Get('path.application.plugins.server') . '/';
 }
Example #5
0
 public function Init()
 {
     parent::Init();
 }
Example #6
0
 /**
  * Инициализация модуля
  */
 public function Init()
 {
     parent::Init();
     $this->oMapper = Engine::GetMapper(__CLASS__);
 }
Example #7
0
 /**
  * Инициализация
  *
  */
 public function Init()
 {
     parent::Init();
     $this->oMapper = Engine::GetMapper(__CLASS__);
     $this->oUserCurrent = $this->User_GetUserCurrent();
 }
Example #8
0
 public function Init()
 {
     parent::Init();
     $this->sAccessToken = Config::Get('plugin.postingingroups.vk.access_token');
     $this->iGroupId = Config::Get('plugin.postingingroups.vk.group_id');
 }
 /**
  * Возвращает дерево категорий
  *
  * @param int $sId Type ID
  *
  * @return array
  */
 public function GetCategoriesTreeByType($sId)
 {
     $aCategories = $this->LoadTreeOfCategory(array('type_id' => $sId));
     return ModuleORM::buildTree($aCategories);
 }
Example #10
0
 /**
  * Инициализация
  *
  */
 public function Init()
 {
     parent::Init();
     $this->oUserCurrent = $this->User_GetUserCurrent();
 }