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


PHP AdministrationPage::build方法代码示例

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


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

 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

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

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

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

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

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

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

示例9: build

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

示例10: build

 public function build($context)
 {
     if (isset($context[0])) {
         if ($context[0] == 'edit' || $context[0] == 'new') {
             $this->__prepareEdit($context);
         } else {
             if ($context[0] == 'run') {
                 $this->__prepareRun($context);
             }
         }
     } else {
         $this->__prepareIndex();
     }
     parent::build($context);
 }
开发者ID:symphonists,项目名称:xmlimporter,代码行数:15,代码来源:content.importers.php

示例11: build

 public function build($context)
 {
     if (@$context[0] == 'edit' or @$context[0] == 'new') {
         if ($this->_editing = $context[0] == 'edit') {
             $this->_fields = $this->_driver->getSet((int) $context[1]);
             $this->_params = $this->_driver->getParameters((int) $context[1]);
         }
         $this->_fields = isset($_POST['fields']) ? $_POST['fields'] : $this->_fields;
         $this->_params = isset($_POST['params']) ? $_POST['params'] : $this->_params;
         $this->_status = $context[2];
         $this->_pages = $this->_driver->getPages();
     } else {
         $this->_sets = $this->_driver->getSets();
     }
     parent::build($context);
 }
开发者ID:scottkf,项目名称:keepflippin--on-symphony,代码行数:16,代码来源:content.sets.php

示例12: build

 public function build($context)
 {
     if (@$context[0] == 'edit' or @$context[0] == 'new') {
         if ($this->_editing = $context[0] == 'edit') {
             $this->_fields = $this->_driver->getTemplate((int) $context[1]);
             $this->_conditions = $this->_driver->getConditions((int) $context[1]);
         }
         $this->_fields = isset($_POST['fields']) ? $_POST['fields'] : $this->_fields;
         $this->_conditions = isset($_POST['conditions']) ? $_POST['conditions'] : $this->_conditions;
         $this->_status = $context[2];
         $this->_pages = $this->_driver->getPages();
     } else {
         $this->_templates = $this->_driver->getTemplates();
     }
     parent::build($context);
 }
开发者ID:bauhouse,项目名称:sym-extensions,代码行数:16,代码来源:content.templates.php

示例13: build

 public function build($context)
 {
     $this->_action = isset($context[0]) ? $context[0] : false;
     if ($this->_action == 'edit' && isset($context[1]) && is_numeric($context[1])) {
         // Load the data:
         $this->_id_role = $context[1];
         $this->_data = $this->_driver->getData($this->_id_role);
     }
     if (isset($_POST['save'])) {
         // Save:
         $this->_id_role = $this->_driver->saveData($_POST);
         if ($this->_id_role != false) {
             $this->_data = $this->_driver->getData($this->_id_role);
             $this->pageAlert(__('Role successfully created/updated.'), Alert::SUCCESS);
         } else {
             $this->pageAlert(__('Role not saved: Please enter a name.'), Alert::ERROR);
         }
     }
     parent::addStylesheetToHead(URL . '/extensions/author_roles/assets/author_roles.css', 'screen', 70);
     parent::addScriptToHead(URL . '/extensions/author_roles/assets/author_roles.js', 71);
     parent::build($context);
 }
开发者ID:andrewminton,项目名称:author_roles,代码行数:22,代码来源:content.roles.php

示例14: build

 public function build(array $context = array())
 {
     $this->__setContext((int) $_GET['section']);
     parent::build($context);
 }
开发者ID:symphonists,项目名称:search_index,代码行数:5,代码来源:content.reindex.php

示例15: build

 public function build($context)
 {
     $this->mode = $context[0];
     $this->id = $context[1];
     parent::build($context);
 }
开发者ID:nickdunn,项目名称:elasticsearch,代码行数:6,代码来源:class.elasticsearch_administrationpage.php


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