src/Factory/IndexFilter.php
public function addOption($sLabel, $mValue = null, $bIsSelected = false, $bIsQuery = null)
    {
        if ($sLabel instanceof Option) {
            $this->aOptions[] = $sLabel;
        } else {
            $this->aOptions[] = Factory::factory('IndexFilterOption', 'nails/module-admin')
                ->setLabel($sLabel)
                ->setValue($mValue)
                ->setIsSelected($bIsSelected)
                ->setIsQuery($bIsQuery);
        }

        return $this;
    }
public function addOption($sLabel, $mValue = null, $bIsSelected = false, $bIsQuery = null)
    {
        if ($sLabel instanceof Option) {
            $this->aOptions[] = $sLabel;
        } else {
            $this->aOptions[] = Factory::factory('IndexFilterOption', 'nails/module-admin')
                ->setLabel($sLabel)
                ->setValue($mValue)
                ->setIsSelected($bIsSelected)
                ->setIsQuery($bIsQuery);
        }

        return $this;
    }
Adds a new option

@param string|Option $sLabel      The label to give the option, or an IndexFilterOption object
@param mixed         $mValue      The value to give the option
@param bool          $bIsSelected Whether the item is selected
@param bool          $bIsQuery    If true, treat the value as the entire query

@return $this