本文整理汇总了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');
}
示例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);
}
}
示例3: ExtensionManager
function __construct(&$parent)
{
parent::__construct($parent);
$this->setTitle('Symphony – Member Roles – Untitled');
$ExtensionManager = new ExtensionManager($parent);
$this->_driver = $ExtensionManager->create('members');
}
示例4:
function __construct(&$parent)
{
parent::__construct($parent);
$FileManager =& $this->_Parent->ExtensionManager->create('filemanager');
$file = $_REQUEST['file'];
$FileManager->download($file);
exit;
}
示例5: __construct
public function __construct()
{
parent::__construct();
if ($this->_context[0]) {
$this->formatter = TextformatterManager::create($this->_context[0]);
}
$this->_driver = ExtensionManager::create('templatedtextformatters');
}
示例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();
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->_uri = SYMPHONY_URL . '/extension/search_index';
$this->_synonyms = SearchIndex::getSynonyms();
$this->_synonym = NULL;
$this->_hash = NULL;
}
示例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');
}
示例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);*/
}
示例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'));
}
示例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;
}
示例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;
}
示例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');
}
示例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;
}
示例15:
function __construct(&$parent)
{
parent::__construct($parent);
$this->setPageType('form');
}