/** * Deep clone of this instance * * @return void */ public function __clone() { parent::__clone(); if ($this->_url instanceof KHttpUrl) { $this->_url = clone $this->_url; } }
/** * Initializes the default configuration for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config An optional ObjectConfig object with configuration options. * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('content' => '', 'content_type' => 'text/html', 'status_code' => '200', 'status_message' => null, 'headers' => array())); parent::_initialize($config); }