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


PHP Gdn_Module::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($Sender = '')
 {
     $this->HtmlId = 'SideMenu';
     $this->AutoLinkGroups = TRUE;
     $this->ClearGroups();
     parent::__construct($Sender);
 }
开发者ID:Raz0r,项目名称:Garden,代码行数:7,代码来源:class.sidemenumodule.php

示例2: __construct

 public function __construct($Sender = '', $ApplicationFolder = FALSE)
 {
     if (!$ApplicationFolder) {
         $ApplicationFolder = 'Dashboard';
     }
     parent::__construct($Sender, $ApplicationFolder);
 }
开发者ID:elpum,项目名称:TgaForumBundle,代码行数:7,代码来源:class.guestmodule.php

示例3: __construct

 public function __construct($Sender = '')
 {
     $this->_TagData = FALSE;
     $this->ParentID = NULL;
     $this->ParentType = 'Global';
     $this->CategorySearch = C('Plugins.Tagging.CategorySearch', FALSE);
     parent::__construct($Sender);
 }
开发者ID:edward-tsai,项目名称:vanilla4china,代码行数:8,代码来源:class.tagmodule.php

示例4: __construct

 public function __construct($Sender = '', $ApplicationFolder = FALSE)
 {
     if (!$ApplicationFolder) {
         $ApplicationFolder = 'Dashboard';
     }
     parent::__construct($Sender, $ApplicationFolder);
     $this->Visible = C('Garden.Modules.ShowGuestModule');
 }
开发者ID:edward-tsai,项目名称:vanilla4china,代码行数:8,代码来源:class.guestmodule.php

示例5: __construct

 /**
  * @param string $Sender
  */
 public function __construct($Sender = '')
 {
     $this->_TagData = false;
     $this->ParentID = null;
     $this->ParentType = 'Global';
     $this->CategorySearch = c('Plugins.Tagging.CategorySearch', false);
     parent::__construct($Sender);
 }
开发者ID:sitexa,项目名称:vanilla,代码行数:11,代码来源:class.tagmodule.php

示例6: __construct

 public function __construct($Sender = '') {
    $this->_Tags = array();
    $this->_Strings = array();
    $this->_Title = '';
    $this->_SubTitle = '';
    $this->_TitleDivider = '';
    parent::__construct($Sender);
 }
开发者ID:nerdgirl,项目名称:Forums-ILoveBadTV,代码行数:8,代码来源:class.headmodule.php

