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


PHP HTMLPage::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($template, $params = array())
 {
     parent::__construct();
     $this->_template = $template;
     $this->_params = $params;
     $this->_page_title = __('Install Symphony');
 }
开发者ID:jurajkapsz,项目名称:symphony-2,代码行数:7,代码来源:class.installerpage.php

示例2: array

 function __construct(&$parent)
 {
     parent::__construct();
     $this->Html->setElementStyle('html');
     $this->_Parent = $parent;
     $this->_navigation = array();
     $this->Alert = NULL;
 }
开发者ID:bauhouse,项目名称:sym-form-builder,代码行数:8,代码来源:class.administrationpage.php

示例3:

 function __construct()
 {
     parent::__construct();
     $this->_query_string = parent::__buildQueryString(array('debug'));
     if (!empty($this->_query_string)) {
         $this->_query_string = '&' . General::sanitize($this->_query_string);
     }
 }
开发者ID:bauhouse,项目名称:sym-fluid960gs,代码行数:8,代码来源:class.debugpage.php

示例4: __construct

 public function __construct(Site $site, $url = null)
 {
     if (!isset($url)) {
         $url = $site->requestUrl;
     }
     $template = $site->modules->getModulePrefix('PageSystem') . '/page/nopage';
     parent::__construct($site, null, $template, array('status' => '404 Not Found', 'requestUrl' => $url));
     $this->headers->setContentTypeCharset('utf-8');
     $this->headers->setStatus(404, 'Not Found');
     $this->title = $this->headers->getStatus();
 }
开发者ID:jcorbinredtree,项目名称:framework,代码行数:11,代码来源:NotFoundPage.php

示例5: __construct

 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->addHeaderToPage('Content-Type', 'text/html; charset=UTF-8');
     $this->Html->setElementStyle('html');
     $this->Html->setDTD('<!DOCTYPE html>');
     //PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
     $this->Html->setAttribute('lang', Lang::get());
     $this->addElementToHead(new XMLElement('meta', NULL, array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), 0);
     $this->addStylesheetToHead(SYMPHONY_URL . '/assets/basic.css', 'screen', 40);
     $this->addStylesheetToHead(SYMPHONY_URL . '/assets/login.css', 'screen', 40);
     $this->setTitle(__('%1$s &ndash; %2$s', array(__('Symphony'), __('Login'))));
     Administration::instance()->Profiler->sample('Page template created', PROFILE_LAP);
 }
