本文整理匯總了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());
}