本文整理汇总了PHP中AdminSecBaseModel::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminSecBaseModel::__construct方法的具体用法?PHP AdminSecBaseModel::__construct怎么用?PHP AdminSecBaseModel::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminSecBaseModel
的用法示例。
在下文中一共展示了AdminSecBaseModel::__construct方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct()
{
parent::__construct();
//specific things for this class
$this->userManager = User::newInstance();
}
示例2:
function __construct()
{
parent::__construct();
$this->ajax = true;
if ($this->isModerator()) {
if (!in_array($this->action, array('items', 'media', 'comments', 'custom'))) {
$this->action = 'error_permissions';
}
}
}
示例3:
function __construct()
{
parent::__construct();
if ($this->isModerator()) {
if ($this->action != 'edit' && $this->action != 'edit_post' || Params::getParam('id') != '' && Params::getParam('id') != osc_logged_admin_id()) {
osc_add_flash_error_message(_m("You don't have enough permissions"), 'admin');
$this->redirectTo(osc_admin_base_url());
}
}
//specific things for this class
$this->adminManager = Admin::newInstance();
}
示例4:
function __construct()
{
parent::__construct();
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->ajax = true;
$this->model = Page::newInstance();
}
示例6:
function __construct()
{
parent::__construct();
//specific things for this class
$this->itemCommentManager = ItemComment::newInstance();
}
示例7:
function __construct()
{
parent::__construct();
//specific things for this class
$this->localeManager = OSCLocale::newInstance();
}
示例8:
function __construct()
{
parent::__construct();
//specific things for this class
$this->resourcesManager = ItemResource::newInstance();
}
示例9:
function __construct()
{
parent::__construct();
//specific things for this class
$this->categoryManager = Category::newInstance();
}
示例10:
function __construct()
{
parent::__construct();
//specific things for this class
$this->pageManager = Page::newInstance();
}
示例11:
function __construct()
{
parent::__construct();
//specific things for this class
$this->fieldManager = Field::newInstance();
}
示例12:
function __construct()
{
parent::__construct();
$this->ajax = true;
}
示例13:
function __construct()
{
parent::__construct();
//specific things for this class
$this->adminManager = Admin::newInstance();
}