當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。