public function import($uri) { // $this->fetch($uri); // Expires: Mon, 12 May 2008 11:28:08 GMT // Last-Modified: Mon, 12 May 2008 11:27:08 GMT //Cache-Control: public, max-age=60 $this->setUri($uri); try { $this->_sx = Yr_SimpleXml::factory($uri); $this->_importLocation(); $this->_importLinks(); $this->_importText(); $this->_importTabular(); } catch (Exception $e) { require_once "Yr/Exception.php"; Yr_Exception::setMode($this->getConfig("mode")); Yr_Exception::handle($e); } }
public static function setMode($mode) { self::$_mode = $mode; }