Swat/SwatNavBar.php
public function getEntryByPosition($position)
    {
        if ($position < 0) {
            $position = count($this) + $position - 1;
        }

        if (isset($this->entries[$position])) {
            return $this->entries[$position];
        } else {
            throw new SwatException(
                sprintf(
                    'Navbar does not contain an entry at position %s.',
                    $position
                )
            );
        }
    }
public function getEntryByPosition($position)
    {
        if ($position < 0) {
            $position = count($this) + $position - 1;
        }

        if (isset($this->entries[$position])) {
            return $this->entries[$position];
        } else {
            throw new SwatException(
                sprintf(
                    'Navbar does not contain an entry at position %s.',
                    $position
                )
            );
        }
    }
public function getEntryByPosition ( $ position ) { if ( $ position < 0 ) { $ position = count ( $ this ) + $ position - 1 ; } if ( isset ( $ this -> entries [ $ position ] ) ) { return $ this -> entries [ $ position ] ; } else { throw new SwatException ( sprintf ( 'Navbar does not contain an entry at position %s.' , $ position ) ) ; } }
Gets an entry from this navigation bar

If the entry is not in this navigation bar, an exception is thrown.

@param integer $position zero-based ordinal position of the entry to
fetch.  If position is negative, the entry
position is counted from the end of the nav
bar (-1 will return one from the end).  Use
getLastEntry() to get the last entry of the
nav bar.

@return SwatNavBarEntry the entry.

@throws SwatException
Gets an entry from this navigation bar