_init() protected method

protected _init ( )
示例#1
0
 protected function _init()
 {
     parent::_init();
     $config = $this->_config + array('headers' => array('Host'));
     unset($config['type']);
     $this->connection = $this->_instance('service', $config);
 }
示例#2
0
文件: CouchDb.php 项目: niel/lithium
	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; }
		);
	}