Skip to content

Commit e3a2d5a

Browse files
committed
Update GetListIn.php
Code QC
1 parent 478fffb commit e3a2d5a

File tree

1 file changed

+3
-15
lines changed
  • core/src/Revolution/Processors/Security/User/Setting

1 file changed

+3
-15
lines changed

Diff for: core/src/Revolution/Processors/Security/User/Setting/GetListIn.php

+3-15
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@
1111

1212
namespace MODX\Revolution\Processors\Security\User\Setting;
1313

14-
use MODX\Revolution\Processors\Model\GetProcessor;
1514
use MODX\Revolution\modUserSetting;
1615

1716
/**
1817
* 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
2421
* @package MODX\Revolution\Processors\Security\User\Setting
2522
*/
2623
class GetListIn extends \MODX\Revolution\Processors\System\Settings\GetList
@@ -45,20 +42,11 @@ public function prepareCriteria()
4542
{
4643
$criteria = [];
4744
$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__);
5045

5146
if ($keys = $this->getProperty('keys', '')) {
5247
$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-
// );
5948
$criteria[] = ['key:IN' => $keys];
6049
}
6150
return $criteria;
6251
}
63-
6452
}

0 commit comments

Comments
 (0)