public function __construct($name = null)
 {
     parent::__construct();
     if ($name) {
         $this->setName($name);
     }
 }
示例#2
0
 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
 }
 public function __construct($name = null)
 {
     parent::__construct();
     $this->load->model('teamRepository', '_team');
     if ($name) {
         $this->setName($name);
     }
 }
 /**
  * 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';
 }
示例#5
0
 public function run()
 {
     parent::__construct();
     /*** SELECT ***/
     $output = 'Database Result:<br /><br /><pre>' . print_r($res, true) . '</pre>';
     $this->replace('result', $output);
     // end function
 }
示例#6
0
文件: Config.php 项目: jivoo/jivoo
 /**
  * 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();
     }
 }
 /**
  * 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);
 }
示例#8
0
 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
 }
示例#9
0
文件: Session.php 项目: jivoo/jivoo
 /**
  * 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);
     }
 }
示例#10
0
文件: State.php 项目: jivoo/core
 /**
  * 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);
     }
 }
示例#11
0
 public function __construct()
 {
     parent::__construct();
     /*
     $player = array(
         'ref' => new Player()
         'position' => DH, P, C, 1B, 2B, etc…
         'order' => 1-9+
     );
     */
 }
 public function __construct()
 {
     parent::__construct();
 }
示例#13
0
 /**
  * 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';
 }
 public function __construct()
 {
     parent::__construct();
     $this->playerType = 'GameBatter';
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model('GameRepository', '_game');
 }
示例#16
0
 /**
  * Create an Image object.
  *
  * @param RESTClient $client A REST client object.
  * @param string $uri A document URI.
  */
 public function __construct($client, $uri = null)
 {
     parent::__construct($client, $uri);
 }
示例#17
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('teamRepository', '_team');
 }
示例#18
0
 public function __construct($year = null)
 {
     parent::__construct();
     if ($year) {
         $this->setYear($year);
     }
 }
示例#19
0
 public function __construct(State $state, DocumentData $data)
 {
     parent::__construct($data);
     $this->state = $state;
 }
示例#20
0
 /**
  * 
  * @param String $var
  */
 public function __construct($var = null)
 {
     parent::__construct(FOOD_COLLECTION);
     $this->loadTodo($var);
 }
示例#21
0
 /**
  * Create a JSON 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->setContentType('application/json');
 }
示例#22
0
 public function __construct(AgentProfile $profile, DocumentData $data)
 {
     parent::__construct($data);
     $this->profile = $profile;
 }
 public function __construct()
 {
     parent::__construct();
     $this->datetime = time();
 }