public function listCommand(int $sysLanguageUid, int $pid = 1, int $recursion = 99, string $exclude = '') {
    $this->beforeCommand();

    $table = new ConsoleTable();
    $table->setHeaders(['UID', 'Title', 'Page ID', 'Status']);

    foreach ($this->getPageUids($pid, $recursion, $exclude) as $pageUid) {
      $languageOverlay = LanguageOverlay::where([['pid', '=', $pageUid], ['sys_language_uid', '=', $sysLanguageUid]])->first();

      if ($languageOverlay) {
        $uid    = $languageOverlay->uid;
        $title  = StringUtility::asciify($languageOverlay->title);
        $status = $languageOverlay->hidden ? 'hidden' : 'visible';

        $table->addRow([$uid, $title, $pageUid, $status]);
      }
    }

    $table->display();
  }
public function listCommand(int $sysLanguageUid, int $pid = 1, int $recursion = 99, string $exclude = '') {
    $this->beforeCommand();

    $table = new ConsoleTable();
    $table->setHeaders(['UID', 'Title', 'Page ID', 'Status']);

    foreach ($this->getPageUids($pid, $recursion, $exclude) as $pageUid) {
      $languageOverlay = LanguageOverlay::where([['pid', '=', $pageUid], ['sys_language_uid', '=', $sysLanguageUid]])->first();

      if ($languageOverlay) {
        $uid    = $languageOverlay->uid;
        $title  = StringUtility::asciify($languageOverlay->title);
        $status = $languageOverlay->hidden ? 'hidden' : 'visible';

        $table->addRow([$uid, $title, $pageUid, $status]);
      }
    }

    $table->display();
  }
public function listCommand ( int $ sysLanguageUid , int $ pid = 1 , int $ recursion = 99 , string $ exclude = '' ) { $ this -> beforeCommand ( ) ; $ table = new ConsoleTable ( ) ; $ table -> setHeaders ( [ 'UID' , 'Title' , 'Page ID' , 'Status' ] ) ; foreach ( $ this -> getPageUids ( $ pid , $ recursion , $ exclude ) as $ pageUid ) { $ languageOverlay = LanguageOverlay :: where ( [ [ 'pid' , '=' , $ pageUid ] , [ 'sys_language_uid' , '=' , $ sysLanguageUid ] ] ) -> first ( ) ; if ( $ languageOverlay ) { $ uid = $ languageOverlay -> uid ; $ title = StringUtility :: asciify ( $ languageOverlay -> title ) ; $ status = $ languageOverlay -> hidden ? 'hidden' : 'visible' ; $ table -> addRow ( [ $ uid , $ title , $ pageUid , $ status ] ) ; } } $ table -> display ( ) ; }
Lists page language overlays.

@param int $sysLanguageUid The system language UID of the page language overlays to list
@param int $pid The optional PID of the page to search from, defaults to `1`
@param int $recursion The optional recursion, defaults to `99`
@param string $exclude The optional UIDs of pages to exclude from as string, seperated by `,`, empty by default
Lists page language overlays .