示例7: __construct

 /**
  * @param Gdn_Controller $Controller The controller using this model.
  */
 public function __construct($Sender)
 {
     parent::__construct($Sender);
     if (property_exists($Sender, 'Form')) {
         $this->Form($Sender->Form);
     }
     $this->ConfigurationModule = $this;
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:11,代码来源:class.configurationmodule.php

示例8: __construct

 public function __construct($Sender = '')
 {
     parent::__construct($Sender);
     $this->_ApplicationFolder = 'dashboard';
     $this->HtmlId = 'SideMenu';
     $this->AutoLinkGroups = TRUE;
     $this->ClearGroups();
 }
开发者ID:elpum,项目名称:TgaForumBundle,代码行数:8,代码来源:class.sidemenumodule.php

示例9: __construct

 /**
  * @param int $categoryID The ID of the category we're in.
  * @param string $selectedSort The selected sort.
  * @param array $selectedFilters The selected filters.
  */
 public function __construct($categoryID = 0, $selectedSort = '', $selectedFilters = [])
 {
     parent::__construct();
     if ($categoryID) {
         $this->categoryID = $categoryID;
     }
     $this->selectedSort = $selectedSort;
     $this->selectedFilters = $selectedFilters;
 }
开发者ID:R-J,项目名称:vanilla,代码行数:14,代码来源:class.discussionssortfiltermodule.php

示例10: __construct

 public function __construct($Sender)
 {
     parent::__construct($Sender, 'Vanilla');
     $this->Visible = c('Vanilla.Discussions.UserSortField');
     // Default options
     $this->SortOptions = array('d.DateLastComment' => t('SortOptionLastComment', 'by Last Comment'), 'd.DateInserted' => t('SortOptionStartDate', 'by Start Date'));
     // Get sort option selected
     $this->SortFieldSelected = Gdn::session()->GetPreference('Discussions.SortField', 'd.DateLastComment');
 }
开发者ID:karanjitsingh,项目名称:iecse-forum,代码行数:9,代码来源:class.discussionsortermodule.php

示例11: __construct

 public function __construct($Sender)
 {
     deprecated('DiscussionSorterModule', 'DiscussionSortFilterModule', 'March 2016');
     parent::__construct($Sender, 'Vanilla');
     $this->Visible = false;
     // Default options
     $this->SortOptions = array('d.DateLastComment' => t('SortOptionLastComment', 'by Last Comment'), 'd.DateInserted' => t('SortOptionStartDate', 'by Start Date'));
     // Get sort option selected
     $this->SortFieldSelected = Gdn::session()->GetPreference('Discussions.SortField', 'd.DateLastComment');
 }
开发者ID:R-J,项目名称:vanilla,代码行数:10,代码来源:class.discussionsortermodule.php

示例12: __construct

 /**
  * MediaItemModule constructor.
  *
  * @param string $title The media item heading.
  * @param string $titleUrl If the heading is an anchor, the anchor url (the view handles url()-ing).
  * @param string $description The media item description text.
  * @param string $tag The root-level tag of the media item, usually a div or li.
  * @param array $attributes The root-level attributes for the Media Item.
  */
 public function __construct($title = '', $titleUrl = '', $description = '', $tag = 'div', $attributes = [])
 {
     parent::__construct();
     $this->description = $description;
     $this->title = $title;
     if ($titleUrl) {
         $this->titleUrl = $titleUrl;
     }
     $this->tag = $tag;
     $this->attributes = $attributes;
 }
开发者ID:vanilla,项目名称:vanilla,代码行数:20,代码来源:class.mediaitemmodule.php

示例13: __construct

 public function __construct(&$Sender = '')
 {
     // Load categories
     $this->_CategoryData = FALSE;
     if (Gdn::Config('Vanilla.Categories.Use') == TRUE) {
         if (!property_exists($Sender, 'CategoryModel') || !is_object($Sender->CategoryModel)) {
             $Sender->CategoryModel = new CategoryModel();
         }
         $this->_CategoryData = $Sender->CategoryModel->GetFull();
     }
     parent::__construct($Sender);
 }
开发者ID:sheldon,项目名称:Garden,代码行数:12,代码来源:class.categoriesmodule.php

示例14: __construct

 /**
  *
  *
  * @param string $cssClass A potential CSS class of the dropdown menu wrapper container.
  * @param bool $useCssPrefix Whether to use CSS prefixes on the nav items.
  */
 public function __construct($cssClass = '', $useCssPrefix = true)
 {
     parent::__construct();
     $this->flatten = false;
     $this->useCssPrefix = $useCssPrefix;
     $this->cssClass = $cssClass;
     if ($useCssPrefix) {
         $this->headerCssClassPrefix = 'nav-header';
         $this->linkCssClassPrefix = 'nav-link';
         $this->dropdownCssClassPrefix = 'nav-dropdown';
         $this->dividerCssClassPrefix = 'divider';
     }
 }
开发者ID:vanilla,项目名称:vanilla,代码行数:19,代码来源:class.navmodule.php

示例15: __construct

 public function __construct($Sender = '')
 {
     // Load categories
     $this->Data = FALSE;
     if (C('Vanilla.Categories.Use') == TRUE && !C('Vanilla.Categories.HideModule')) {
         if (!property_exists($Sender, 'CategoryModel') || !is_object($Sender->CategoryModel)) {
             $Sender->CategoryModel = new CategoryModel();
         }
         $Sender->CategoryModel->Watching = TRUE;
         $this->Data = $Sender->CategoryModel->GetFull();
     }
     parent::__construct($Sender);
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:13,代码来源:class.categoriesmodule.php


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