public function __construct($object) { if ($object instanceof stdClass or $object instanceof JTable) { $this->_object = $object; $this->_object_id = $object->id; } else { $this->_object_id = $object; $this->_loadAddress(); } parent::__construct(); }
public function __construct($dbwatermark) { if ($dbwatermark instanceof stdClass) { $this->_watermark = $dbwatermark; $this->_watermark_id = $dbwatermark->id; } else { $this->_watermark_id = $dbwatermark; $this->_loadWatermark(); } parent::__construct(); }
/** * creates the lineitem object. The given $lineitem can be an stdClass object or a id of a line item. * This is necessary since a lineitemcontainer can already preload it's line items with a single query. * * @param $lineitem */ function __construct($lineitem) { if (is_object($lineitem)) { $this->_lineitem = $lineitem; $this->_lineitem_id = $lineitem->id; } else { $this->_lineitem_id = $lineitem; $this->_loadLineItem(); } parent::__construct(); }
public function __construct($dbimagetype) { if ($dbimagetype instanceof stdClass) { $this->_imagetype = $dbimagetype; $this->_imagetype_id = $dbimagetype->id; } else { $this->_imagetype_id = $dbimagetype; $this->_loadImageType(); } $this->_ls_displayname = new EventgalleryLibraryDatabaseLocalizablestring($this->_imagetype->displayname); $this->_ls_description = new EventgalleryLibraryDatabaseLocalizablestring($this->_imagetype->description); parent::__construct(); }
public function __construct($object) { if ($object instanceof stdClass) { $this->_object = $object; $this->_object_id = $object->id; } else { $this->_object_id = $object; $this->_loadMethodData(); } $this->_ls_displayname = new EventgalleryLibraryDatabaseLocalizablestring($this->_object->displayname); $this->_ls_description = new EventgalleryLibraryDatabaseLocalizablestring($this->_object->description); parent::__construct(); }
/** * $creates the lineitem object. $dblineitem is the database object of this line item */ public function __construct($foldername) { if (is_object($foldername)) { $this->_folder = $foldername; $foldername = $this->_folder->folder; } $this->_foldername = $foldername; if ($this->_folder == null) { $this->_loadFolder(); } $this->_prepareData(); parent::__construct(); }
/** * @param int $imagetypeset_id */ public function __construct($imagetypeset_id = -1) { $this->_imagetypeset_id = $imagetypeset_id; $this->_loadImageTypeSet(); parent::__construct(); }
public function __construct() { parent::__construct(); }
/** * @param int $foldertype_id */ public function __construct($foldertype_id = -1) { $this->_foldertype_id = $foldertype_id; $this->_loadFolderType(); parent::__construct(); }