示例#1
0
文件: video.php 项目: bizanto/Hooked
 /**
  * Load the object and the video provider as well 
  */
 public function load($oid = null)
 {
     if (parent::load($oid)) {
         // @todo: make sure loading is done ok
         $providerName = JString::strtolower($this->type);
         $libraryPath = COMMUNITY_COM_PATH . DS . 'libraries' . DS . 'videos' . DS . $providerName . '.php';
         require_once $libraryPath;
         $className = 'CTableVideo' . JString::ucfirst($providerName);
         $this->_provider = new $className($this->_db);
         return true;
     }
     return false;
 }
示例#2
0
文件: event.php 项目: bizanto/Hooked
 public function load($id = null)
 {
     $status = parent::load($id);
     $this->_fixDates();
     return $status;
 }