论坛停止维护公告

从2018-08-01日期,ZMAX官方维护论坛将迁移至 Joomla中国社区 - ZMAX专区 。ZMAX官方开发团队将会在该板块回复大家所有的提问。请所有的用户有任何的问题在Joomla中国社区发帖。

扩展将上线Joomla中国应用市场

ZMAX团队开发的应用将会逐步上线到Joomla应用市场,届时大家可以在应用市场中下载扩展

 
 
欢迎, 游客
用户名: 密码: 记住我
欢迎提问

主题: Joomla Text字段的filter可用的值

Joomla Text字段的filter可用的值 8 年 11 个月 ago #510

  • ZMAX程序人
  • ZMAX程序人的头像
  • Offline
  • 管理员
  • 开辟Joomla在中国的新局面!
  • 帖子: 758
  • 感谢您收到 124
  • 声望: 8
INT:       An integer,
UINT:      An unsigned integer,
FLOAT:     A floating point number,
BOOLEAN:   A boolean value,
WORD:      A string containing A-Z or underscores only (not case sensitive),
ALNUM:     A string containing A-Z or 0-9 only (not case sensitive),
CMD:       A string containing A-Z, 0-9, underscores, periods or hyphens (not case sensitive),
BASE64:    A string containing A-Z, 0-9, forward slashes, plus or equals (not case sensitive),
STRING:    A fully decoded and sanitised string (default),
HTML:      A sanitised string,
ARRAY:     An array,
PATH:      A sanitised file path,
USERNAME:  Do not use (use an application specific filter),
RAW:       The raw string is returned with no filtering,
unknown:   An unknown filter will act like STRING. If the input is an array it will return an array of fully decoded and sanitised strings.

More info from source code: libraries/joomla/filter/input.php

Example for integer filter:

<field
    name="integer_field"
    type="text"
    filter="integer"
    label="Enter an integer value"
    description="Enter an integer value" />
    
Example for integer filter from source code: administrator/components/com_banners/config.xml
ZMAX程序人,中国专业的Joomla扩展开发团队。我们致力于为中国Joomla用户开发符合中国国情的Joomla扩展!
http://www.zmax99.com
本论坛禁止游客发帖。
创建页面时间:0.089秒
核心: Kunena 论坛