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


PHP Document::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($name = null)
 {
     parent::__construct();
     if ($name) {
         $this->setName($name);
     }
 }
开发者ID:bigjoevtrj,项目名称:codeigniter-bootstrap,代码行数:7,代码来源:league.php

示例2: run

 public function run()
 {
     parent::__construct();
     // set title
     $this->__Layout->__Head()->setTitle('Demo Web');
     // add view port
     $this->__Layout->__Head()->add_MetaTag('name', 'viewport', 'width=device-width, initial-scale=1, user-scalable=no');
     $this->__Layout->__Head()->add_MetaTag('name', 'googlebot', 'noodp');
     $this->__Layout->__Head()->add_MetaTag('name', 'msnbot', 'noodp');
     $this->__Layout->__Head()->add_MetaTag('name', 'slurp', 'noodp');
     $this->__Layout->__Head()->add_MetaTag('name', 'keywords', 'Template Engine, Beispiel, Sample');
     $this->__Layout->__Head()->add_MetaTag('name', 'description', 'Das ist eine Beispiel-Seite des Template-Systems');
     $this->__Layout->__Head()->add_MetaTag('name', 'author', 'Gino Dola');
     $this->__Layout->__Head()->add_MetaTag('name', 'copyright', 'opta data marktforschung & marketing GmbH');
     $this->__Layout->__Head()->add_MetaTag('name', 'language', 'de');
     $this->__Layout->__Head()->add_MetaTag('name', 'revisit-after', '7 days');
     $this->__Layout->__Head()->add_MetaTag('name', 'robots', 'index,follow,noodp');
     // add javascript to library
     $this->__Layout->__Head()->add_Library_JavaScript('/jquery-current.min.js');
     $this->__Layout->__Head()->add_Library_JavaScript('/functions.js');
     // add javascript to library
     $this->__Layout->__Head()->add_Library_Stylesheet('/reset.css');
     $this->__Layout->__Head()->add_Library_Stylesheet('/style.css');
     // add stylesheets
     $args = array('media' => 'all');
     $this->__Layout->__Head()->add_Stylesheet('http://fonts.googleapis.com/css?family=Roboto:400,400italic,500italic,500,300,300italic,100,700', $args);
     $args = array('media' => 'all and (orientation: landscape)');
     $this->__Layout->__Head()->add_Stylesheet('/grid.css', $args);
     $this->__Layout->__Head()->add_Stylesheet('/desktop.css', $args);
     $args = array('media' => 'all and (orientation: portrait)');
     $this->__Layout->__Head()->add_Stylesheet('/mobile.css', $args);
     // end function
 }
开发者ID:dlehmann,项目名称:DevCE,代码行数:33,代码来源:WrapperController.php

示例3: __construct

 public function __construct($name = null)
 {
     parent::__construct();
     $this->load->model('teamRepository', '_team');
     if ($name) {
         $this->setName($name);
     }
 }
开发者ID:bigjoevtrj,项目名称:codeigniter-bootstrap,代码行数:8,代码来源:conference.php

示例4: __construct

 /**
  * Class constructor
  *
  * @param   array  $options  Associative array of options
  *
  * @since   11.1
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     // Set mime type
     $this->_mime = 'text/html';
     // Set document type
     $this->_type = 'raw';
 }
开发者ID:Alibek,项目名称:joomla-platform-namespace-example,代码行数:15,代码来源:raw.php

示例5: run

 public function run()
 {
     parent::__construct();
     /*** SELECT ***/
     $output = 'Database Result:<br /><br /><pre>' . print_r($res, true) . '</pre>';
     $this->replace('result', $output);
     // end function
 }
开发者ID:dlehmann,项目名称:DevCE,代码行数:8,代码来源:IndexController.php

示例6: __construct

 /**
  * Construct conifguration.
  * @param Store $store Optional store to load/save data from/to.
  */
 public function __construct(Store $store = null)
 {
     parent::__construct();
     if (isset($store)) {
         $this->store = $store;
         $this->reload();
     }
 }
开发者ID:jivoo,项目名称:jivoo,代码行数:12,代码来源:Config.php

示例7: __construct

 /**
  * Constructs an empty graph
  *
  * @param array $name    - optional, initial name for graph
  * @param array $options - optional, initial options for graph
  * @since     1.2
  * @return Graph
  */
 public function __construct($name = null, array $options = array())
 {
     // prevent backwards compatibility break where the first parameter is the $options array
     if (!is_array($name) && $name != null) {
         $this->set('_key', $name);
     }
     // pass the $options to the parent constructor to do the actual work
     parent::__construct($options);
 }
开发者ID:vinigomescunha,项目名称:ArangoDB-Ajax-PHP-Example,代码行数:17,代码来源:Graph.php

示例8: execute

 public function execute(HTTP_Request $request, HTTP_Response $response)
 {
     parent::__construct();
     $this->req = $request;
     $this->res = $response;
     $this->json['data'] = 'Action executed...';
     $this->shutdown();
     // end function
 }
开发者ID:dlehmann,项目名称:DevCE,代码行数:9,代码来源:demo_action.inc.php

示例9: __construct

 /**
  * Construct state.
  * @param Store $store Store to load/save data from/to.
  * @throws AccessException If state could not be read.
  */
 public function __construct(Store $store)
 {
     parent::__construct();
     $this->store = $store;
     try {
         $this->store->open(true);
         $this->data = $this->store->read();
     } catch (AccessException $e) {
         throw new AccessException(tr('Could not open session: %1', $e->getMessage()), null, $e);
     }
 }
开发者ID:jivoo,项目名称:jivoo,代码行数:16,代码来源:Session.php

示例10: __construct

 /**
  * Construct state.
  *
  * @param Store $store
  *            Store to load/save data from/to.
  * @param bool $mutable
  *            Whether state is mutable (true) or read-only (false).
  * @throws AccessException If state could not be read.
  */
 public function __construct(Store $store, $mutable = true)
 {
     parent::__construct();
     $this->store = $store;
     try {
         $this->store->open($mutable);
         $this->data = $this->store->read();
     } catch (AccessException $e) {
         throw new AccessException('Could not read state: ' . $e->getMessage(), null, $e);
     }
 }
开发者ID:jivoo,项目名称:core,代码行数:20,代码来源:State.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     /*
     $player = array(
         'ref' => new Player()
         'position' => DH, P, C, 1B, 2B, etc…
         'order' => 1-9+
     );
     */
 }
开发者ID:bigjoevtrj,项目名称:codeigniter-bootstrap,代码行数:11,代码来源:lineup.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:bigjoevtrj,项目名称:codeigniter-bootstrap,代码行数:4,代码来源:gameplayerbatting.php

示例13: __construct

 /**
  * Create an XML document object.
  *
  * @param RESTClient $client A REST client object.
  * @param string $uri A document URI.
  */
 public function __construct($client, $uri = null)
 {
     parent::__construct($client, $uri);
     $this->dom = new \DOMDocument();
     $this->contentType = 'application/xml';
 }
开发者ID:marklogic,项目名称:mlphp,代码行数:12,代码来源:XMLDocument.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->playerType = 'GameBatter';
 }
开发者ID:bigjoevtrj,项目名称:codeigniter-bootstrap,代码行数:5,代码来源:playerlist.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('GameRepository', '_game');
 }
开发者ID:bigjoevtrj,项目名称:codeigniter-bootstrap,代码行数:5,代码来源:gameteam.php


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