@@ 711-721 (lines=11) @@ | ||
708 | * |
|
709 | * @return DBObject Selected DBObject or NULL otherwise. |
|
710 | */ |
|
711 | public static function selectDBObject($query, $types, $params, $instance) |
|
712 | { |
|
713 | $stmt = self::doSelectQuery($query, $types, $params); |
|
714 | $obj = null; |
|
715 | if ($stmt) { |
|
716 | $obj = self::selectDBObjectFromStatement($stmt, $instance); |
|
717 | ||
718 | $stmt->close(); |
|
719 | } |
|
720 | ||
721 | return $obj; |
|
722 | } |
|
723 | ||
724 | /** |
|
@@ 768-778 (lines=11) @@ | ||
765 | * |
|
766 | * @return DBObject Selected DBObject or NULL otherwise. |
|
767 | */ |
|
768 | public static function selectDBObjects($query, $types, $params, $instance) |
|
769 | { |
|
770 | $stmt = self::doSelectQuery($query, $types, $params); |
|
771 | $obj = null; |
|
772 | if ($stmt) { |
|
773 | $obj = self::selectDBObjectsFromStatement($stmt, $instance); |
|
774 | ||
775 | $stmt->close(); |
|
776 | } |
|
777 | ||
778 | return $obj; |
|
779 | } |
|
780 | ||
781 | /** |