本文整理汇总了PHP中ContentController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ContentController::__construct方法的具体用法?PHP ContentController::__construct怎么用?PHP ContentController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ContentController
的用法示例。
在下文中一共展示了ContentController::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Fake a Page_Controller by using that class as a failover
*/
public function __construct($dataRecord = null)
{
if (class_exists('Page_Controller')) {
$dataRecord = new Page_Controller($dataRecord);
}
parent::__construct($dataRecord);
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->notification_repository = new SapphireFoundationMemberRevocationNotificationRepository();
$this->notification_manager = new RevocationNotificationManager(new SapphireFoundationMemberRepository(), new SapphireFoundationMemberRevocationNotificationRepository(), new SapphireElectionRepository(), new RevocationNotificationFactory(), SapphireTransactionManager::getInstance());
Requirements::css('elections/css/revocation.action.page.css');
}
示例3: __construct
public function __construct($parent = null, $replies = true, $context = null)
{
if ($parent instanceof DataObject) {
parent::__construct($parent);
} else {
parent::__construct();
$this->parentController = $parent;
}
$this->showReplies = $replies;
$this->contextUser = $context ? $context : Member::currentUser();
}
示例4:
function __construct($dataRecord = null)
{
parent::__construct($dataRecord);
return $this->index();
}
示例5:
function __construct()
{
parent::__construct(null);
}
示例6:
function __construct($dataRecord = Null)
{
parent::__construct($dataRecord);
}
开发者ID:helpfulrobot,项目名称:sunnysideup-widgets-currencyconverter,代码行数:4,代码来源:CurrencyConverterWidget.php
示例7: __construct
/**
* Creates a SilvercartPage_Controller
*
* @param array $dataRecord Data record
*
* @return void
*
* @author Sebastian Diel <sdiel@pixeltricks.de>
* @since 21.02.2013
*/
public function __construct($dataRecord = null)
{
i18n::set_default_locale(Translatable::get_current_locale());
i18n::set_locale(Translatable::get_current_locale());
parent::__construct($dataRecord);
$this->registerWidgetSet('WidgetSetContent', $this->WidgetSetContent());
$this->registerWidgetSet('WidgetSetSidebar', $this->WidgetSetSidebar());
}