public function __construct($value, $sanitize = false) { if ($sanitize) { $value = filter_var($value, FILTER_SANITIZE_URL); } parent::__construct($value); }
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; }
public function __construct($parent = null) { parent::__construct($parent, "to_upper"); }
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"); }
public function __construct($parent = null, $separator = "-", $position = 1) { parent::__construct($parent, "tokenize", array($separator, $position)); }
public function __construct($value, $needle) { parent::__construct($value); $this->needle = $needle; }
public function __construct($value, $suffix) { parent::__construct($value); $this->suffix = $suffix; }
public function __construct($value, $start, $length = null) { parent::__construct($value); $this->start = $start; $this->length = $length; }
public function __construct($parent = null) { parent::__construct($parent, "urldecode"); }
/** * Constructor. * * @param array $attributes [optional] */ public function __construct(array $attributes = []) { parent::__construct($attributes); }
public function __construct($parent = null) { parent::__construct($parent, "float_to_string"); }
public function __construct($value, $allowableTags = '') { parent::__construct($value); $this->allowableTags = $allowableTags; }
public function __construct($value, $delimiter) { parent::__construct($value); $this->delimiter = $delimiter; }
public function __construct($value, $decode = false) { parent::__construct($value); $this->decode = $decode; }
public function __construct($value, $left, $right) { parent::__construct($value); $this->left = $left; $this->right = $right; }
public function __construct($value) { parent::__construct($value); }
public function __construct($value, $prefix) { parent::__construct($value); $this->prefix = $prefix; }