public function value() { if (isset($_REQUEST["prm_{$this->id}"])) { $val = trim(DBService::escapeString($_REQUEST["prm_{$this->id}"])); if ($val !== '') { return $val; } } return null; }
public static function publisherNotes() { $db = new DBService(Config::$database->{self::$dbname}); return $db->query("SELECT startYear, endYear, noteText, reportDisplayName\n\t\t\t\tFROM PublisherPlatformNote pn, PublisherPlatform pp\n\t\t\t\tWHERE pp.publisherPlatformID = pn.publisherPlatformID\n\t\t\t\tAND pp.publisherPlatformID in (" . $db->escapeString(join(',', array_keys(self::$pubIDs))) . ");")->fetchRows(MYSQLI_ASSOC); }