X-Git-Url: https://git.mxchange.org/?p=hub.git;a=blobdiff_plain;f=inc%2Fclasses%2Finterfaces%2Fdatabase%2Ffrontend%2Fclass_DatabaseFrontendInterface.php;fp=inc%2Fclasses%2Finterfaces%2Fdatabase%2Ffrontend%2Fclass_DatabaseFrontendInterface.php;h=14e89d99856885532bb5cb7e06a9a7be76ed7491;hp=9b44eabe1c255346f54c3bc4303c5be8eea76c1c;hb=1f1f351e726dae5d4cd25b46639c2fcaa9e38661;hpb=4505d1aba1901496e8034a8009fe635c05e70648 diff --git a/inc/classes/interfaces/database/frontend/class_DatabaseFrontendInterface.php b/inc/classes/interfaces/database/frontend/class_DatabaseFrontendInterface.php index 9b44eabe1..14e89d998 100644 --- a/inc/classes/interfaces/database/frontend/class_DatabaseFrontendInterface.php +++ b/inc/classes/interfaces/database/frontend/class_DatabaseFrontendInterface.php @@ -36,6 +36,24 @@ interface DatabaseFrontendInterface extends FrameworkDatabaseInterface { * ObjectContainer */ function loadObject (); + + /** + * Makes sure that the database connection is alive + * + * @return void + */ + function connectToDatabase (); + + /** + * Starts a SELECT query on the database by given return type, table name + * and search criteria + * + * @param $resultType Result type ("array", "object" and "indexed" are valid) + * @param $tableName Name of the database table + * @param $criteria Search criteria class + * @return $resultData Result data of the query + */ + function querySelect ($resultType, $tableName, Criteria $criteriaInstance); } // [EOF]