Summary of usage of Iwebshop Common class library

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.