/** * RÉCUPÉRATION d'entrée(s) de table SQL * @param STRING $table Le nom de la table SQL * @param OBJECT $pdoInstance Une instance de PDO préinitialisée (optionnel) */ public function __construct($table = false, $pdoInstance = false) { if ($table == false) { throw new Exception("Infos::__construct() : missing table name"); } Listing::__construct($pdoInstance); $this->setTable($table); }
public function __construct(\SimpleXMLElement $xml) { parent::__construct($xml); $this->setIsRental(true); if (!in_array($this->getStatus(), $this->inactive)) { $this->setPrice((string) $xml->rent); $this->setCategory((string) $xml->category->attributes()->name); $this->setPaymentFreq((string) $xml->rent->attributes()->period); $this->setDisplayPrice((string) $xml->rent->attributes()->display); $this->setAvailable((string) $xml->dateAvailable); } }
function __construct($data_source) { parent::__construct($data_source); }