当前位置: 首页>>代码示例>>PHP>>正文


PHP PageController::__construct方法代码示例

本文整理汇总了PHP中PageController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP PageController::__construct方法的具体用法?PHP PageController::__construct怎么用?PHP PageController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PageController的用法示例。


在下文中一共展示了PageController::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addPageData('header/assets/css', array('/admin-new/css/reset.css', '/admin-new/css/framework.css', '/admin-new/css/ui.visualized.css', '/admin-new/css/jquery.cluetip.css', '/admin-new/css/ui-coffee/ui.css'));
     $this->addPageData('header/assets/js', array('/admin-new/js/jquery.js', '/admin-new/js/jquery.ui.js', '/admin-new/js/jquery.browser.js', '/admin-new/js/jquery.validator.js', '/admin-new/js/jquery.tablesorter.js', '/admin-new/js/jquery.tablesorter.pager.js', '/admin-new/js/jquery.dataTables.js', '/admin-new/js/jquery.daterangepicker.js', '/admin-new/js/jquery.form.js', '/admin-new/js/jquery.maskedinput.js', '/admin-new/js/jquery.corners.js', '/admin-new/js/jquery.hoverintent.js', '/admin-new/js/jquery.visualize.js', '/admin-new/js/jquery.autoupload.js', '/admin-new/js/jquery.qtip.js', '/admin-new/js/general.js', '/admin-new/js/messagestack.js'));
     $this->member = Config::get('Member');
 }
开发者ID:htmlgraphic,项目名称:HTMLgraphic-MVC,代码行数:7,代码来源:AdminPageController.class.inc.php

示例2: __construct

 public function __construct()
 {
     if (!$this->displayName) {
         $this->displayName = 'Login Form';
     }
     parent::__construct();
 }
开发者ID:fierce,项目名称:fierce,代码行数:7,代码来源:LoginController.php

示例3: __construct

  public function __construct()
  {
    parent::__construct();

    global $container;
    $this->activityRepository = new Jacobemerick\Web\Domain\Stream\Activity\MysqlActivityRepository($container['db_connection_locator']);
  }
开发者ID:jacobemerick,项目名称:web,代码行数:7,代码来源:DefaultPageController.class.inc.php

示例4: __construct

 public function __construct()
 {
     Auth::requireAdmin();
     if (!$this->displayName) {
         $this->displayName = 'Manage Images';
     }
     parent::__construct();
 }
开发者ID:fierce,项目名称:fierce,代码行数:8,代码来源:MediaController.php

示例5: __construct

 /**
  * Constructor of this class.
  * It initializes some class variables used to display the right product types.
  */
 public function __construct($titleKey, $class, $type, $limit = 0)
 {
     $this->class = $class === ProductType::CLASS_UNKNOWN ? null : $class;
     $this->type = $type === ProductType::TYPE_UNKNOWN ? null : $type;
     $this->limit = $limit;
     $this->id = null;
     $view = new ProductView($titleKey, Template::PRODUCT_SECTION, new ProductModel());
     parent::__construct($view);
 }
开发者ID:webel3,项目名称:ch.bfh.bti7054.w2014.q.wew,代码行数:13,代码来源:ProductController.php

示例6: __construct

 /**
  * __construct
  *
  * PageController constructor
  *
  * @param string $template
  */
 public function __construct($template = null, $post_type = null)
 {
     $this->post_type = $post_type ? $post_type : get_post_type();
     if (!$template) {
         // try to guess the view for custom post types
         $template = sprintf("single%s.twig", $this->post_type === 'post' ? '' : "-{$this->post_type}");
     }
     parent::__construct(array($template, 'single.twig'));
 }
开发者ID:benedict-w,项目名称:pressgang,代码行数:16,代码来源:post-controller.php

示例7:

 /**
  * Construct cron controller
  *
  * @param Request $request
  * @return null
  */
 function __construct($request)
 {
     parent::__construct($request);
     if (defined('PROTECT_SCHEDULED_TASKS') && PROTECT_SCHEDULED_TASKS) {
         $code = $this->request->get('code');
         if (empty($code) || strtoupper($code) != strtoupper(substr(LICENSE_KEY, 0, 5))) {
             $this->httpError(HTTP_ERR_FORBIDDEN);
         }
         // if
     }
     // if
 }
开发者ID:NaszvadiG,项目名称:activecollab_loc,代码行数:18,代码来源:CronController.class.php

示例8: __construct

 public function __construct()
 {
     Auth::requireAdmin();
     if (!$this->noun) {
         $this->noun = preg_replace('/^.+\\\\/', '', $this->entity);
     }
     if (!$this->nounPlural) {
         $this->nounPlural = $this->noun . 's';
     }
     if (!$this->displayName) {
         $this->displayName = 'Manage ' . $this->nounPlural;
     }
     parent::__construct();
 }
开发者ID:fierce,项目名称:fierce,代码行数:14,代码来源:CrudController.php

示例9: __construct

 /**
  * Constructor
  * Set up configuration containers
  * Start session handling
  * Setup error processing and email
  * @SuppressWarnings(PHPMD.ExitExpression)
  */
 public function __construct()
 {
     parent::__construct();
     $this->_previewMode = false;
     if ($this->_config->getMode() == 'MAINTENANCE') {
         $request = new \Lvc_Request();
         $request->setControllerName('maintenance');
         $request->setActionName('index');
         // Get a new front controller without any routers, and have it process our handmade request.
         $frontController = new \Lvc_FrontController();
         $frontController->processRequest($request);
         exit;
     }
     $this->setupSession();
     $this->setupDoctrine();
 }
开发者ID:Jazzee,项目名称:Jazzee,代码行数:23,代码来源:JazzeeController.php

示例10:

 /**
  * Construct the controller
  *
  * @param void
  * @return FeedController
  */
 function __construct()
 {
     parent::__construct();
     $this->setLayout('xml');
     // default layout for this controller
 }
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:12,代码来源:FeedController.class.php

示例11: __construct

 public function __construct()
 {
     $view = new ShippingView(Template::SHIPPING, new ShippingModel());
     parent::__construct($view);
 }
开发者ID:webel3,项目名称:ch.bfh.bti7054.w2014.q.wew,代码行数:5,代码来源:ShippingController.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->jsFiles['results.js'] = array('results.js');
     $this->cssFiles['results.css'] = array('results.css');
 }
开发者ID:therealchiko,项目名称:getchabooks,代码行数:6,代码来源:ResultsController.php

示例13: __construct

 public function __construct()
 {
     $view = new RegisterView(Template::REGISTER, null);
     parent::__construct($view);
 }
开发者ID:webel3,项目名称:ch.bfh.bti7054.w2014.q.wew,代码行数:5,代码来源:RegisterController.php

示例14:

 /**
  * Construct the ErrorController
  *
  * @access public
  * @param void
  * @return ErrorController
  */
 function __construct()
 {
     parent::__construct();
     $this->addHelper('form', 'breadcrumbs', 'pageactions', 'tabbednavigation', 'company_website', 'project_website');
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:12,代码来源:ErrorController.class.php

示例15: __construct

 public function __construct()
 {
     $view = new OrderView(Template::ORDER, null);
     parent::__construct($view);
 }
开发者ID:webel3,项目名称:ch.bfh.bti7054.w2014.q.wew,代码行数:5,代码来源:OrderController.php


注:本文中的PageController::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。