/** * Like $this->getOne(), except returns a null when no result is found, * without throwing an error. * * @param string $sql The SQL string. * @param mixed $binds The binds or a single bind. * * @see AMysql_Abstract::getOne() * * @return string|int|NULL **/ public function getOneNull($sql, $binds = array()) { $stmt = new AMysql_Statement($this); $stmt->query($sql, $binds); return $stmt->resultNull(0, 0); }