/** * Constructor * Ensure a valid PKI object is passed * @param \Foundation\Form\Element $e * @param \Foundation\PKI $pki */ public function __construct(\Foundation\Form\Element $e, $pki) { if (!$pki instanceof \Foundation\PKI) { throw new \Foundation\Exception('Invalid PKI class passed to Encrypt filter'); } parent::__construct($e, $pki); }
/** * Check to be sure we have the HTML purifier library * @param \Foundation\Form\Element $e * @param mixed $ruleSet */ public function __construct(\Foundation\Form\Element $e, $ruleSet = null) { parent::__construct($e, $ruleSet); if (!class_exists('HTMLPurifier')) { throw new \Foundation\Exception('HTML Purifier is required for the SafeHTML filter and it is not included'); } }
/** * @param int $userId */ public function __construct($userId) { parent::__construct('AfterbuyUserID'); $this->filterValues['FilterValue'] = strval($userId); }
/** * @param string $platform * @param bool $negateFilter */ public function __construct($platform, $negateFilter = false) { parent::__construct('Plattform'); $this->filterValues['FilterValue'] = $negateFilter ? 'not_' . $platform : $platform; }
/** * Constructor * * @param \JDatabaseDriver $db The database object * @param object $field The field informations as taken from the db */ public function __construct($db, $field) { parent::__construct($db, $field); $this->null_value = ''; }
/** * AbstractFilter constructor. * * @param bool $break If true break after the filter if value is unique. * @param int $start Start value. */ public function __construct($break = true, $start = 2) { parent::__construct($break, static::COMBINE_APPEND); $this->start = (int) $start; }
function __construct($param) { parent::__construct($param); $this->_operator = $this->parseOperatorFromParam($this->_param); $this->_value = $this->parseValueFromParam($this->_param); }
/** * SlugifyFilter constructor. * * @param array $columns Columns being used for the value. * @param bool $break If true break after the filter if value is unique. * @param int $combine Combine flag. */ public function __construct(array $columns, $break = true, $combine = self::COMBINE_REPLACE) { parent::__construct($break, $combine); $this->columns = $columns; }
/** * @param string $filterValue */ public function __construct($filterValue) { parent::__construct('DefaultFilter'); $this->filterValues['FilterValue'] = $filterValue; }
/** * @param string $email */ public function __construct($email) { parent::__construct('AfterbuyUserEmail'); $this->filterValues['FilterValue'] = $email; }
/** * @param string $flagId */ public function __construct($flagId) { parent::__construct('UserDefinedFlag'); $this->filterValues['FilterValue'] = $flagId; }
public function __construct() { parent::__construct('RangeID'); }
/** * @param int $shopId */ public function __construct($shopId) { parent::__construct('ShopId'); $this->filterValues['FilterValue'] = strval($shopId); }
/** * @param int $orderId */ public function __construct($orderId) { parent::__construct('OrderID'); $this->filterValues['FilterValue'] = strval($orderId); }
/** * * @see Vatsimphp\Filter.AbstractFilter::__construct() */ public function __construct($iterator) { parent::__construct($iterator); $this->skipComments = false; }