Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * 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');
     }
 }
Esempio n. 3
0
 /**
  * @param int $userId
  */
 public function __construct($userId)
 {
     parent::__construct('AfterbuyUserID');
     $this->filterValues['FilterValue'] = strval($userId);
 }
Esempio n. 4
0
 /**
  * @param string $platform
  * @param bool   $negateFilter
  */
 public function __construct($platform, $negateFilter = false)
 {
     parent::__construct('Plattform');
     $this->filterValues['FilterValue'] = $negateFilter ? 'not_' . $platform : $platform;
 }
Esempio n. 5
0
File: Text.php Progetto: Joal01/fof
 /**
  * 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 = '';
 }
Esempio n. 6
0
 /**
  * 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;
 }
Esempio n. 9
0
 /**
  * @param string $filterValue
  */
 public function __construct($filterValue)
 {
     parent::__construct('DefaultFilter');
     $this->filterValues['FilterValue'] = $filterValue;
 }
Esempio n. 10
0
 /**
  * @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;
 }
Esempio n. 12
0
 public function __construct()
 {
     parent::__construct('RangeID');
 }
Esempio n. 13
0
 /**
  * @param int $shopId
  */
 public function __construct($shopId)
 {
     parent::__construct('ShopId');
     $this->filterValues['FilterValue'] = strval($shopId);
 }
Esempio n. 14
0
 /**
  * @param int $orderId
  */
 public function __construct($orderId)
 {
     parent::__construct('OrderID');
     $this->filterValues['FilterValue'] = strval($orderId);
 }
Esempio n. 15
0
 /**
  *
  * @see Vatsimphp\Filter.AbstractFilter::__construct()
  */
 public function __construct($iterator)
 {
     parent::__construct($iterator);
     $this->skipComments = false;
 }