コード例 #1
0
 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);
 }
コード例 #2
0
 public function clean()
 {
     $this->vendorId = IU::getInt($this->vendorId);
     $this->vehicleTypeId = IU::getInt($this->vehicleTypeId);
     $this->vendorLocationId = IU::getInt($this->vendorLocationId);
     $this->vehicleModelId = IU::getInt($this->vehicleModelId);
     $this->vehicleClassId = IU::getInt($this->vehicleClassId);
     $this->transmissionId = IU::getInt($this->transmissionId);
     $this->fuelTypeId = IU::getInt($this->fuelTypeId);
     $this->accommodates = IU::getInt($this->accommodates);
     $this->yearCreated = IU::getInt($this->yearCreated);
 }
コード例 #3
0
 public function clean()
 {
     $this->freeMiles = InputUtil::getInt($this->freeMiles);
     $this->mileageFee = !is_null(InputUtil::getFloat($this->mileageFee)) ? InputUtil::getFloat($this->mileageFee) : InputUtil::getInt($this->mileageFee);
 }
コード例 #4
0
 public function clean()
 {
     $this->countryId = IU::getInt($this->countryId);
 }
コード例 #5
0
 public function clean()
 {
     $this->userId = InputUtil::getInt($this->userId);
     $this->vendorId = InputUtil::getInt($this->vendorId);
 }
コード例 #6
0
 public function clean()
 {
     $this->vendorId = InputUtil::getInt($this->vendorId);
     $this->name = trim($this->name);
 }
コード例 #7
0
 public function clean()
 {
     $this->vendorId = InputUtil::getInt($this->vendorId);
     $this->rate = InputUtil::getFloat($this->rate);
     $this->rateTypeId = InputUtil::getInt($this->rateTypeId);
 }
コード例 #8
0
 public function clean()
 {
     $this->subdivisionId = InputUtil::getInt($this->subdivisionId);
 }
コード例 #9
0
 public function clean()
 {
     $this->minimumDays = InputUtil::getInt($this->minimumDays);
     $this->percentDiscount = InputUtil::getFloat($this->percentDiscount);
     $this->rentalId = InputUtil::getInt($this->rentalId);
 }
コード例 #10
0
 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);
 }
コード例 #11
0
 public function clean()
 {
     $this->year = InputUtil::getInt($this->year);
 }
コード例 #12
0
 public function clean()
 {
     $this->rate = InputUtil::getFloat($this->rate);
     $this->bookingPolicyId = InputUtil::getInt($this->bookingPolicyId);
     $this->cancellationPolicyId = InputUtil::getInt($this->cancellationPolicyId);
     $this->fixedMileageFeeId = InputUtil::getInt($this->fixedMileageFeeId);
     $this->vendorId = InputUtil::getInt($this->vendorId);
     $this->vehicleTypeId = InputUtil::getInt($this->vehicleTypeId);
     $this->vehicleClassId = InputUtil::getInt($this->vehicleClassId);
 }
コード例 #13
0
 public function clean()
 {
     $this->perGallonFee = !is_null(InputUtil::getFloat($this->perGallonFee)) ? InputUtil::getFloat($this->perGallonFee) : InputUtil::getInt($this->perGallonFee);
 }