本文整理汇总了PHP中yupe\components\WebModule::init方法的典型用法代码示例。如果您正苦于以下问题:PHP WebModule::init方法的具体用法?PHP WebModule::init怎么用?PHP WebModule::init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yupe\components\WebModule
的用法示例。
在下文中一共展示了WebModule::init方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public function init()
{
parent::init();
$this->setImport(['blog.listeners.*', 'blog.events.*', 'blog.models.*', 'blog.components.*', 'vendor.yiiext.taggable-behavior.*']);
}
示例2: init
public function init()
{
parent::init();
$this->setImport(array('application.modules.chemical.models.*', 'application.modules.dictionary.models.*'));
}
示例3: init
/**
*
*/
public function init()
{
$this->setImport(['notify.models.*']);
parent::init();
}
示例4: init
public function init()
{
parent::init();
$this->setImport(array('slider.models.*'));
}
示例5: init
/**
* Инициализация модуля:
*
* @return nothing
**/
public function init()
{
parent::init();
}
示例6: init
/**
*
*/
public function init()
{
parent::init();
$this->setImport(['delivery.models.*']);
}
示例7: init
/**
*
*/
public function init()
{
parent::init();
$this->setImport(['update.models.*', 'update.components.*']);
$this->updateTmpPath = Yii::getPathOfAlias('application.runtime') . DIRECTORY_SEPARATOR . 'updates';
}
示例8: init
public function init()
{
$this->setImport(['user.models.*', 'user.events.*', 'user.listeners.*', 'user.components.*', 'yupe.YupeModule']);
parent::init();
}
示例9: init
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;
}
}
示例10: init
public function init()
{
parent::init();
$this->setImport(array('application.modules.classroom.models.*', 'application.modules.poll.models.*', 'application.modules.bazi.models.*'));
}
示例11: init
public function init()
{
parent::init();
$this->setImport(['application.modules.yandexmarket.models.*', 'application.modules.store.models.*']);
}
示例12: init
/**
*
*/
public function init()
{
parent::init();
$this->setImport(['application.modules.store.models.*', 'application.modules.store.forms.*', 'application.modules.store.components.*']);
}
示例13: init
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();
}
示例14: init
/**
*
*/
public function init()
{
$this->setImport(['rbac.models.*', 'rbac.components.*']);
parent::init();
}
示例15: init
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();
}