PHP Class romaninsh\validation\MB

$model->add('Controller_Validator_MB',array( 'encoding'=>'UTF-8')) ->is(); org $model->validator->add('Controller_Validator_MB',array( 'encoding'=>'UTF-8')) ->is(); Q: Why not implement Multi-byte support inside basic validator? A: For the same reason why PHP's strlen() is not supporting multibyte.
Inheritance: extends romaninsh\validation\Controller_Validator_Advanced
Mostra file Open project: atk4/atk4

Public Properties

Property Type Description
$encoding TODO: Multibyte stuff: refactor to a better place??
$is_mb

Public Methods

Method Description
mb_str_to_lower ( $a ) Is the PHP5 multibyte lib available?
mb_str_to_upper ( $a )
mb_str_to_upper_words ( $a )
mb_truncate ( $a, $len, $append = '...' )
rule_len ( $a )

Method Details

mb_str_to_lower() public method

Is the PHP5 multibyte lib available?
public mb_str_to_lower ( $a )

mb_str_to_upper() public method

public mb_str_to_upper ( $a )

mb_str_to_upper_words() public method

public mb_str_to_upper_words ( $a )

mb_truncate() public method

public mb_truncate ( $a, $len, $append = '...' )

rule_len() public method

public rule_len ( $a )

Property Details

$encoding public_oe property

TODO: Multibyte stuff: refactor to a better place??
public $encoding

$is_mb public_oe property

public $is_mb