本文整理汇总了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);
}
示例2: __construct
public function __construct($Sender = '', $ApplicationFolder = FALSE)
{
if (!$ApplicationFolder) {
$ApplicationFolder = 'Dashboard';
}
parent::__construct($Sender, $ApplicationFolder);
}
示例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);
}
示例4: __construct
public function __construct($Sender = '', $ApplicationFolder = FALSE)
{
if (!$ApplicationFolder) {
$ApplicationFolder = 'Dashboard';
}
parent::__construct($Sender, $ApplicationFolder);
$this->Visible = C('Garden.Modules.ShowGuestModule');
}
示例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);
}
示例6: __construct
public function __construct($Sender = '') {
$this->_Tags = array();
$this->_Strings = array();
$this->_Title = '';
$this->_SubTitle = '';
$this->_TitleDivider = '';
parent::__construct($Sender);
}
示例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;
}
示例8: __construct
public function __construct($Sender = '')
{
parent::__construct($Sender);
$this->_ApplicationFolder = 'dashboard';
$this->HtmlId = 'SideMenu';
$this->AutoLinkGroups = TRUE;
$this->ClearGroups();
}
示例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;
}
示例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');
}
示例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');
}
示例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;
}
示例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);
}
示例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';
}
}
示例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);
}