public function __construct($guid = null) { if ($guid && !is_object($guid)) { $guid = get_entity_as_row($guid); } parent::__construct($guid); }
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); }
/** * 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))); } } }
/** * 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']; } }
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'; } }
public function __construct($guid = null) { parent::__construct($guid); }
public function __construct($row = null) { parent::__construct($row); }
/** * * @param integer $guid * * @version 5.0 */ public function __construct($guid = NULL) { parent::__construct($guid); // set some initial values so that old videos can work }