public function ViewsEFFieldsetComparator::__construct in Views Exposed Form Fieldset 7.2
Constructor.
Parameters
mixed $key: The array key used for comparison.
NULL $nullBehavior: The behavior used to compare NULL values.
File
- includes/
comparator.inc, line 32
Class
Code
public function __construct($key, $nullBehavior = NULL) {
$this->key = $key;
switch ($nullBehavior) {
case self::NULL_SORT_SKIP:
$this->nullA = 0;
$this->nullB = 0;
break;
case self::NULL_SORT_FIRST:
$this->nullA = -1;
$this->nullB = 1;
break;
case self::NULL_SORT_LAST:
$this->nullA = 1;
$this->nullB = -1;
}
}