/** * Listar algunos Software que contenga $softwareComentarios * * @param $softwareComentarios * @param $performSize * @param $firstResultNumber * @param $numResults */ public function listSoftwaresBySoftwareComentariosContains($softwareComentarios, $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 + 243); } if (!EntityValidator::validateGlobalOrderPriority($orderPriority)) { throw new Exception(SALAS_COMP_ALERT_E_VALIDATION_FAIL, $this->ID + 245); } if (!EntityValidator::validateString($softwareComentarios)) { throw new Exception(SALAS_COMP_ALERT_E_VALIDATION_FAIL, $this->ID + 247); } # Listamos las entidades if ($performSize) { $this->lastRequestSize = $this->softwareBean->countGetSoftwaresBySoftwareComentariosContains($softwareComentarios); } return SoftwareDTO::loadFromEntities($this->softwareBean->listSoftwaresBySoftwareComentariosContains($softwareComentarios, $firstResultNumber, $numResults, $orderBy, $orderPriority)); }