PHP Class TI_Form_validation, TastyIgniter

Inheritance: extends CI_Form_validation
Show file Open project: tastyigniter/tastyigniter

Public Properties

Property Type Description
$CI

Protected Properties

Property Type Description
$_old_error_array
$_old_error_messages
$_old_field_data
$old_error_string

Public Methods

Method Description
error ( $field, $prefix = '', $suffix = '' ) --------------------------------------------------------------------
get_lat_lng ( $str, string $post_item = 'address' ) : boolean Valid Date
is_unique ( string $str, string $field ) : boolean Is Unique
reset_validation ( ) : CI_Form_validation Reset validation vars
valid_date ( $str ) : boolean Valid Date
valid_time ( $str ) : boolean Valid Time
xss_clean ( $str ) : string XSS Clean

Protected Methods

Method Description
_translate_fieldname ( $fieldname ) : string Translate a field name

Method Details

_translate_fieldname() protected method

Translate a field name
protected _translate_fieldname ( $fieldname ) : string
return string

error() public method

--------------------------------------------------------------------
public error ( $field, $prefix = '', $suffix = '' )

get_lat_lng() public method

Valid Date
public get_lat_lng ( $str, string $post_item = 'address' ) : boolean
$str
$post_item string
return boolean

is_unique() public method

Check if the input value doesn't already exist in the specified database field.
public is_unique ( string $str, string $field ) : boolean
$str string
$field string
return boolean

reset_validation() public method

Prevents subsequent validation routines from being affected by the results of any previous validation routine due to the CI singleton.
public reset_validation ( ) : CI_Form_validation
return CI_Form_validation

valid_date() public method

Valid Date
public valid_date ( $str ) : boolean
return boolean

valid_time() public method

Valid Time
public valid_time ( $str ) : boolean
return boolean

xss_clean() public method

XSS Clean
public xss_clean ( $str ) : string
return string

Property Details

$CI public property

public $CI

$_old_error_array protected property

protected $_old_error_array

$_old_error_messages protected property

protected $_old_error_messages

$_old_field_data protected property

protected $_old_field_data

$old_error_string protected property

protected $old_error_string