IFilter: Filter Library
Grammar:
1 ifilter::act ($str, $type, $limitLen);
View Code
Parameters |
Describe |
Str |
Parameter: string | Array, required, filtered string, multiple strings available in the form of arrays |
Type |
Parameters: string, optional, default: string, optional value (int, float, string, text, bool, url,filename,strict) |
Limitlen |
Parameters: int, maximum number of characters entered, no Limit by default |
ireq: Processing get,post data
Grammar:
1 // get data for $_get and $_post transfer methods with key $key 2 ireq::get ($key$type=false); 3 4 // sets the value of a variable of $_get or $_post with a key of $key 5 ireq::set ($key$value$type= ' get ');
View Code
Parameters |
Describe |
Key |
Parameters: String, required, \$_get or \$_post key |
Type |
Parameters: String, default value: False, Delivery mode: (Get post post first); Optional:, Get:get way; Post:post Way |
Value |
Parameters: value, setting values |
Isafe: Security mechanism session or cookie data manipulation
Grammar:
1 /**2 * @action get get Cookie | | The value of Session3 * @action set Setting Cookie | | Session value4 * @action Clear Delete a cookie | | The value of the session5 * @action clearAll Delete all Cookies | | The value of the session6 * @action getsafeclass Get Cookie | | Session object, which is to get a cookie | | Session value7 */8Isafe::get (' Visit ',$type= ' ');9Isafe::set (' Visit ',$visit,$type= ' ');TenIsafe::clear ($name=NULL,$type= ' '); OneIsafe::clearall ($type= ' '); AIsafe::getsafeclass ($type= ");
View Code
Parameters |
Describe |
Key |
Parameters: String, required, session or cookie key, name |
Type |
Parameter: string, default value: ' ', value is session or cookie |
Value |
Parameter: value, session, or cookie |
The above is iwebshop more commonly used class library, want to know more content can go into the \iwebshop\lib\core\util directory in-depth understanding
Summary of usage of Iwebshop Common class library