• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP AdministrationPage类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: build

 public function build($context)
 {
     if (!empty($this->_errors)) {
         $this->_valid = false;
     }
     parent::build($context);
 }
开发者ID:bauhouse,项目名称:sym-extensions,代码行数:7,代码来源:content.inject.php


示例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();
 }
开发者ID:pointybeard,项目名称:User-Access-Control,代码行数:26,代码来源:content.login.php


示例3: __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


示例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();
     }
 }
开发者ID:nickdunn,项目名称:elasticsearch,代码行数:7,代码来源:class.elasticsearch_administrationpage.php


示例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));
 }
开发者ID:rc1,项目名称:WebAppsWithCmsStartHere,代码行数:26,代码来源:content.blueprintspages.php


示例6: 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


示例7:

 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


示例8: __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


示例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');
 }
开发者ID:brendo,项目名称:bulkimporter,代码行数:8,代码来源:content.import.php


示例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);
 }
开发者ID:rc1,项目名称:WebAppsWithCmsStartHere,代码行数:8,代码来源:content.blueprintssections.php


示例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();
 }
开发者ID:korelogic,项目名称:anti_brute_force,代码行数:8,代码来源:content.colored_lists.php


示例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);*/
 }
开发者ID:brendo,项目名称:symphony-3,代码行数:9,代码来源:content.systemsettings.php


示例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')));
 }
开发者ID:michael-e,项目名称:importcsv,代码行数:9,代码来源:content.index.php


示例14: build

 public function build($context)
 {
     if (@$context[0] == 'edit' or @$context[0] == 'new') {
         $this->__prepareEdit($context);
     } else {
         $this->__prepareIndex();
     }
     parent::build($context);
 }
开发者ID:psychoticmeowArchives,项目名称:importmanager,代码行数:9,代码来源:content.importers.php


示例15: build

 public function build($context)
 {
     if (@$context[0] == 'show') {
         $this->_log = (object) $this->_driver->getLog($context[1]);
     } else {
         $this->__prepareIndex();
     }
     parent::build($context);
 }
开发者ID:psychoticmeowArchives,项目名称:seomanager,代码行数:9,代码来源:content.logs.php


示例16: __switchboard

 public function __switchboard($type = 'view')
 {
     $this->_type = $type;
     if (!isset($this->_context[0]) || in_array(trim($this->_context[0]), ['', 'saved', 'completed'])) {
         $this->_function = 'index';
     } else {
         $this->_function = $this->_context[0];
     }
     parent::__switchboard($type);
 }
开发者ID:pointybeard,项目名称:cron,代码行数:10,代码来源:content.new.php


示例17: __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


示例18: build

 /**
  * Build the page
  * @param array $context
  */
 public function build($context)
 {
     if (Administration::instance()->Author()->isDeveloper()) {
         if ($_POST['with-selected'] == 'delete' && is_array($_POST['items'])) {
             foreach ($_POST['items'] as $id_role => $value) {
                 $this->_driver->deleteRole($id_role);
             }
         }
         parent::build($context);
     }
 }
开发者ID:stuartgpalmer,项目名称:author_roles,代码行数:15,代码来源:content.index.php


示例19: build

 public function build($context)
 {
     if (@$context[0] == 'edit' or @$context[0] == 'new') {
         if ($this->_editing = $context[0] == 'edit') {
             $this->_fields = $this->_driver->getFormatter($context[1]);
         }
         $this->_handle = $context[1];
         $this->_status = $context[2];
     } else {
         $this->__prepareIndex();
     }
     parent::build($context);
 }
开发者ID:symphonists,项目名称:htmlformatter,代码行数:13,代码来源:content.formatters.php


示例20: build

 public function build($context)
 {
     if (@$context[0] == 'edit' or @$context[0] == 'new') {
         if ($this->_editing = $context[0] == 'edit') {
             $this->_fields = $this->_driver->getRule((int) $context[1]);
         }
         $this->_fields = isset($_POST['fields']) ? $_POST['fields'] : $this->_fields;
         $this->_status = $context[2];
         $this->_sections = $this->_driver->getSections();
     } else {
         $this->_rules = $this->_driver->getRules();
     }
     parent::build($context);
 }
开发者ID:symphonists,项目名称:shrimp,代码行数:14,代码来源:content.rules.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP AdministratorAction类代码示例发布时间:2022-05-23
下一篇:
PHP Administration类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap