Phang  2.1
 All Classes Files Functions Variables Pages
Functions
validation.php File Reference

Functions to validate values. More...

Functions

 is_db_type ($value, $type, $length=0, $label='')
 !Validation rules!!
 is_form_type ($value, $type, $label='')
 Basic database column type / length.
 is_required ($value, $label='', $options=null)
 Simply checks there is some input.
 is_email ($value, $label='', $options=null)
 Valid email validation.
 is_uk_phone ($value, $label='', $options=null)
 UK phone number validation.
 is_mysql_date ($value, $label='', $options=null)
 Valid mysql date.
 is_password ($value, $label='', $options=null)
 Valid password.
 is_date ($value, $label='', $options=null)
 Valid date format.
 is_datetime ($value, $label='', $options=null)
 Valid date/time.
 is_valid_date ($value)
 Valid date.
 is_postcode ($value, $label='', $options=null)
 Postcode.

Detailed Description

Functions to validate values.

Author:
James Tierney / Fifteen Digital Developers Ltd

Function Documentation

is_db_type (   $value,
  $type,
  $length = 0,
  $label = '' 
)

!Validation rules!!

Basic database column type / length