예제 #1
0
 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);
     }
 }
예제 #2
0
 public static function setMode($mode)
 {
     self::$_mode = $mode;
 }