Esempio n. 1
0
 /**
  * service
  * @param string $Servicio
  * @return array
  */
 public function receiveMessage($Servicio)
 {
     switch ($Servicio) {
         case 'BANNER':
             $util = new Server_Util();
             $ModelBanner = new Admin_Model_Banner();
             $totalBanners = $ModelBanner->BannersAll();
             $response = $util->groupArray($totalBanners, 'posicion');
             break;
         case 'BANNER2':
             $util = new Server_Util();
             $ModelBanner = new Admin_Model_Banner2();
             $totalBanners = $ModelBanner->BannersAll();
             $response = $util->groupArray($totalBanners, 'codtbanner');
             break;
         case 'MUSICA':
             $ModelMusica = new Admin_Model_Musica();
             $response = $ModelMusica->MusicaAll();
             break;
         case 'JUEGO':
             $ModelJuego = new Admin_Model_Juego();
             $response = $ModelJuego->JuegoAll();
             break;
         case 'TEXT':
             $ModelText = new Admin_Model_Text();
             $response = $ModelText->textAll();
             break;
         case 'SERVICIO':
             $ModelServicio = new Admin_Model_Servicio();
             $response = $ModelServicio->ServicioAll();
             break;
         default:
             break;
     }
     return $response;
 }
Esempio n. 2
0
 /**
  * service
  * @param string $Servicio
  * @return array
  */
 public function estructuraValores($Servicio)
 {
     switch ($Servicio) {
         //            case 'BANNER':
         //                $util = new Server_Util();
         //                $ModelBanner = new Admin_Model_Banner();
         //                $totalBanners = $ModelBanner->BannersAll();
         //                $response = $util->groupArray($totalBanners, 'posicion');
         //                break;
         case 'BANNER':
             //                $util = new Server_Util();
             $ModelBanner = new Admin_Model_Banner2();
             $response = $ModelBanner->BannersAll();
             //                $response = $util->groupArray($totalBanners, 'codtbanner');
             break;
         case 'MUSICA':
             $ModelMusica = new Admin_Model_Musica();
             $response = $ModelMusica->MusicaAll();
             break;
         case 'JUEGO':
             $ModelJuego = new Admin_Model_Juego();
             $response = $ModelJuego->JuegoAll();
             break;
         case 'TEXT':
             $ModelText = new Admin_Model_Text();
             $response = $ModelText->textAll();
             break;
         case 'LINK':
             $ModelLink = new Admin_Model_Link();
             $response = $ModelLink->findAllByType(true);
             break;
         case 'SERVICIO':
             $ModelServicio = new Admin_Model_Servicio();
             $response = $ModelServicio->ServicioDescripcion();
             break;
         default:
             break;
     }
     return $response;
 }