开发者ID:benesch,项目名称:hilton-unar,代码行数:14,代码来源:content.login.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addHeaderToPage('Content-Type', 'text/html; charset=UTF-8');
     $this->Html->setElementStyle('html');
     $this->Html->setDTD('<!DOCTYPE html>');
     $this->Html->setAttribute('lang', Lang::get());
     $this->addElementToHead(new XMLElement('meta', null, array('charset' => 'UTF-8')), 0);
     $this->addElementToHead(new XMLElement('meta', null, array('http-equiv' => 'X-UA-Compatible', 'content' => 'IE=edge,chrome=1')), 1);
     $this->addElementToHead(new XMLElement('meta', null, array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1')), 2);
     $this->addStylesheetToHead(APPLICATION_URL . '/assets/css/symphony.min.css', 'screen', null, false);
     $this->setTitle(__('%1$s &ndash; %2$s', array(__('Login'), Symphony::Configuration()->get('sitename', 'general'))));
     $this->Body->setAttribute('id', 'login');
     Symphony::Profiler()->sample('Page template created', PROFILE_LAP);
 }
开发者ID:valery,项目名称:symphony-2,代码行数:15,代码来源:content.login.php

示例7: XMLElement

 function __construct(&$parent)
 {
     parent::__construct();
     $this->_Parent = $parent;
     $this->_invalidPassword = false;
     $this->addHeaderToPage('Content-Type', 'text/html; charset=UTF-8');
     $this->Html->setElementStyle('html');
     $this->Html->setDTD('<!DOCTYPE html>');
     //PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
     $this->Html->setAttribute('lang', __LANG__);
     $this->addElementToHead(new XMLElement('meta', NULL, array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), 0);
     $this->addStylesheetToHead(URL . '/symphony/assets/login.css', 'screen', 40);
     $this->setTitle(__('%1$s &ndash; %2$s', array(__('Symphony'), __('Login'))));
     $this->_Parent->Profiler->sample('Page template created', PROFILE_LAP);
 }
开发者ID:bauhouse,项目名称:sym-spectrum,代码行数:15,代码来源:content.login.php

示例8: XMLElement

 function __construct(&$parent)
 {
     parent::__construct();
     $this->_Parent = $parent;
     $this->_invalidPassword = false;
     $this->addHeaderToPage('Content-Type', 'text/html; charset=UTF-8');
     $this->Html->setElementStyle('html');
     $this->Html->setDTD('<!DOCTYPE html>');
     //PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
     $this->Html->setAttribute('lang', __LANG__);
     $this->addElementToHead(new XMLElement('meta', NULL, array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), 0);
     $this->addElementToHead(new XMLElement('link', NULL, array('rel' => 'icon', 'href' => URL . '/symphony/assets/images/bookmark.png', 'type' => 'image/png')), 20);
     $this->addStylesheetToHead(URL . '/symphony/assets/login.css', 'screen', 40);
     $this->addElementToHead(new XMLElement('!--[if IE]><link rel="stylesheet" href="' . URL . '/symphony/assets/legacy.css" type="text/css"><![endif]--'), 50);
     $this->addScriptToHead(URL . '/symphony/assets/admin.js', 60);
     $this->setTitle(__('%1$s &ndash; %2$s', array(__('Symphony'), __('Login'))));
     $this->_Parent->Profiler->sample('Page template created', PROFILE_LAP);
 }
开发者ID:njmcgee,项目名称:taxcheck,代码行数:18,代码来源:content.login.php

示例9: __construct

 public function __construct()
 {
     //cria a p�gina e define o t�tulo
     parent::__construct(IConfig::INDEX_TITLE);
     //define os Metadados do HEAD
     $this->setCharset(IConfig::CHARSET);
     $this->setOwner(IConfig::OWNER);
     $this->setSubject(IConfig::SUBJECT);
     $this->setRating();
     $this->setDescription(IConfig::DESCRIPTION);
     $this->setAbstract(IConfig::ABSTRACT_DESCRIPTION);
     $this->setKeywords(IConfig::KEYWORDS);
     $this->setRevisitAfter(5);
     $this->setLanguage(IConfig::LANGUAGE);
     $this->setRobots();
     $this->setPragma();
     //define o arquivo de Estilos em Cascata
     $this->addStyleLink("default.css");
     $this->addStyleLink("jquery/jquery.css");
     //define os arquivos de Scripts
     $this->addScriptLink("jquery.min.js");
     $this->addScriptLink("jquery-ui.min.js");
 }
开发者ID:primephp,项目名称:framework,代码行数:23,代码来源:Index.php

示例10: __construct

 /**
  * Constructor takes the Administration instance and sets it
  * to be the `$this->_Parent`. Calls the parent constructor to set up
  * the basic HTML, Head and Body XMLElements. This function
  * also sets the XMLElement type to be HTML, instead of XML
  *
  * @param Administration $parent
  *  The Administration object that this page has been created from
  *  passed by reference
  */
 public function __construct(Administration &$parent)
 {
     parent::__construct();
     $this->Html->setElementStyle('html');
     $this->_Parent = $parent;
 }
开发者ID:benesch,项目名称:hilton-unar,代码行数:16,代码来源:class.administrationpage.php

示例11: __construct

 /**
  * Constructor calls the parent constructor to set up
  * the basic HTML, Head and Body `XMLElement`'s. This function
  * also sets the `XMLElement` element style to be HTML, instead of XML
  */
 public function __construct()
 {
     parent::__construct();
     $this->Html->setElementStyle('html');
 }
开发者ID:nickdunn,项目名称:elasticsearch-surfin-shakespeare,代码行数:10,代码来源:class.administrationpage.php

示例12:

 function __construct(&$parent)
 {
     parent::__construct();
     $this->_Parent = $parent;
 }
开发者ID:bauhouse,项目名称:sym-fluid960gs,代码行数:5,代码来源:content.logout.php

示例13: __construct

 public function __construct(&$parent)
 {
     parent::__construct($parent);
 }
开发者ID:GrzegorzWidla,项目名称:symphony-ckeditor,代码行数:4,代码来源:content.filebrowser.php


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