public function clean() { $this->rentalId = InputUtil::getInt($this->seasonId); $this->seasonId = InputUtil::getInt($this->seasonId); $this->dailyRate = floatval($this->dailyRate); $this->applyDurationDiscount = BooleanUtil::getBooleanValue($this->applyDurationDiscount); }
public function clean() { $this->ids = IU::getIdsString($this->ids); $this->published = BU::getBooleanValue($this->published); $this->vendorIds = IU::getIdsString($this->vendorIds); $this->fromDate = DU::validate($this->fromDate, 'YYYY-MM-DD') ? $this->fromDate : null; $this->toDate = DU::validate($this->toDate, 'YYYY-MM-DD') ? $this->toDate : null; $this->vehicleIds = IU::getIdsString($this->vehicleIds); $this->vehicleTypeIds = IU::getIdsString($this->vehicleTypeIds); $this->vehicleClassIds = IU::getIdsString($this->vehicleClassIds); $this->vehicleMakeIds = IU::getIdsString($this->vehicleMakeIds); $this->vehicleModelIds = IU::getIdsString($this->vehicleModelIds); $this->fuelTypeIds = IU::getIdsString($this->fuelTypeIds); $this->transmissionIds = IU::getIdsString($this->transmissionIds); $this->limit = IU::getInt($this->limit); $this->page = IU::getInt($this->page); }