|
@@ -122,8 +122,17 @@ abstract class LuDataAccess {
|
122
|
122
|
return array();
|
123
|
123
|
}
|
124
|
124
|
|
125
|
|
- public static function getAll($page = 0, $perPage = PHP_INT_MAX)
|
|
125
|
+ /**
|
|
126
|
+ * @param $query
|
|
127
|
+ * @return array
|
|
128
|
+ */
|
|
129
|
+ protected static function getQueryPredicate($query)
|
|
130
|
+ {
|
|
131
|
+ return array();
|
|
132
|
+ }
|
|
133
|
+
|
|
134
|
+ public static function getAll($page = 0, $perPage = PHP_INT_MAX, $query = "")
|
126
|
135
|
{
|
127
|
|
- return self::getMultiple(array(), static::getOrderBy(), $page, $perPage);
|
|
136
|
+ return self::getMultiple(static::getQueryPredicate($query), static::getOrderBy(), $page, $perPage);
|
128
|
137
|
}
|
129
|
138
|
}
|