| @@ 564-574 (lines=11) @@ | ||
| 561 | /** |
|
| 562 | * @return ICommand[] |
|
| 563 | */ |
|
| 564 | protected function getGlobalHiddenCommands() { |
|
| 565 | $commands = []; |
|
| 566 | ||
| 567 | foreach ($this->getCommands() as $command) { |
|
| 568 | if ($command->isGlobal() && $command->isHidden()) { |
|
| 569 | $commands[] = $command; |
|
| 570 | } |
|
| 571 | } |
|
| 572 | ||
| 573 | return $commands; |
|
| 574 | } |
|
| 575 | ||
| 576 | /** |
|
| 577 | * @return ICommand[] |
|
| @@ 579-589 (lines=11) @@ | ||
| 576 | /** |
|
| 577 | * @return ICommand[] |
|
| 578 | */ |
|
| 579 | protected function getGlobalNotHiddenCommands() { |
|
| 580 | $commands = []; |
|
| 581 | ||
| 582 | foreach ($this->getCommands() as $command) { |
|
| 583 | if ($command->isGlobal() && ! $command->isHidden()) { |
|
| 584 | $commands[] = $command; |
|
| 585 | } |
|
| 586 | } |
|
| 587 | ||
| 588 | return $commands; |
|
| 589 | } |
|
| 590 | ||
| 591 | /** |
|
| 592 | * @return ICommand[] |
|
| @@ 594-604 (lines=11) @@ | ||
| 591 | /** |
|
| 592 | * @return ICommand[] |
|
| 593 | */ |
|
| 594 | protected function getNotGlobalCommands() { |
|
| 595 | $commands = []; |
|
| 596 | ||
| 597 | foreach ($this->getCommands() as $command) { |
|
| 598 | if ( ! $command->isGlobal()) { |
|
| 599 | $commands[] = $command; |
|
| 600 | } |
|
| 601 | } |
|
| 602 | ||
| 603 | return $commands; |
|
| 604 | } |
|
| 605 | } |
|
| 606 | ||