Você está na página 1de 3

Zend_Form Filter Paramater

Filter
Alnum Alpha Digits Int Dir BaseName RealPath StringToLower StringToUpper StringTrim StripNewlines HtmlEntities StripTags Encrypt Decrypt NormalizedToLocalized LocalizedToNormalized Callback LowerCase UpperCase Rename

Name Description
Removes non-alphanumeric characters from argument Removes non-alphabetic characters from argument Removes non-numeric characters from argument Returns integer value of argument Returns directory name component of argument Returns filename component of argument Returns absolute filesystem path for argument Converts argument to a lowercase string Converts argument to an uppercase string Removes leading and trailing whitespace from argument Removes line break characters from argument Converts special characters in argument to their HTML entity equivalents Removes HTML and PHP code from argument Returns encrypted version of argument Returns decrypted version of argument Returns argument in standard form Returns argument in localized form Calls user-defined filter with argument Converts contents of uploaded file to lowercase Converts contents of uploaded file to uppercase Renames uploaded file

Zend_Form Validator Parameter

Validator
NotEmpty StringLength InArray Identical Alnum Alpha Int Float Hex Digits Between GreaterThan LessThan Date EmailAddress Hostname Ip Regex Barcode

NameDescription
Returns false if argument is empty Returns false if argument does not conform to specified minimum/maximum length Returns false if argument is not in specified array Returns false if argument does not match specified value Returns false if argument does not contain only alphanumeric characters Returns false if argument does not contain only alphabetic characters Returns false if argument is not an integer Returns false if argument is not a floating-point number Returns false if argument is not a hexadecimal value Returns false if argument does not contain only numbers Returns false if argument is not in a specified numeric range Returns false if argument is not greater than a specified value Returns false if argument is not less than a specified value Returns false if argument is not a valid date Returns false if argument does not conform to standard email address conventions Returns false if argument does not conform to standard host name conventions Returns false if argument does not conform to standard IP address conventions Returns false if argument does not conform to specified regular expression pattern Returns false if argument is not a valid bar code

Ccnum Returns false if argument does not conform to the Luhn algorithm for standard credit card number conventions

Iban Exists Count Size FilesSize Extension MimeType

Returns false if argument is not a valid IBAN number Returns false if argument is not a valid file Returns false if number of uploaded files is outside the range specified in argument Returns false if uploaded file size is outside the range specified in argument Returns false if uploaded file size total is outside the range specified in argument Returns false if uploaded file extension does not match those specified in argument Returns false if uploaded file MIME type does not match those specified in argument

IsCompressed Returns false if uploaded file is not a compressed archive file IsImage Returns false if uploaded file is not an image file

ImageSize

Returns false if uploaded image dimensions are outside the range specified in argument

Crc32, Md5, Sha1,Hash Returns false if uploaded file content does not match the hash value specified in argument (supports crc32, md5, and sha1 hash algorithms)

ExcludeExtension ExcludeMimeType

Returns false if uploaded file extension matches those specified in argument Returns false if uploaded file MIME type matches those specified in argument

WordCount Returns false if number of words in uploaded file is outside the range specified in argument Db_RecordExists specified in argument Returns false if a particular record does not exist in the database and table

Db_NoRecordExists argument

Returns false if a particular record exists in the database and table specified in

Você também pode gostar