コード例 #1
0
 public static function search($search_data)
 {
     $toRet = array("establishments" => "", "pinchos" => "");
     $searchPinchos = Pincho::search($search_data);
     if ($searchPinchos != NULL) {
         foreach ($searchPinchos as $p) {
             $toRet["pinchos"][$p->getIdnombre()] = $p;
         }
     }
     $searchEstablishments = Establecimiento::search($search_data);
     if ($searchEstablishments != NULL) {
         foreach ($searchEstablishments as $e) {
             $toRet["establishments"][$e->getIdemail()] = $e;
         }
     }
     return $toRet;
 }