本文整理汇总了PHP中AdministrationPage类的典型用法代码示例。如果您正苦于以下问题:PHP AdministrationPage类的具体用法?PHP AdministrationPage怎么用?PHP AdministrationPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AdministrationPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: build
public function build($context)
{
if (!empty($this->_errors)) {
$this->_valid = false;
}
parent::build($context);
}
示例2: build
function build($context = NULL)
{
$this->invalid_credentials = false;
$this->Headers->append('Content-Type', 'text/html; charset=UTF-8');
$this->Html->setAttribute('lang', Symphony::lang());
$meta = $this->createElement('meta');
$this->insertNodeIntoHead($meta);
$meta->setAttribute('http-equiv', 'Content-Type');
$meta->setAttribute('content', 'text/html; charset=UTF-8');
$this->insertNodeIntoHead($this->createStylesheetElement(ADMIN_URL . '/assets/css/peripheral.css'));
parent::setTitle(__('%1$s – %2$s', array(__('Symphony'), __('Login'))));
## Build the form
$this->Form = $this->createElement('form');
$this->Form->setAttribute('action', Administration::instance()->getCurrentPageURL());
$this->Form->setAttribute('method', 'POST');
$this->Form->setAttribute('class', 'panel');
$this->Body->appendChild($this->Form);
$this->Form->appendChild($this->createElement('h1', __('Symphony')));
if ($context) {
$this->_context = $context;
}
if (isset($_REQUEST['action'])) {
$this->action();
}
$this->view();
}
示例3: __construct
public function __construct(&$parent)
{
parent::__construct($parent);
$this->setTitle('Symphony – Member Roles – Setup');
$this->setPageType('form');
$this->_driver = $parent->ExtensionManager->create('members');
}
示例4: view
public function view($call_parent = TRUE)
{
$this->addElementToHead(new XMLElement('script', "Symphony.Context.add('elasticsearch', " . json_encode(Symphony::Configuration()->get('elasticsearch')) . ")", array('type' => 'text/javascript')), 99);
if ($call_parent) {
parent::view();
}
}
示例5: insertBreadcrumbsUsingPageIdentifier
public function insertBreadcrumbsUsingPageIdentifier($page_id, $preserve_last = true)
{
if ($page_id == 0) {
return parent::insertBreadcrumbs(array(Widget::Anchor(__('Pages'), SYMPHONY_URL . '/blueprints/pages/')));
}
$pages = PageManager::resolvePage($page_id, 'handle');
foreach ($pages as &$page) {
// If we are viewing the Page Editor, the Breadcrumbs should link
// to the parent's Page Editor.
if ($this->_context[0] == 'edit') {
$page = Widget::Anchor(PageManager::fetchTitleFromHandle($page), SYMPHONY_URL . '/blueprints/pages/edit/' . PageManager::fetchIDFromHandle($page) . '/');
// If the pages index is nested, the Breadcrumb should link to the
// Pages Index filtered by parent
} elseif (Symphony::Configuration()->get('pages_table_nest_children', 'symphony') == 'yes') {
$page = Widget::Anchor(PageManager::fetchTitleFromHandle($page), SYMPHONY_URL . '/blueprints/pages/?parent=' . PageManager::fetchIDFromHandle($page));
// If there is no nesting on the Pages Index, the breadcrumb is
// not a link, just plain text
} else {
$page = new XMLElement('span', PageManager::fetchTitleFromHandle($page));
}
}
if (!$preserve_last) {
array_pop($pages);
}
parent::insertBreadcrumbs(array_merge(array(Widget::Anchor(__('Pages'), SYMPHONY_URL . '/blueprints/pages/')), $pages));
}
示例6: ExtensionManager
function __construct(&$parent)
{
parent::__construct($parent);
$this->setTitle('Symphony – Member Roles – Untitled');
$ExtensionManager = new ExtensionManager($parent);
$this->_driver = $ExtensionManager->create('members');
}
示例7:
function __construct(&$parent)
{
parent::__construct($parent);
$FileManager =& $this->_Parent->ExtensionManager->create('filemanager');
$file = $_REQUEST['file'];
$FileManager->download($file);
exit;
}
示例8: __construct
public function __construct()
{
parent::__construct();
if ($this->_context[0]) {
$this->formatter = TextformatterManager::create($this->_context[0]);
}
$this->_driver = ExtensionManager::create('templatedtextformatters');
}
示例9: __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');
}
示例10: build
public function build(array $context = array())
{
$section_id = $context[1];
if (isset($section_id)) {
$context['associations'] = array('parent' => SectionManager::fetchParentAssociations($section_id), 'child' => SectionManager::fetchChildAssociations($section_id));
}
return parent::build($context);
}
示例11: __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();
}
示例12: __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);*/
}
示例13: build
public function build()
{
parent::build();
parent::addStylesheetToHead(URL . '/extensions/importcsv/assets/importcsv.css');
// parent::addStylesheetToHead(URL . '/symphony/assets/forms.css');
parent::addScriptToHead(URL . '/extensions/importcsv/assets/importcsv.js', 70);
$this->setTitle('Symphony - Import / export CSV');
$this->Context->appendChild(new XMLElement('h2', __('Import / Export CSV')));
}
示例14: build
public function build($context)
{
if (@$context[0] == 'edit' or @$context[0] == 'new') {
$this->__prepareEdit($context);
} else {
$this->__prepareIndex();
}
parent::build($context);
}
示例15: build
public function build($context)
{
if (@$context[0] == 'show') {
$this->_log = (object) $this->_driver->getLog($context[1]);
} else {
$this->__prepareIndex();
}
parent::build($context);
}