_init() protected method

protected _init ( )
Example #1
0
 protected function _init()
 {
     parent::_init();
     $config = $this->_config + array('headers' => array('Host'));
     unset($config['type']);
     $this->connection = $this->_instance('service', $config);
 }
Example #2
0
	protected function _init() {
		parent::_init();
		$this->_handlers += array(
			'integer' => function($v) { return (integer) $v; },
			'float'   => function($v) { return (float) $v; },
			'boolean' => function($v) { return (boolean) $v; }
		);
	}