本文整理汇总了PHP中AbstractController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractController::__construct方法的具体用法?PHP AbstractController::__construct怎么用?PHP AbstractController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AbstractController
的用法示例。
在下文中一共展示了AbstractController::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct(new View(Config::DIR_TMPL), new Message(Config::FILE_MESSAGES));
$this->mail = new Mail();
$this->url_active = URL::deleteGET(URL::current(), "page");
$this->link_search = URL::get("search");
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->model = new StatsModel();
$this->view = new StatsView();
$this->chartHelper = new ChartHelper();
}
示例3: __construct
public function __construct($params)
{
if (!isset($_SERVER['SSL_CLIENT_S_DN_CN']) || $_SERVER['SSL_CLIENT_S_DN_CN'] != ADMIN_CERT) {
throw new Exception('Access denied');
}
parent::__construct($params);
}
示例4: __construct
/**
* @var ITeamInvitationRepository
*/
public function __construct()
{
parent::__construct();
$this->member_repository = new SapphireCLAMemberRepository();
$this->invitation_repository = new SapphireTeamInvitationRepository();
$this->team_manager = new CCLATeamManager($this->invitation_repository, $this->member_repository, new TeamInvitationFactory(), new TeamFactory(), new CCLAValidatorFactory(), new SapphireTeamRepository(), SapphireTransactionManager::getInstance());
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->model = new UploadModel();
$this->view = new UploadView();
$this->allowedExts = array('c', 'cpp', 'java', 'py', 'php', 'cs', 'js', 'xml', 'json', 'rb', 'scala', 'go');
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->delete_request_repository = new SapphireDupeMemberDeleteRequestRepository();
$this->merge_request_repository = new SapphireDupeMemberMergeRequestRepository();
$this->manager = new DupesMembersManager(new SapphireDupesMemberRepository(), new DupeMemberMergeRequestFactory(), new DupeMemberDeleteRequestFactory(), $this->merge_request_repository, $this->delete_request_repository, new SapphireDeletedDupeMemberRepository(), new DeletedDupeMemberFactory(), new SapphireCandidateNominationRepository(), new SapphireNotMyAccountActionRepository(), new NotMyAccountActionFactory(), SapphireTransactionManager::getInstance(), SapphireBulkQueryRegistry::getInstance());
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->suggestfeedback = new Service_Feedbackinfo();
$this->cityinfo = new Service_Cityinfo();
$this->communitypropertyinfo = new Service_Communitypropertyinfo();
$this->bllfeedbackinfo = new Bll_Feedbackinfo();
}
示例8: __construct
public function __construct()
{
parent::__construct(new View(Config::DIR_TMPL), new Message(Config::FILE_MESSAGES));
//передаем шаблонизатор и др
$this->mail = new Mail();
$this->url_active = URL::deleteGET(URL::current(), "page");
//присваиваем активную страницу удалив page
}
示例9: __construct
public function __construct($view)
{
parent::__construct($view);
// add necessary subcontrollers to display a whole page
$this->addSubController(new OutlineController());
$this->addSubController(new NavigationController());
$this->addSubController(new FooterController());
}
示例10:
function __construct()
{
parent::__construct();
$this->load->model("Projetos_model");
$allProjects = $this->Projetos_model->getXML();
$this->_data["projectList"] = $allProjects;
$this->setTemplate("pages/site/site_view");
}
示例11: __construct
/**
* Constructor
*
* @param $connector
*/
public function __construct(IBlogTransactions $connector)
{
// Wenn id auf dem Wert null bleibt, befinden wir uns in der "Latest" Ansicht
if ($this->id == 0) {
$this->numPosts = LATEST_ENTRIES_COUNT;
}
parent::__construct($connector);
}
示例12: DatabaseProxy
/**
* Initializes the Controller instance and selects the appropiate View
* @param Context $context
*/
function __construct(Context $context)
{
$type = $context->getViewType();
$class_name = $type . 'view';
$view = new $class_name($context);
parent::__construct($context, $view);
$this->db = new DatabaseProxy($this->load);
$this->helper = new HelperLoader($this->load);
}
示例13: HtmlView
function __construct(Context $context, $parent_context = null)
{
$this->parent_context = $parent_context;
$view = new HtmlView($context);
$view->setBufferOutput(true);
parent::__construct($context, $view);
$this->helper = new HelperLoader($this->load);
$this->_execute();
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->communitypropertyinfo = new Service_Communitypropertyinfo();
$this->interestgroupinfo = new Service_Group();
$this->cityinfo = new Service_Cityinfo();
$this->communityname = new Bll_Feedbackinfo();
$this->hobbyinfo = new Service_Hobby();
}
示例15: __construct
protected function __construct($controller)
{
parent::__construct($controller);
if (Router::getDefaultModule() == 'Page') {
if (Page_Handler::getPageID()) {
$this->show->merge(Page_Handler::getPage(), true);
$this->show->breadcrumbs = Page_Handler::getPage()->getParents();
}
$oPage = new Page();
list($full, $current) = $oPage->getMenuList();
if (is_array($full) && count($full)) {
foreach ($full as $menu) {
if (isset($menu["Children0"])) {
$this->show->{'MENU_' . $menu["StaticPath"]} = $menu["Children0"];
}
}
}
}
// i.kiz для интернет магазина
// $trash = NULL;
// $this->show->basketList = NULL;
if ($this->show->itemID) {
$this->show->staticPath = $this->show->itemID;
} else {
if (!empty($this->data[0])) {
$this->show->staticPath = $this->data[0];
} else {
$this->show->staticPath = 0;
}
}
$this->oCatalogCategory = new Catalog_Category();
$this->oCatalogBrand = new Catalog_Brand();
$this->show->catalogBrand = $this->oCatalogBrand->getList();
// menu
$i = 0;
$this->show->catalogMenu = array();
foreach ($this->show->catalogBrand as $br) {
$this->show->catalogMenu['Brand'][$i] = $br['Title'];
$cats = $this->oCatalogCategory->getList($br['BrandID']);
$j = 0;
foreach ($cats as $cat) {
$this->show->catalogMenu['Category'][$i][$j] = $cat['Title'];
$this->show->catalogMenu['CategoryID'][$i][$j] = $cat['CategoryID'];
$j++;
}
$i++;
}
// корзина
$this->session = MySession::getInstance();
$trash = $this->session->get('trash');
if (isset($trash)) {
$this->show->trash = $trash;
} else {
$this->show->trash = array();
}
}