function finder::matches in Finder 7.2
Finder matches.
Get preconfigured condition match methods.
1 call to finder::matches()
- finder::match_args in includes/
finder.inc - Get data about finder match methods.
File
- includes/
finder.inc, line 1140 - finder.inc
Class
- finder
- An object to contain all of the data to generate a finder, plus the member functions to build the finder, and render the output.
Code
function matches() {
$matches = array(
'c' => array(
'name' => t('Contains'),
'description' => t('!matches <em>contain</em> the !keywords.'),
'operator' => 'LIKE',
'value_prefix' => '%',
'value_suffix' => '%',
),
'cw' => array(
'name' => t('Contains word'),
'description' => t('!matches <em>contain</em> the !keywords as whole words.'),
'operator' => 'REGEXP',
'value_prefix' => '[[:<:]]',
'value_suffix' => '[[:>:]]',
),
'e' => array(
'name' => t('Equals'),
'description' => t('!matches must match the !keywords <em>exactly</em>.'),
'operator' => '=',
'value_prefix' => '',
'value_suffix' => '',
),
'sw' => array(
'name' => t('Starts with'),
'description' => t('!matches must <em>start with</em> the !keywords.'),
'operator' => 'LIKE',
'value_prefix' => '',
'value_suffix' => '%',
),
'ew' => array(
'name' => t('Ends with'),
'description' => t('!matches must <em>end with</em> the !keywords.'),
'operator' => 'LIKE',
'value_prefix' => '%',
'value_suffix' => '',
),
'lt' => array(
'name' => t('Less than'),
'description' => t('!matches must be <em>less than</em> the !keywords.'),
'operator' => '<',
'value_prefix' => '',
'value_suffix' => '',
),
'lte' => array(
'name' => t('Less than or equals'),
'description' => t('!matches must be <em>less than or equal to</em> the !keywords.'),
'operator' => '<=',
'value_prefix' => '',
'value_suffix' => '',
),
'gt' => array(
'name' => t('Greater than'),
'description' => t('!matches must be <em>greater than</em> the !keywords.'),
'operator' => '>',
'value_prefix' => '',
'value_suffix' => '',
),
'gte' => array(
'name' => t('Greater than or equals'),
'description' => t('!matches must be <em>greater than or equal to</em> the !keywords.'),
'operator' => '>=',
'value_prefix' => '',
'value_suffix' => '',
),
'nc' => array(
'name' => t("Doesn't contain"),
'description' => t("!matches <em>don't contain</em> the !keywords."),
'operator' => 'NOT LIKE',
'value_prefix' => '%',
'value_suffix' => '%',
),
'ncw' => array(
'name' => t("Doesn't contain word"),
'description' => t("!matches <em>don't contain</em> the !keywords as whole words."),
'operator' => 'NOT REGEXP',
'value_prefix' => '[[:<:]]',
'value_suffix' => '[[:>:]]',
),
'ne' => array(
'name' => t('Not equals'),
'description' => t('!matches must <em>not</em> match the !keywords.'),
'operator' => '<>',
'value_prefix' => '',
'value_suffix' => '',
),
);
return $matches;
}