/** * 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); }
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'); }
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(); }
function __construct($dataRecord = null) { parent::__construct($dataRecord); return $this->index(); }
function __construct() { parent::__construct(null); }
function __construct($dataRecord = Null) { parent::__construct($dataRecord); }
/** * Creates a SilvercartPage_Controller * * @param array $dataRecord Data record * * @return void * * @author Sebastian Diel <*****@*****.**> * @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()); }