src/Chamilo/PageBundle/Entity/User.php 1 location
|
@@ 2155-2163 (lines=9) @@
|
| 2152 |
|
return null !== $user && $this->getId() === $user->getId(); |
| 2153 |
|
} |
| 2154 |
|
|
| 2155 |
|
public function removeRole($role) |
| 2156 |
|
{ |
| 2157 |
|
if (false !== $key = array_search(strtoupper($role), $this->roles, true)) { |
| 2158 |
|
unset($this->roles[$key]); |
| 2159 |
|
$this->roles = array_values($this->roles); |
| 2160 |
|
} |
| 2161 |
|
|
| 2162 |
|
return $this; |
| 2163 |
|
} |
| 2164 |
|
|
| 2165 |
|
public function setUsername($username) |
| 2166 |
|
{ |
src/Chamilo/UserBundle/Entity/User.php 1 location
|
@@ 2229-2237 (lines=9) @@
|
| 2226 |
|
return null !== $user && $this->getId() === $user->getId(); |
| 2227 |
|
} |
| 2228 |
|
|
| 2229 |
|
public function removeRole($role) |
| 2230 |
|
{ |
| 2231 |
|
if (false !== $key = array_search(strtoupper($role), $this->roles, true)) { |
| 2232 |
|
unset($this->roles[$key]); |
| 2233 |
|
$this->roles = array_values($this->roles); |
| 2234 |
|
} |
| 2235 |
|
|
| 2236 |
|
return $this; |
| 2237 |
|
} |
| 2238 |
|
|
| 2239 |
|
public function setUsername($username) |
| 2240 |
|
{ |