Whups_Query::textOperators PHP Method

textOperators() public static method

Returns human readable descriptions of all operator types.
public static textOperators ( ) : array
return array Hash with operator types and descriptions.
    public static function textOperators()
    {
        return array(Whups_Query::OPERATOR_EQUAL => _("Exact Match"), Whups_Query::OPERATOR_CI_SUBSTRING => _("Case Insensitive Substring"), Whups_Query::OPERATOR_CS_SUBSTRING => _("Case Sensitive Substring"), Whups_Query::OPERATOR_WORD => _("Match Word"), Whups_Query::OPERATOR_PATTERN => _("Match Pattern"));
    }

Usage Example

Ejemplo n.º 1
0
 public function __construct($vars)
 {
     parent::__construct($vars, $vars->get('edit') ? _("Edit Text Criterion") : _("Add Text Criterion"), 'Whups_Form_Query_TextCriterion');
     $this->addHidden('', 'edit', 'boolean', false);
     $this->addVariable(_("Text"), 'text', 'text', true);
     $this->addVariable(_("Match Operator"), 'operator', 'enum', true, false, null, array(Whups_Query::textOperators()));
     $this->addVariable(_("Search Summary"), 'summary', 'boolean', false);
     $this->addVariable(_("Search Comments"), 'comments', 'boolean', false);
 }
All Usage Examples Of Whups_Query::textOperators