getValue())) { $valueArray = explode(',', $this->getValue()); foreach ($valueArray as $value) { if (!is_numeric($value) || $value < 1) { throw new ValidatorException(__('Pagination value must be a positive integer.')); } } } parent::beforeSave(); // TODO: Change the autogenerated stub } }