protected function _configureBar()
    {
        $filters = array('following');

        if ($this->getController()->getRepository()->hasBehavior('administrable')) {
            $filters[] = 'administering';
        }

        $this->setActor($this->getController()->actor);

        foreach ($filters as $filter) {
            $label = array(
                strtoupper('COM-'.$this->getIdentifier()->package.'-NAV-FILTER-'.$filter),
                strtoupper('COM-ACTORS-NAV-FILTER-'.$filter),
            );

            $this->addNavigation('navbar-'.$filter, translate($label),
                    array(
                        'option' => $this->getController()->option,
                        'view' => $this->getController()->view,
                        'oid' => $this->getController()->actor->id, 'filter' => $filter,
                    ),
                    $this->getController()->filter == $filter);
        }

        $filter = pick($this->getController()->filter, 'following');

        $title = array(
            strtoupper('COM-'.$this->getIdentifier()->package.'-NAV-TITLE-'.$filter),
            strtoupper('COM-ACTORS-NAV-TITLE-'.$filter),
        );

        $this->setTitle(sprintf(translate($title), $this->getController()->actor->name));
    }
protected function _configureBar()
    {
        $filters = array('following');

        if ($this->getController()->getRepository()->hasBehavior('administrable')) {
            $filters[] = 'administering';
        }

        $this->setActor($this->getController()->actor);

        foreach ($filters as $filter) {
            $label = array(
                strtoupper('COM-'.$this->getIdentifier()->package.'-NAV-FILTER-'.$filter),
                strtoupper('COM-ACTORS-NAV-FILTER-'.$filter),
            );

            $this->addNavigation('navbar-'.$filter, translate($label),
                    array(
                        'option' => $this->getController()->option,
                        'view' => $this->getController()->view,
                        'oid' => $this->getController()->actor->id, 'filter' => $filter,
                    ),
                    $this->getController()->filter == $filter);
        }

        $filter = pick($this->getController()->filter, 'following');

        $title = array(
            strtoupper('COM-'.$this->getIdentifier()->package.'-NAV-TITLE-'.$filter),
            strtoupper('COM-ACTORS-NAV-TITLE-'.$filter),
        );

        $this->setTitle(sprintf(translate($title), $this->getController()->actor->name));
    }
protected function _configureBar ( ) { $ filters = array ( 'following' ) ; if ( $ this -> getController ( ) -> getRepository ( ) -> hasBehavior ( 'administrable' ) ) { $ filters [ ] = 'administering' ; } $ this -> setActor ( $ this -> getController ( ) -> actor ) ; foreach ( $ filters as $ filter ) { $ label = array ( strtoupper ( 'COM-' . $ this -> getIdentifier ( ) -> package . '-NAV-FILTER-' . $ filter ) , strtoupper ( 'COM-ACTORS-NAV-FILTER-' . $ filter ) , ) ; $ this -> addNavigation ( 'navbar-' . $ filter , translate ( $ label ) , array ( 'option' => $ this -> getController ( ) -> option , 'view' => $ this -> getController ( ) -> view , 'oid' => $ this -> getController ( ) -> actor -> id , 'filter' => $ filter , ) , $ this -> getController ( ) -> filter == $ filter ) ; } $ filter = pick ( $ this -> getController ( ) -> filter , 'following' ) ; $ title = array ( strtoupper ( 'COM-' . $ this -> getIdentifier ( ) -> package . '-NAV-TITLE-' . $ filter ) , strtoupper ( 'COM-ACTORS-NAV-TITLE-' . $ filter ) , ) ; $ this -> setTitle ( sprintf ( translate ( $ title ) , $ this -> getController ( ) -> actor -> name ) ) ; }
Configure actorbar for when a list of actor's related to another is showing.
Configure actorbar for when a list of actor s related to another is showing .