Exemplo n.º 1
0
 /**
  * load()
  * @param integer $intElementId
  * @param string $strType
  * @param string $strElementId
  * @param integet $intVersion
  * @author Thomas Schedler <*****@*****.**>
  * @version 1.0
  */
 public function load($intElementId, $strType, $strElementId = null, $intVersion = null)
 {
     try {
         $this->strType = $strType;
         $this->getModel();
         $elementId = $this->strType . 'Id';
         $objVideoSelectData = $this->objModel->loadVideo($intElementId);
         if (count($objVideoSelectData) > 0) {
             $objVideoSelect = $objVideoSelectData->current();
             $this->objElement->setValue($objVideoSelect->videoId);
             $this->objElement->intVideoTypeId = $objVideoSelect->idVideoTypes;
             $this->objElement->strVideoUserId = $objVideoSelect->userId;
             $this->objElement->strVideoThumb = $objVideoSelect->thumb;
         }
     } catch (Exception $exc) {
         $this->core->logger->err($exc);
     }
 }