"url", "redirect", "email" and "phone"
Special string types: "url" (parts of HTTP links, URL), "redirect" (full HTTP links), "email" (E-mail), "phone" (phone).
Purpose: words (solid sequences of words with no spaces) of the given format:
- "url" - latin characters and digits without spaces, and also the symbol "-" ("_" is not used)
- "redirect" - full links with http/https
- "email" - E-mail address like name@domain.zone
- "phone" - digits, spaces, characters "(", ")", "+" and "-"
Field type in SQL table: "char" and "varchar".
Additional parameter for URL datatype
"translit_from"
Purpose: quick making of url value, based on other field (usually name) in admin panel
Possible values: string, name of field to build url from
By default: "false"
Samples
array("Link", "url", "url", array("unique" => true, "translit_from" => "name")) array("Redirect", "redirect", "redirect") array("Email", "email", "email", array("required" => true, "unique" => true)) array("Client phone", "phone", "client_phone")
Previous section
"int", "float" and "order"