This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Helper_Validation_Numbers

Helpful functions for validating numbers.

Direct known subclasses


Package: Helpers\Validation
Copyright: Copyright (c) 2003-2008 Concrete5. (
License: MIT License
Author: Andrew Embler
Located at core/helpers/validation/numbers.php

Methods summary

public boolean
# integer( $data )

Tests whether the passed item is an integer. Since this is frequently used by the form helper we're not checking whether the TYPE of data is an integer, but whether the passed argument represents a valid text/string version of an integer (so we'll use a regular expression)