Exemplo n.º 1
0
 public function __construct($guid = null)
 {
     if ($guid && !is_object($guid)) {
         $guid = get_entity_as_row($guid);
     }
     parent::__construct($guid);
 }
Exemplo n.º 2
0
 public function __construct($guid = null)
 {
     if ($guid && !is_object($guid)) {
         // Loading entities via __construct(GUID) is deprecated, so we give it the entity row and the
         // attribute loader will finish the job. This is necessary due to not using a custom
         // subtype (see above).
         $guid = get_entity_as_row($guid);
     }
     parent::__construct($guid);
 }
Exemplo n.º 3
0
 /**
  * Loads an ElggPodcast entity.
  *
  * @param int $guid GUID of the ElggPodcast object
  */
 public function __construct($guid = null)
 {
     parent::__construct($guid);
     if (is_numeric($guid)) {
         // $guid is a GUID so load
         if (!$this->load($guid)) {
             throw new IOException(elgg_echo('IOException:FailedToLoadGUID', array(get_class(), $guid)));
         }
     }
 }
Exemplo n.º 4
0
 /**
  * loads or create new IzapObject
  * @global <type> $CONFIG
  * @param  $guid
  */
 public function __construct($guid = null)
 {
     global $CONFIG;
     parent::__construct($guid);
     $this->_post = $CONFIG->post_byizap;
     if (is_numeric($guid) && $guid > 0) {
         $this->_guid = $guid;
     } else {
         $this->_guid = $this->_post->attributes['guid'];
     }
 }
Exemplo n.º 5
0
 public function __construct($guid = null)
 {
     parent::__construct($guid);
     // set some initial values so that old videos can work
     if (empty($this->videosrc)) {
         $this->videosrc = $this->IZAPSETTINGS->filesPath . 'file/' . $this->guid . '/' . friendly_title($this->title) . '.flv';
     }
     // sets the defalut value for the old videos, if not set yet
     if (empty($this->converted)) {
         $this->converted = 'yes';
     }
 }
Exemplo n.º 6
0
 public function __construct($guid = null)
 {
     parent::__construct($guid);
 }
Exemplo n.º 7
0
 public function __construct($row = null)
 {
     parent::__construct($row);
 }
Exemplo n.º 8
0
 /**
  * 
  * @param integer  $guid
  * 
  * @version 5.0
  */
 public function __construct($guid = NULL)
 {
     parent::__construct($guid);
     // set some initial values so that old videos can work
 }