Exemple #1
0
 /**
  * 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;
 }
Exemple #2
0
 public function load($id = null)
 {
     $status = parent::load($id);
     $this->_fixDates();
     return $status;
 }