示例#1
0
 public function __construct($filename = NULL, $type = NULL, $url = NULL)
 {
     // Similar to super in Java.
     parent::__construct($filename, $type);
     if (empty($url)) {
         throw new Exception("Url can't be empty!");
     }
     $this->url_ = $url;
 }
 public function __construct($filename = NULL, $type = NULL, $yqlFile = NULL)
 {
     parent::__construct($filename, $type);
     if (empty($yqlFile)) {
         throw new exception("Datafile is missing!");
     }
     $this->yqlFile_ = json_decode($this->loadCache($yqlFile));
     $this->gmapsFile_ = $this->loadCache($filename . "." . $type);
     $this->banks_ = array();
     $this->init();
 }