By : Atilla_ordog Published On Wednesday, April 08, 2015, 03:20 In PHP Scripts
/** * Returns car makes * @param int $id OPTIONAL the car make id, returns one record if given * @return array */ public function getMakes($id = null); /** * Returns car models * @param int $makeId OPTIONAL if given, returns the models of a given make * @param int $id OPTIONAL if given, returns one entry. This has priority over makeId * @return array */ public function getModels($makeId = null, $id = null); /** * Searches the database for car makes or models * @param string $keyword The keyword to search for, it is case insensitive * @param int $searchIn A constant to decide where to search. Choose from S_BOTH, S_MAKES, S_MODELS * @param int $makeID OPTIONAL If given, it will only search in given make * @return array */ public function search($keyword = '', $searchIn = self::S_BOTH, $makeID = null);