init() публичный Метод

Инициализация модуля, считывание настроек из базы данных и их кэширование
public init ( ) : void
Результат void
Пример #1
0
 public function init()
 {
     parent::init();
     $this->setImport(['blog.listeners.*', 'blog.events.*', 'blog.models.*', 'blog.components.*', 'vendor.yiiext.taggable-behavior.*']);
 }
 public function init()
 {
     parent::init();
     $this->setImport(array('application.modules.chemical.models.*', 'application.modules.dictionary.models.*'));
 }
Пример #3
0
 /**
  *
  */
 public function init()
 {
     $this->setImport(['notify.models.*']);
     parent::init();
 }
Пример #4
0
 public function init()
 {
     parent::init();
     $this->setImport(array('slider.models.*'));
 }
Пример #5
0
 /**
  * Инициализация модуля:
  *
  * @return nothing
  **/
 public function init()
 {
     parent::init();
 }
Пример #6
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->setImport(['delivery.models.*']);
 }
Пример #7
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->setImport(['update.models.*', 'update.components.*']);
     $this->updateTmpPath = Yii::getPathOfAlias('application.runtime') . DIRECTORY_SEPARATOR . 'updates';
 }
Пример #8
0
 public function init()
 {
     parent::init();
     $this->setImport(array('application.modules.team.models.*', 'application.modules.project.models.*'));
 }
Пример #9
0
 public function init()
 {
     $this->setImport(['user.models.*', 'user.events.*', 'user.listeners.*', 'user.components.*', 'yupe.YupeModule']);
     parent::init();
 }
Пример #10
0
 public function init()
 {
     parent::init();
     if (!$this->types) {
         $this->types = array(1 => Yii::t('FeedbackModule.feedback', 'Error on site'), 2 => Yii::t('FeedbackModule.feedback', 'Collaboration Suggest'), 3 => Yii::t('FeedbackModule.feedback', 'Other...'));
     }
     $this->setImport(array('feedback.models.*', 'feedback.components.*'));
     if (!$this->emails) {
         $this->emails = Yii::app()->getModule('yupe')->email;
     }
 }
 public function init()
 {
     parent::init();
     $this->setImport(array('portfolio.models.*'));
 }
Пример #12
0
 public function init()
 {
     parent::init();
     $this->setImport(array('application.modules.classroom.models.*', 'application.modules.poll.models.*', 'application.modules.bazi.models.*'));
 }
Пример #13
0
 public function init()
 {
     parent::init();
     $this->setImport(['application.modules.yandexmarket.models.*', 'application.modules.store.models.*']);
 }
Пример #14
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->setImport(['application.modules.store.models.*', 'application.modules.store.forms.*', 'application.modules.store.components.*']);
 }
Пример #15
0
 public function init()
 {
     $import = ['application.modules.comment.models.*'];
     foreach (Yii::app()->getModules() as $module => $data) {
         $import[] = "application.modules.{$module}.models.*";
     }
     $this->setImport($import);
     if (!$this->email) {
         $this->email = Yii::app()->getModule('yupe')->email;
     }
     $this->defaultCommentStatus = Comment::STATUS_NEED_CHECK;
     parent::init();
 }
Пример #16
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->setImport(['publication.models.*']);
 }
Пример #17
0
 /**
  *
  */
 public function init()
 {
     $this->setImport(['rbac.models.*', 'rbac.components.*']);
     parent::init();
 }
Пример #18
0
 public function init()
 {
     $this->setImport(array('user.models.*', 'user.components.*'));
     // Инициализируем роли и списки ролей
     $guestRole = Yii::app()->user->guestName;
     $this->rolesList = array();
     foreach (Yii::app()->authManager->roles as $key => $role) {
         if ($key != $guestRole) {
             $this->rolesList[$key] = $role->description;
         }
     }
     if (empty($this->rolesList)) {
         $this->rolesList = array('admin' => Yii::t('UserModule.user', 'Administrator'), 'user' => Yii::t('UserModule.user', 'User'));
     }
     parent::init();
 }
Пример #19
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->setImport(['callback.models.*']);
 }
Пример #20
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->setImport(['application.modules.realty.models.*', 'application.modules.eav.models.*', 'application.modules.eav.components.eavactiverecord.*', 'application.modules.eav.components.eavactiverecord.datatypes.*']);
 }
Пример #21
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->setImport(['category.models.*', 'category.components.*']);
 }
Пример #22
0
 public function init()
 {
     parent::init();
     $this->setImport(['sitemap.components.*', 'sitemap.events.*', 'sitemap.models.*']);
 }
Пример #23
0
 public function init()
 {
     parent::init();
     $this->setImport(['cart.extensions.shopping-cart.*', 'cart.widgets.ShoppingCartWidget', 'cart.models.*']);
 }
 public function init()
 {
     $this->setImport(array('storeswap.models.*', 'storeswap.components.*'));
     parent::init();
 }
Пример #25
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->documentRoot = $_SERVER['DOCUMENT_ROOT'];
     $forImport = [];
     if (Yii::app()->hasModule('gallery')) {
         $forImport[] = 'gallery.models.*';
     }
     $this->setImport(array_merge(['image.models.*'], $forImport));
 }
Пример #26
0
 public function init()
 {
     parent::init();
     $this->setImport(['order.models.*', 'order.forms.*']);
 }
Пример #27
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->setImport(['application.modules.yml.models.Export', 'application.modules.store.models.Product']);
 }
Пример #28
0
 public function init()
 {
     parent::init();
     $this->setImport(array('application.modules.coupon.models.*'));
 }
Пример #29
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     $this->setImport(['feedback.models.*', 'feedback.components.*']);
     if (!$this->emails) {
         $this->emails = Yii::app()->getModule('yupe')->email;
     }
 }
Пример #30
0
 public function init()
 {
     parent::init();
     $this->setImport(array('article.models.*', 'yupe.extensions.taggable.*'));
 }