|
|
Line 1: |
Line 1: |
| This article describes the class ''I2CE_Validate''.
| | #REDIRECT [[Class: I2CE_Validate (4.0.3)]] |
| *Location: Part of the module [[I2CE Module List#I2CE|I2CE]] in the package [https://launchpad.net/i2ce I2CE]
| |
| *Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L34 lib/I2CE_Validate.php] on line 34
| |
| ==Variables==
| |
| ===$false===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L135 i2ce/lib/I2CE_Validate.php] on line 135
| |
| *Type: static protected $false
| |
| | |
| ===$true===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L136 i2ce/lib/I2CE_Validate.php] on line 136
| |
| *Type: static protected $true
| |
| | |
| ===$BaseChar===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L263 i2ce/lib/I2CE_Validate.php] on line 263
| |
| *Type: static protected $BaseChar
| |
| | |
| ===$Ideographic===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L264 i2ce/lib/I2CE_Validate.php] on line 264
| |
| *Type: static protected $Ideographic
| |
| | |
| ===$Letter===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L265 i2ce/lib/I2CE_Validate.php] on line 265
| |
| *Type: static protected $Letter
| |
| | |
| ===$Digit===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L266 i2ce/lib/I2CE_Validate.php] on line 266
| |
| *Type: static protected $Digit
| |
| | |
| ===$CombiningChar===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L267 i2ce/lib/I2CE_Validate.php] on line 267
| |
| *Type: static protected $CombiningChar
| |
| | |
| ===$Extender===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L268 i2ce/lib/I2CE_Validate.php] on line 268
| |
| *Type: static protected $Extender
| |
| | |
| ===$NameChar===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L269 i2ce/lib/I2CE_Validate.php] on line 269
| |
| *Type: static protected $NameChar
| |
| | |
| ===$Name===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L270 i2ce/lib/I2CE_Validate.php] on line 270
| |
| *Type: static protected $Name
| |
| | |
| ===$tokenRegexps===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L271 i2ce/lib/I2CE_Validate.php] on line 271
| |
| *Type: static protected $tokenRegexps
| |
| | |
| ==Methods==
| |
| ===checkCurrency()===
| |
| Checks to make sure currency is valid. This method checks to make sure a number is valid for currency. It can have a decimal or comma with 2 digits past.
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L97 i2ce/lib/I2CE_Validate.php] on line 97
| |
| *Signature: static public function checkCurrency($data)
| |
| *Parameters:
| |
| ** number $data
| |
| *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]
| |
| ===checkDate()===
| |
| Checks to make sure a date is valid
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L128 i2ce/lib/I2CE_Validate.php] on line 128
| |
| *Signature: static public function checkDate($data)
| |
| *Parameters:
| |
| ** [[Class: I2CE_Date | I2CE_Date]] $data
| |
| *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]
| |
| ===checkEmail()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L108 i2ce/lib/I2CE_Validate.php] on line 108
| |
| *Signature: static public function checkEmail($email)
| |
| *Parameters:
| |
| **$email
| |
| ===checkMap()===
| |
| Checks to make sure a mapped value is valid. Map values are saved as an array( "form", "id" );
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L81 i2ce/lib/I2CE_Validate.php] on line 81
| |
| *Signature: static public function checkMap($data)
| |
| *Parameters:
| |
| ** [http://www.php.net/manual/en/language.types.array.php array ] $data
| |
| *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]
| |
| ===checkNumber()===
| |
| Checks to make sure a number is valid This method checks to make sure the number is a number and optionally that it is greater than a specific value.
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L59 i2ce/lib/I2CE_Validate.php] on line 59
| |
| *Signature: static public function checkNumber($data,$min_value)
| |
| *Parameters:
| |
| ** number $data
| |
| ** number $min_value
| |
| ***Default Value: false
| |
| *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]
| |
| ===checkString()===
| |
| Checks to make sure a string isn't blank.
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L41 i2ce/lib/I2CE_Validate.php] on line 41
| |
| *Signature: static public function checkString($data)
| |
| *Parameters:
| |
| ** [http://www.php.net/manual/en/language.types.string.php string ] $data
| |
| *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]
| |
| ===checkVersion()===
| |
| Checks to see if the versions meet the demans given by the operator. Opeartors are '<','lessthan','>','greaterthan','=','equal','equals','exactly','<=','atmost','>=','atleast'
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L177 i2ce/lib/I2CE_Validate.php] on line 177
| |
| *Signature: static public function checkVersion($vers1,$operator,$vers2)
| |
| *Parameters:
| |
| **$vers1
| |
| **$operator
| |
| **$vers2
| |
| *Returns: true<br/>on sucess. false on failure
| |
| ===convertToBoolean()===
| |
| Converts a string such as true/false/yes/no/1/0 to boolean value (stored as either the string '0' or '1')
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L143 i2ce/lib/I2CE_Validate.php] on line 143
| |
| *Signature: static public function convertToBoolean($string,$asBool)
| |
| *Parameters:
| |
| ** [http://www.php.net/manual/en/language.types.string.php string ] $string
| |
| ** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $asBool <br/>Defaults to false. If true returns true/false otherwise returns 1/0. I know ... this is confusing.
| |
| ***Default Value: false
| |
| *Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]<br/>string or null if it is not recognized
| |
| ===isNmToken()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L298 i2ce/lib/I2CE_Validate.php] on line 298
| |
| *Signature: static public function isNmToken($val)
| |
| *Parameters:
| |
| **$val
| |
| ===isTokenDigit()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L282 i2ce/lib/I2CE_Validate.php] on line 282
| |
| *Signature: static public function isTokenDigit($val)
| |
| *Parameters:
| |
| **$val
| |
| ===isTokenLetter()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L288 i2ce/lib/I2CE_Validate.php] on line 288
| |
| *Signature: static public function isTokenLetter($val)
| |
| *Parameters:
| |
| **$val
| |
| ===isTokenName()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L293 i2ce/lib/I2CE_Validate.php] on line 293
| |
| *Signature: static public function isTokenName($val)
| |
| *Parameters:
| |
| **$val
| |
| ===setupTokenRegexps()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L272 i2ce/lib/I2CE_Validate.php] on line 272
| |
| *Signature: protected function setupTokenRegexps()
| |
| ===stripCurrency()===
| |
| Remove any invalid characters that can't be part of a valid currency value.
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/lib/I2CE_Validate.php#L117 i2ce/lib/I2CE_Validate.php] on line 117
| |
| *Signature: static public function stripCurrency($data)
| |
| *Parameters:
| |
| ** [http://www.php.net/manual/en/language.types.string.php string ] $data
| |
| *Returns: number
| |
| | |
| | |
| [[Category:Class Documentation]]
| |