예제 #1
0
 public function __construct($value, $sanitize = false)
 {
     if ($sanitize) {
         $value = filter_var($value, FILTER_SANITIZE_URL);
     }
     parent::__construct($value);
 }
예제 #2
0
 public function __construct($value, $padValue, $padAmount, $padType)
 {
     parent::__construct($value);
     if ($padType != STR_PAD_RIGHT && $padType != STR_PAD_LEFT && $padType != STR_PAD_BOTH) {
         throw new \InvalidArgumentException("Invalid pad side option");
     }
     $this->padValue = $padValue;
     $this->padType = $padType;
     $this->padAmount = $padAmount;
 }
예제 #3
0
 public function __construct($parent = null)
 {
     parent::__construct($parent, "to_upper");
 }
예제 #4
0
 public function __construct($value, $appendValue)
 {
     parent::__construct($value);
     $this->appendValue = $appendValue;
     $this->setPreAppend(false);
 }
 public function __construct($parent = null)
 {
     parent::__construct($parent, "string_to_float");
 }
예제 #6
0
 public function __construct($parent = null, $separator = "-", $position = 1)
 {
     parent::__construct($parent, "tokenize", array($separator, $position));
 }
예제 #7
0
 public function __construct($value, $needle)
 {
     parent::__construct($value);
     $this->needle = $needle;
 }
예제 #8
0
 public function __construct($value, $suffix)
 {
     parent::__construct($value);
     $this->suffix = $suffix;
 }
예제 #9
0
 public function __construct($value, $start, $length = null)
 {
     parent::__construct($value);
     $this->start = $start;
     $this->length = $length;
 }
예제 #10
0
 public function __construct($parent = null)
 {
     parent::__construct($parent, "urldecode");
 }
예제 #11
0
 /**
  * Constructor.
  *
  * @param array $attributes [optional]
  */
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
 }
 public function __construct($parent = null)
 {
     parent::__construct($parent, "float_to_string");
 }
예제 #13
0
 public function __construct($value, $allowableTags = '')
 {
     parent::__construct($value);
     $this->allowableTags = $allowableTags;
 }
예제 #14
0
 public function __construct($value, $delimiter)
 {
     parent::__construct($value);
     $this->delimiter = $delimiter;
 }
예제 #15
0
 public function __construct($value, $decode = false)
 {
     parent::__construct($value);
     $this->decode = $decode;
 }
예제 #16
0
 public function __construct($value, $left, $right)
 {
     parent::__construct($value);
     $this->left = $left;
     $this->right = $right;
 }
예제 #17
0
 public function __construct($value)
 {
     parent::__construct($value);
 }
예제 #18
0
 public function __construct($value, $prefix)
 {
     parent::__construct($value);
     $this->prefix = $prefix;
 }