}
/**
- * @todo add documentation
+ * Fetches a list of users.
+ *
+ * @param mixed $loopFunction
+ * @return array<integer>
*/
protected function fetchUsers($loopFunction = null) {
// select users
* Executes user-related actions.
*
* @author Alexander Ebert
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage data.user
$sql = "SELECT userID, username
FROM wcf".WCF_N."_user
".$conditionBuilder;
- $statement = WCF::getDB()->prepareStatement($sql, 10); /* TODO: add limit parameter */
+ $statement = WCF::getDB()->prepareStatement($sql, 10);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$list[] = array(
}
// check owner state
- // TODO: Shouldn't this be: EDITABILITY_OWNER?
- if ($this->editable & self::VISIBILITY_OWNER) {
+ if ($this->editable & self::EDITABILITY_OWNER) {
if ($this->user === null || $this->user->userID == WCF::getUser()->userID) {
return true;
}