public function getStaticTokens()
    {
        $tokens = [];
        $sites = [];
        if (!$this->getValid()) {
            return $sites;
        }
        foreach ($this->xml->children() as $child) {
            if ($child->getName() == "token") {
                $token = $this->parseToken($child);
                if ($token !== false) {
                    $tokens[$token['token']] = $token;
                }
            }
        }
        return $tokens;
    }
public function getStaticTokens()
    {
        $tokens = [];
        $sites = [];
        if (!$this->getValid()) {
            return $sites;
        }
        foreach ($this->xml->children() as $child) {
            if ($child->getName() == "token") {
                $token = $this->parseToken($child);
                if ($token !== false) {
                    $tokens[$token['token']] = $token;
                }
            }
        }
        return $tokens;
    }
public function getStaticTokens ( ) { $ tokens = [ ] ; $ sites = [ ] ; if ( ! $ this -> getValid ( ) ) { return $ sites ; } foreach ( $ this -> xml -> children ( ) as $ child ) { if ( $ child -> getName ( ) == "token" ) { $ token = $ this -> parseToken ( $ child ) ; if ( $ token !== false ) { $ tokens [ $ token [ 'token' ] ] = $ token ; } } } return $ tokens ; }
Get an array of static tokens from the configuration file.

@return array
Each tokens entry is keyed with its token value. Each token array contains:
- token
- user
- roles
Get an array of static tokens from the configuration file .