protected function displayManialinks()
    {
        $size = 0;
        foreach ($this->getManialinksToDisplay() as $mlData) {
            $currentSize = $size;
            $size += strlen($mlData['ml']);

            if ($currentSize != 0 && $size > $this->charLimit) {
                $this->executeMultiCall();
                $size = strlen($mlData['ml']);
            }

            $logins = array_filter($mlData['logins'], function ($value) {
                return $value != '';
            });

            if (!empty($logins)) {
                $this->factory->getConnection()->sendDisplayManialinkPage(
                    $mlData['logins'],
                    $mlData['ml'],
                    $mlData['timeout'],
                    false,
                    true
                );
            }
        }

        if ($size > 0) {
            $this->executeMultiCall();
        }

        // Reset the queues.
        $this->displayQueu = [];
        $this->individualQueu = [];
        $this->hideQueu = [];
        $this->hideIndividualQueu = [];
        $this->disconnectedLogins = [];
    }
protected function displayManialinks()
    {
        $size = 0;
        foreach ($this->getManialinksToDisplay() as $mlData) {
            $currentSize = $size;
            $size += strlen($mlData['ml']);

            if ($currentSize != 0 && $size > $this->charLimit) {
                $this->executeMultiCall();
                $size = strlen($mlData['ml']);
            }

            $logins = array_filter($mlData['logins'], function ($value) {
                return $value != '';
            });

            if (!empty($logins)) {
                $this->factory->getConnection()->sendDisplayManialinkPage(
                    $mlData['logins'],
                    $mlData['ml'],
                    $mlData['timeout'],
                    false,
                    true
                );
            }
        }

        if ($size > 0) {
            $this->executeMultiCall();
        }

        // Reset the queues.
        $this->displayQueu = [];
        $this->individualQueu = [];
        $this->hideQueu = [];
        $this->hideIndividualQueu = [];
        $this->disconnectedLogins = [];
    }
protected function displayManialinks ( ) { $ size = 0 ; foreach ( $ this -> getManialinksToDisplay ( ) as $ mlData ) { $ currentSize = $ size ; $ size += strlen ( $ mlData [ 'ml' ] ) ; if ( $ currentSize != 0 && $ size > $ this -> charLimit ) { $ this -> executeMultiCall ( ) ; $ size = strlen ( $ mlData [ 'ml' ] ) ; } $ logins = array_filter ( $ mlData [ 'logins' ] , function ( $ value ) { return $ value != '' ; } ) ; if ( ! empty ( $ logins ) ) { $ this -> factory -> getConnection ( ) -> sendDisplayManialinkPage ( $ mlData [ 'logins' ] , $ mlData [ 'ml' ] , $ mlData [ 'timeout' ] , false , true ) ; } } if ( $ size > 0 ) { $ this -> executeMultiCall ( ) ; } // Reset the queues. $ this -> displayQueu = [ ] ; $ this -> individualQueu = [ ] ; $ this -> hideQueu = [ ] ; $ this -> hideIndividualQueu = [ ] ; $ this -> disconnectedLogins = [ ] ; }
Display & hide all manialinks.
@throws \Maniaplanet\DedicatedServer\InvalidArgumentException
Display & hide all manialinks .