src/Administration.php
private function addRoleForUserByColumnValue($columnName, $columnValue, $role) {
		$role = (int) $role;

		return $this->modifyRolesForUserByColumnValue(
			$columnName,
			$columnValue,
			function ($oldRolesBitmask) use ($role) {
				return $oldRolesBitmask | $role;
			}
		);
	}
private function addRoleForUserByColumnValue($columnName, $columnValue, $role) {
		$role = (int) $role;

		return $this->modifyRolesForUserByColumnValue(
			$columnName,
			$columnValue,
			function ($oldRolesBitmask) use ($role) {
				return $oldRolesBitmask | $role;
			}
		);
	}
private function addRoleForUserByColumnValue ( $ columnName , $ columnValue , $ role ) { $ role = ( int ) $ role ; return $ this -> modifyRolesForUserByColumnValue ( $ columnName , $ columnValue , function ( $ oldRolesBitmask ) use ( $ role ) { return $ oldRolesBitmask | $ role ; } ) ; }
Assigns the specified role to the user where the column with the specified name has the given value

You must never pass untrusted input to the parameter that takes the column name

@param string $columnName the name of the column to filter by
@param mixed $columnValue the value to look for in the selected column
@param int $role the role as one of the constants from the {@see Role} class
@return bool whether any user with the given column constraints has been found

@see Role
Assigns the specified role to the user where the column with the specified name has the given value