function __construct(&$props = NULL, ZEUS $zeus, LOGGROUP $grp = NULL, $flags = 0) { if (($flags & REQUEST::CONTROL) == 0 && is_array($props) && preg_match("/^maskid(\\d+)\$/", $props["db_mask"], $m)) { $sql = "SELECT name, mask FROM masks WHERE maskid=" . $m[1]; try { $stmt = $zeus->db->Prepare($sql); $stmt->bindColumn(1, $name); $stmt->bindColumn(2, $mask); //, PDO::PARAM_LOB); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_BOUND); unset($stmt); if ($row) { $this->ids = $zeus->ParseMask($mask); return; } } catch (PDOException $pe) { $e = $this->dbh->errorInfo(); throw new ADEIException(translate("Execution of the SQL Query is failed. SQL Error: %u, Driver Error: %u, Message: %s ", $e[0], $e[1], $e[2]) . "[{$sql}]"); } } parent::__construct($props); }