11
11
12
12
namespace MODX \Revolution \Processors \Security \User \Setting ;
13
13
14
- use MODX \Revolution \Processors \Model \GetProcessor ;
15
14
use MODX \Revolution \modUserSetting ;
16
15
17
16
/**
18
17
* Gets a list of user settings given an array of keys to search for
19
- * @param integer $user The user to grab from
20
- * @param integer $start (optional) The record to start at. Defaults to 0.
21
- * @param integer $limit (optional) The number of records to limit to. Defaults to 10.
22
- * @param string $sort (optional) The column to sort by. Defaults to key.
23
- * @param string $dir (optional) The direction of the sort. Defaults to ASC.
18
+ *
19
+ * @property int $user The user to filter by
20
+ * @property string $keys A json-formatted list of settings keys to additionally filter by
24
21
* @package MODX\Revolution\Processors\Security\User\Setting
25
22
*/
26
23
class GetListIn extends \MODX \Revolution \Processors \System \Settings \GetList
@@ -45,20 +42,11 @@ public function prepareCriteria()
45
42
{
46
43
$ criteria = [];
47
44
$ criteria [] = ['user ' => (int )$ this ->getProperty ('user ' )];
48
- // $msg = "\r\n prepareCriteria, \$properties:\r\n" . print_r($this->getProperties(), true);
49
- // $this->modx->log(\modX::LOG_LEVEL_ERROR, $msg, '', __CLASS__);
50
45
51
46
if ($ keys = $ this ->getProperty ('keys ' , '' )) {
52
47
$ keys = json_decode ($ keys );
53
- // $this->modx->log(
54
- // \modX::LOG_LEVEL_ERROR,
55
- // "\r\t prepareCriteria:
56
- // \t\t\$var1: {none}
57
- // \t\t\$keys: " . print_r($keys, true)
58
- // );
59
48
$ criteria [] = ['key:IN ' => $ keys ];
60
49
}
61
50
return $ criteria ;
62
51
}
63
-
64
52
}
0 commit comments