Swat/SwatNavBar.php
public function popEntries($number)
    {
        if (count($this) < $number) {
            $count = count($this);

            throw new SwatException(
                printf(
                    'Unable to pop %s entries. NavBar ' .
                        'only contains %s entries.',
                    $number,
                    $count
                )
            );
        } else {
            return array_splice($this->entries, -$number);
        }
    }
public function popEntries($number)
    {
        if (count($this) < $number) {
            $count = count($this);

            throw new SwatException(
                printf(
                    'Unable to pop %s entries. NavBar ' .
                        'only contains %s entries.',
                    $number,
                    $count
                )
            );
        } else {
            return array_splice($this->entries, -$number);
        }
    }
public function popEntries ( $ number ) { if ( count ( $ this ) < $ number ) { $ count = count ( $ this ) ; throw new SwatException ( printf ( 'Unable to pop %s entries. NavBar ' . 'only contains %s entries.' , $ number , $ count ) ) ; } else { return array_splice ( $ this -> entries , - $ number ) ; } }
Pops one or more entries off the end of this navigational bar

If more entries are to be popped than currently exist, an exception is
thrown.

@param $number integer number of entries to pop off this navigational
bar.

@return array an array of SwatNavBarEntry objects that were popped off
the navagational bar.

@throws SwatException
Pops one or more entries off the end of this navigational bar