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


PHP AdministrationPage::__construct方法代码示例

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


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

示例1: __construct

 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->setTitle('Symphony – Member Roles – Setup');
     $this->setPageType('form');
     $this->_driver = $parent->ExtensionManager->create('members');
 }
开发者ID:ErisDS,项目名称:Bugaroo,代码行数:7,代码来源:content.setup.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->errors = new MessageStack();
     $this->fields = array();
     $this->editing = $this->failed = false;
     $this->datasource = $this->handle = $this->status = $this->type = NULL;
     $this->types = array();
     foreach (new ExtensionIterator(ExtensionIterator::FLAG_TYPE, array('Data Source')) as $extension) {
         $path = Extension::getPathFromClass(get_class($extension));
         $handle = Extension::getHandleFromPath($path);
         if (Extension::status($handle) != Extension::STATUS_ENABLED) {
             continue;
         }
         if (!method_exists($extension, 'getDataSourceTypes')) {
             continue;
         }
         foreach ($extension->getDataSourceTypes() as $type) {
             $this->types[$type->class] = $type;
         }
     }
     if (empty($this->types)) {
         $this->alerts()->append(__('There are no Data Source types currently available. You will not be able to create or edit Data Sources.'), AlertStack::ERROR);
     }
 }
开发者ID:brendo,项目名称:symphony-3,代码行数:25,代码来源:content.blueprintsdatasources.php

示例3: ExtensionManager

 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->setTitle('Symphony – Member Roles – Untitled');
     $ExtensionManager = new ExtensionManager($parent);
     $this->_driver = $ExtensionManager->create('members');
 }
开发者ID:bauhouse,项目名称:sym-spectrum-members,代码行数:7,代码来源:content.new.php

示例4:

 function __construct(&$parent)
 {
     parent::__construct($parent);
     $FileManager =& $this->_Parent->ExtensionManager->create('filemanager');
     $file = $_REQUEST['file'];
     $FileManager->download($file);
     exit;
 }
开发者ID:pointybeard,项目名称:filemanager,代码行数:8,代码来源:content.download.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     if ($this->_context[0]) {
         $this->formatter = TextformatterManager::create($this->_context[0]);
     }
     $this->_driver = ExtensionManager::create('templatedtextformatters');
 }
开发者ID:ahwayakchih,项目名称:templatedtextformatters,代码行数:8,代码来源:content.edit.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_cols = array('IP' => __('IP Address'), 'FailedCount' => __('Failed Count'), 'DateCreated' => __('Date Created'), 'Source' => __('Source'));
     $this->_tables = array('black' => __('Black list'), 'gray' => __('Gray list'), 'white' => __('White list'));
     $this->_curColor = isset($_REQUEST['list']) && array_key_exists($_REQUEST['list'], $this->_tables) ? $_REQUEST['list'] : 'black';
     $this->_data = array();
 }
开发者ID:korelogic,项目名称:anti_brute_force,代码行数:8,代码来源:content.colored_lists.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_uri = SYMPHONY_URL . '/extension/search_index';
     $this->_synonyms = SearchIndex::getSynonyms();
     $this->_synonym = NULL;
     $this->_hash = NULL;
 }
开发者ID:symphonists,项目名称:search_index,代码行数:8,代码来源:content.synonyms.php

示例8: __construct

 public function __construct(Administration &$parent)
 {
     parent::__construct($parent);
     self::$entryManager = new EntryManager(Administration::instance());
     self::$sectionManager = self::$entryManager->sectionManager;
     self::$fieldManager = self::$entryManager->fieldManager;
     $this->_driver = Symphony::ExtensionManager()->create('bulkimporter');
 }
开发者ID:brendo,项目名称:bulkimporter,代码行数:8,代码来源:content.import.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTitle(__('%1$s – %2$s', array(__('Symphony'), __('Settings'))));
     /*
     			$element = $this->createElement('p');
     			$element->appendChild(new DOMEntityReference('ndash'));
     			$this->Body->appendChild($element);*/
 }
开发者ID:brendo,项目名称:symphony-3,代码行数:9,代码来源:content.systemsettings.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_uri = SYMPHONY_URL . '/extension/search_index';
     $this->_sections = SectionManager::fetch(NULL, 'ASC', 'name');
     $this->_indexes = SearchIndex::getIndexes();
     $this->_section = NULL;
     $this->_index = NULL;
     $this->_weightings = array(__('Highest'), __('High'), __('Medium (none)'), __('Low'), __('Lowest'));
 }
开发者ID:symphonists,项目名称:search_index,代码行数:10,代码来源:content.indexes.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     // cache array of all sections
     $this->_sections = SectionManager::fetch(NULL, 'ASC', 'name');
     $this->_section = null;
     // cache array of all indexes
     $this->_indexes = SearchIndex::getIndexes();
     $this->_index = null;
 }
开发者ID:symphonists,项目名称:search_index,代码行数:10,代码来源:content.reindex.php

示例12: __construct

 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_uri = URL . '/symphony/extension/search_index';
     $sectionManager = new SectionManager($this->_Parent);
     $this->_sections = $sectionManager->fetch(NULL, 'ASC', 'name');
     $this->_indexes = SearchIndex::getIndexes();
     $this->_section = NULL;
     $this->_index = NULL;
 }
开发者ID:TwistedInteractive,项目名称:search_index,代码行数:10,代码来源:content.indexes.php

示例13: __construct

 public function __construct(&$parent)
 {
     parent::__construct($parent);
     if (!is_object($this->_Parent->FormatterManager)) {
         $this->_Parent->FormatterManager = new TextformatterManager($this->_Parent);
     }
     if ($this->_context[0]) {
         $this->formatter = $this->_Parent->FormatterManager->create($this->_context[0]);
     }
     $this->_driver = $this->_Parent->ExtensionManager->create('templatedtextformatters');
 }
开发者ID:bauhouse,项目名称:sym-extensions,代码行数:11,代码来源:content.edit.php

示例14: __construct

 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $sectionManager = new SectionManager(Administration::instance());
     $this->_entryManager = new EntryManager(Administration::instance());
     // cache array of all sections
     $this->_sections = $sectionManager->fetch(NULL, 'ASC', 'name');
     $this->_section = null;
     // cache array of all indexes
     $this->_indexes = SearchIndex::getIndexes();
     $this->_index = null;
 }
开发者ID:6ui11em,项目名称:search_index,代码行数:12,代码来源:content.reindex.php

示例15:

 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->setPageType('form');
 }
开发者ID:bauhouse,项目名称:sym-fluidgrids,代码行数:5,代码来源:content.blueprintsutilities.php


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