/** * Listar algunos Salon que contenga $salonNombre * * @param $salonNombre * @param $performSize * @param $firstResultNumber * @param $numResults */ public function listSalonsBySalonNombreContains($salonNombre, $performSize = false, $firstResultNumber = null, $numResults = null, $orderBy = null, $orderPriority = SQL_ASCENDING_ORDER) { # Validamos los campos if ($firstResultNumber !== null && !EntityValidator::validatePositiveNumber($firstResultNumber)) { throw new Exception(SALAS_COMP_ALERT_E_VALIDATION_FAIL, $this->ID + 45); } if (!EntityValidator::validateGlobalOrderPriority($orderPriority)) { throw new Exception(SALAS_COMP_ALERT_E_VALIDATION_FAIL, $this->ID + 47); } if (!EntityValidator::validateString($salonNombre)) { throw new Exception(SALAS_COMP_ALERT_E_VALIDATION_FAIL, $this->ID + 49); } # Listamos las entidades if ($performSize) { $this->lastRequestSize = $this->salonBean->countGetSalonsBySalonNombreContains($salonNombre); } return SalonDTO::loadFromEntities($this->salonBean->listSalonsBySalonNombreContains($salonNombre, $firstResultNumber, $numResults, $orderBy, $orderPriority)); }