LSYii_Validators

Extends \CValidator

Methods

__construct

__construct() 

validateAttribute

validateAttribute($object, $attribute) 

Arguments

$object

$attribute

Remove some empty characters put by CK editor Did we need to do if user don't use inline HTML editor ?

fixCKeditor(string $value) 

Arguments

$value

string

Remove any script or dangerous HTML

xssFilter(string $value) 

Arguments

$value

string

Defines the customs validation rule for language string

languageFilter(mixed $value) 

Arguments

$value

mixed

Defines the customs validation rule for multi language string

multiLanguageFilter(mixed $value) 

Arguments

$value

mixed

Properties

Filter attribute for fixCKeditor

fixCKeditor : boolean
var

Type(s)

boolean

Filter attribute for XSS

xssfilter : boolean
var

Type(s)

boolean

Filter attribute for url

isUrl : boolean
var

Type(s)

boolean

Filter attribute for isLanguage

isLanguage : boolean
var

Type(s)

boolean

Filter attribute for isLanguageMulti (multi language string)

isLanguageMulti : boolean
var

Type(s)

boolean