From 2f59a6c59b9dc4f1ee220a0897b631a7ca2e8d86 Mon Sep 17 00:00:00 2001 From: Tadas Giniotis Date: Thu, 13 Nov 2014 22:04:29 +0200 Subject: [PATCH] filterAny method comments fixed to reflect actual operation --- model/DataList.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/model/DataList.php b/model/DataList.php index e55c0a2f3..0f7b387af 100644 --- a/model/DataList.php +++ b/model/DataList.php @@ -355,21 +355,21 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab } /** - * Return a copy of this list which does not contain items matching any of these charactaristics. + * Return a copy of this list which contains items matching any of these charactaristics. * - * @example // filter bob from list + * @example // only bob in the list * $list = $list->filterAny('Name', 'bob'); * // SQL: WHERE "Name" = 'bob' - * @example // filter aziz and bob from list + * @example // azis or bob in the list * $list = $list->filterAny('Name', array('aziz', 'bob'); * // SQL: WHERE ("Name" IN ('aziz','bob')) - * @example // filter by bob or anybody aged 21 + * @example // bob or anyone aged 21 in the list * $list = $list->filterAny(array('Name'=>'bob, 'Age'=>21)); * // SQL: WHERE ("Name" = 'bob' OR "Age" = '21') - * @example // filter by bob or anybody aged 21 or 43 + * @example // bob or anyone aged 21 or 43 in the list * $list = $list->filterAny(array('Name'=>'bob, 'Age'=>array(21, 43))); * // SQL: WHERE ("Name" = 'bob' OR ("Age" IN ('21', '43')) - * @example // bob age 21 or 43, phil age 21 or 43 would be excluded + * @example // all bobs, phils or anyone aged 21 or 43 in the list * $list = $list->filterAny(array('Name'=>array('bob','phil'), 'Age'=>array(21, 43))); * // SQL: WHERE (("Name" IN ('bob', 'phil')) OR ("Age" IN ('21', '43')) *