| @@ 1296-1308 (lines=13) @@ | ||
| 1293 | * |
|
| 1294 | * @return $this |
|
| 1295 | */ |
|
| 1296 | public function setCurrentUrl(AccessUrl $url) |
|
| 1297 | { |
|
| 1298 | $urlList = $this->getUrls(); |
|
| 1299 | /** @var AccessUrlRelCourse $item */ |
|
| 1300 | foreach ($urlList as $item) { |
|
| 1301 | if ($item->getUrl()->getId() == $url->getId()) { |
|
| 1302 | $this->currentUrl = $url; |
|
| 1303 | break; |
|
| 1304 | } |
|
| 1305 | } |
|
| 1306 | ||
| 1307 | return $this; |
|
| 1308 | } |
|
| 1309 | ||
| 1310 | /** |
|
| 1311 | * @return AccessUrl |
|
| @@ 2304-2316 (lines=13) @@ | ||
| 2301 | * |
|
| 2302 | * @return $this |
|
| 2303 | */ |
|
| 2304 | public function setCurrentUrl(AccessUrl $url) |
|
| 2305 | { |
|
| 2306 | $urlList = $this->getPortals(); |
|
| 2307 | /** @var AccessUrlRelUser $item */ |
|
| 2308 | foreach ($urlList as $item) { |
|
| 2309 | if ($item->getPortal()->getId() == $url->getId()) { |
|
| 2310 | $this->currentUrl = $url; |
|
| 2311 | break; |
|
| 2312 | } |
|
| 2313 | } |
|
| 2314 | ||
| 2315 | return $this; |
|
| 2316 | } |
|
| 2317 | ||
| 2318 | /** |
|
| 2319 | * @return AccessUrl |
|
| @@ 1176-1188 (lines=13) @@ | ||
| 1173 | * |
|
| 1174 | * @return $this |
|
| 1175 | */ |
|
| 1176 | public function setCurrentUrl(AccessUrl $url) |
|
| 1177 | { |
|
| 1178 | $urlList = $this->getUrls(); |
|
| 1179 | /** @var AccessUrlRelCourse $item */ |
|
| 1180 | foreach ($urlList as $item) { |
|
| 1181 | if ($item->getUrl()->getId() == $url->getId()) { |
|
| 1182 | $this->currentUrl = $url; |
|
| 1183 | break; |
|
| 1184 | } |
|
| 1185 | } |
|
| 1186 | ||
| 1187 | return $this; |
|
| 1188 | } |
|
| 1189 | ||
| 1190 | /** |
|
| 1191 | * @return AccessUrl |
|