Fix bug in compile-time statics
This commit is contained in:
@@ -10,14 +10,14 @@ class SihnonFramework_Validation_Text extends SihnonFramework_Validation {
|
|||||||
const Whitespace = 0x16;
|
const Whitespace = 0x16;
|
||||||
|
|
||||||
protected static $contents = array(
|
protected static $contents = array(
|
||||||
static::Alphabetical => ':alpha:',
|
self::Alphabetical => ':alpha:',
|
||||||
static::Digit => ':digit:',
|
self::Digit => ':digit:',
|
||||||
static::Numeric => ':digit:\.-',
|
self::Numeric => ':digit:\.-',
|
||||||
static::Symbol => ':punct:',
|
self::Symbol => ':punct:',
|
||||||
static::Whitespace => ':space:',
|
self::Whitespace => ':space:',
|
||||||
);
|
);
|
||||||
|
|
||||||
public static function content($inputs, $content = static::Defaults) {
|
public static function content($inputs, $content = self::Defaults) {
|
||||||
static::pattern($inputs, static::buildContentPattern($content));
|
static::pattern($inputs, static::buildContentPattern($content));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user