Public Member Functions | |
setAllowedPattern ($pattern) | |
| |
import ($scope) | |
Public Attributes | |
const | MAIL_PATTERN = '/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/s' |
const | URL_PATTERN = '/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}((:[0-9]{1,5})?\/.*)?$/is' |
Private Attributes | |
$pattern = null |
Definition at line 16 of file PrimitiveString.class.php.
PrimitiveString::setAllowedPattern | ( | $ | pattern | ) |
Definition at line 26 of file PrimitiveString.class.php.
References $pattern.
PrimitiveString::import | ( | $ | scope | ) |
Reimplemented from BasePrimitive.
Reimplemented in ExplodedPrimitive.
Definition at line 33 of file PrimitiveString.class.php.
References BasePrimitive::import(), and FiltrablePrimitive::selfFilter().
const PrimitiveString::MAIL_PATTERN = '/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/s' |
Definition at line 18 of file PrimitiveString.class.php.
const PrimitiveString::URL_PATTERN = '/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}((:[0-9]{1,5})?\/.*)?$/is' |
Definition at line 19 of file PrimitiveString.class.php.
PrimitiveString::$pattern = null [private] |