public function setPagination($limit, $startWith = 0) { IntegerDataTypeHandler::checkNonNegativeInteger($limit); IntegerDataTypeHandler::checkNonNegativeInteger($startWith); $this->limit = $limit; $this->startWith = $startWith; }
function gd_performance_admin_settings_validate ( $form, &$form_state ) { $batchSize = StringHelper::trim($form_state['values']['file_upload_batch_size']); if (isset($batchSize)) { try { IntegerDataTypeHandler::checkPositiveInteger($batchSize); } catch (Exception $e) { form_set_error('file_upload_batch_size', $e->getMessage()); } } }