當前位置: 首頁>>代碼示例>>PHP>>正文


PHP VanillaController::Initialize方法代碼示例

本文整理匯總了PHP中VanillaController::Initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP VanillaController::Initialize方法的具體用法?PHP VanillaController::Initialize怎麽用?PHP VanillaController::Initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在VanillaController的用法示例。


在下文中一共展示了VanillaController::Initialize方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Initialize

 public function Initialize()
 {
     parent::Initialize();
     $this->AddCssFile('garden.css');
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/garden/settings');
     }
 }
開發者ID:jhampha,項目名稱:Garden,代碼行數:8,代碼來源:settings.php

示例2: Initialize

 public function Initialize()
 {
     parent::Initialize();
     $this->ShowOptions = TRUE;
     $this->Menu->HighlightRoute('/discussions');
     $this->AddCssFile('vanilla.css');
     $this->AddJsFile('/js/library/jquery.gardenmorepager.js');
 }
開發者ID:robi-bobi,項目名稱:Garden,代碼行數:8,代碼來源:discussions.php

示例3: Initialize

 public function Initialize()
 {
     parent::Initialize();
     $this->ShowOptions = TRUE;
     $this->Menu->HighlightRoute('/discussions');
     $this->AddCssFile('vanilla.css');
     $this->AddJsFile('bookmark.js');
     $this->AddJsFile('discussions.js');
     $this->AddJsFile('jquery.menu.js');
     $this->AddJsFile('options.js');
     $this->AddJsFile('jquery.gardenmorepager.js');
     $this->FireEvent('AfterInitialize');
 }
開發者ID:kerphi,項目名稱:Garden,代碼行數:13,代碼來源:class.discussionscontroller.php

示例4: Initialize

 public function Initialize()
 {
     parent::Initialize();
     $this->Menu->HighlightRoute('/discussions');
 }
開發者ID:kerphi,項目名稱:Garden,代碼行數:5,代碼來源:class.discussioncontroller.php

示例5: Initialize

 public function Initialize()
 {
     parent::Initialize();
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/dashboard/settings');
     }
 }
開發者ID:sipp11,項目名稱:Garden,代碼行數:7,代碼來源:class.categoriescontroller.php

示例6: Initialize

 public function Initialize()
 {
     parent::Initialize();
     $this->AddCssFile('vanilla.css');
 }
開發者ID:Aetasiric,項目名稱:Garden,代碼行數:5,代碼來源:post.php

示例7: Initialize

 /**
  * Highlight route and include JS, CSS, and modules used by all methods.
  *
  * Always called by dispatcher before controller's requested method.
  *
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->ShowOptions = TRUE;
     $this->Menu->HighlightRoute('/discussions');
     $this->AddCssFile('vanilla.css');
     $this->AddJsFile('discussions.js');
     // Inform moderator of checked comments in this discussion
     $CheckedDiscussions = Gdn::Session()->GetAttribute('CheckedDiscussions', array());
     if (count($CheckedDiscussions) > 0) {
         ModerationController::InformCheckedDiscussions($this);
     }
     $this->CountCommentsPerPage = C('Vanilla.Comments.PerPage', 30);
     $this->FireEvent('AfterInitialize');
 }
開發者ID:3marproof,項目名稱:vanilla,代碼行數:23,代碼來源:class.discussionscontroller.php

示例8: Initialize

 /**
  * Highlight route.
  *
  * Always called by dispatcher before controller's requested method.
  *
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->AddDefinition('ImageResized', T('This image has been resized to fit in the page. Click to enlarge.'));
     $this->Menu->HighlightRoute('/discussions');
 }
開發者ID:srikarrohit,項目名稱:Vanillaforums-SSO,代碼行數:14,代碼來源:class.discussioncontroller.php

示例9: Initialize

 /**
  * Highlight route.
  *
  * Always called by dispatcher before controller's requested method.
  * 
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/categories');
     }
     $this->CountCommentsPerPage = C('Vanilla.Comments.PerPage', 30);
 }
開發者ID:remobjects,項目名稱:Garden,代碼行數:16,代碼來源:class.categoriescontroller.php

示例10: Initialize

 /**
  * Include CSS for all methods.
  *
  * Always called by dispatcher before controller's requested method.
  *
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->AddCssFile('vanilla.css');
     $this->AddModule('NewDiscussionModule');
 }
開發者ID:embo-hd,項目名稱:vanilla,代碼行數:14,代碼來源:class.postcontroller.php

示例11: Initialize

 public function Initialize()
 {
     parent::Initialize();
     $this->AddModule('SignedInModule');
     $this->Menu->HighlightRoute('/discussions');
 }
開發者ID:kennyma,項目名稱:Garden,代碼行數:6,代碼來源:class.discussioncontroller.php

示例12: Initialize

 /**
  * Highlight route.
  *
  * Always called by dispatcher before controller's requested method.
  * 
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/categories');
     }
 }
開發者ID:tautomers,項目名稱:knoopvszombies,代碼行數:15,代碼來源:class.categoriescontroller.php

示例13: Initialize

 /**
  * Highlight route.
  *
  * Always called by dispatcher before controller's requested method.
  * 
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     if (!C('Vanilla.Categories.Use')) {
         Redirect('/discussions');
     }
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/categories');
     }
     $this->CountCommentsPerPage = C('Vanilla.Comments.PerPage', 30);
 }
開發者ID:bishopb,項目名稱:vanilla,代碼行數:19,代碼來源:class.categoriescontroller.php

示例14: Initialize

 /**
  * Highlight route & add common JS definitions.
  *
  * Always called by dispatcher before controller's requested method.
  *
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->AddDefinition('ImageResized', T('This image has been resized to fit in the page. Click to enlarge.'));
     $this->AddDefinition('ConfirmDeleteCommentHeading', T('ConfirmDeleteCommentHeading', 'Delete Comment'));
     $this->AddDefinition('ConfirmDeleteCommentText', T('ConfirmDeleteCommentText', 'Are you sure you want to delete this comment?'));
     $this->Menu->HighlightRoute('/discussions');
 }
開發者ID:edward-tsai,項目名稱:vanilla4china,代碼行數:16,代碼來源:class.discussioncontroller.php

示例15: Initialize

   /**
    * Highlight route and include JS, CSS, and modules used by all methods.
    *
    * Always called by dispatcher before controller's requested method.
    * 
    * @since 2.0.0
    * @access public
    */
   public function Initialize() {
      parent::Initialize();
      $this->ShowOptions = TRUE;
      $this->Menu->HighlightRoute('/discussions');
      $this->AddCssFile('vanilla.css');
		$this->AddJsFile('bookmark.js');
		$this->AddJsFile('discussions.js');
		$this->AddJsFile('options.js');
      $this->AddJsFile('jquery.gardenmorepager.js');
			
		// Inform moderator of checked comments in this discussion
		$CheckedDiscussions = Gdn::Session()->GetAttribute('CheckedDiscussions', array());
		if (count($CheckedDiscussions) > 0)
			ModerationController::InformCheckedDiscussions($this);
			
		$this->FireEvent('AfterInitialize');
   }
開發者ID:nerdgirl,項目名稱:Forums-ILoveBadTV,代碼行數:25,代碼來源:class.discussionscontroller.php


注:本文中的VanillaController::Initialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。