本文整理汇总了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');
}
示例2: array
function __construct(&$parent)
{
parent::__construct();
$this->Html->setElementStyle('html');
$this->_Parent = $parent;
$this->_navigation = array();
$this->Alert = NULL;
}
示例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);
}
}
示例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();
}
示例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 – %2$s', array(__('Symphony'), __('Login'))));
Administration::instance()->Profiler->sample('Page template created', PROFILE_LAP);
}
示例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 – %2$s', array(__('Login'), Symphony::Configuration()->get('sitename', 'general'))));
$this->Body->setAttribute('id', 'login');
Symphony::Profiler()->sample('Page template created', PROFILE_LAP);
}
示例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 – %2$s', array(__('Symphony'), __('Login'))));
$this->_Parent->Profiler->sample('Page template created', PROFILE_LAP);
}
示例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 – %2$s', array(__('Symphony'), __('Login'))));
$this->_Parent->Profiler->sample('Page template created', PROFILE_LAP);
}
示例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");
}
示例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;
}
示例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');
}
示例12:
function __construct(&$parent)
{
parent::__construct();
$this->_Parent = $parent;
}
示例13: __construct
public function __construct(&$parent)
{
parent::__construct($parent);
}