当前位置: 首页>>代码示例>>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;未经允许,请勿转载。