public function onAfterControllerGetgraph(AnEvent $event)
    {
        $actor = $this->getController()->actor;
        $type = $this->getController()->type;

        if ($actor->authorize('lead') && $type == 'followers') {
            $this->addCommand('AddFollowers', array('actor' => $actor));
        }
    }
public function onAfterControllerGetgraph(AnEvent $event)
    {
        $actor = $this->getController()->actor;
        $type = $this->getController()->type;

        if ($actor->authorize('lead') && $type == 'followers') {
            $this->addCommand('AddFollowers', array('actor' => $actor));
        }
    }
public function onAfterControllerGetgraph ( AnEvent $ event ) { $ actor = $ this -> getController ( ) -> actor ; $ type = $ this -> getController ( ) -> type ; if ( $ actor -> authorize ( 'lead' ) && $ type == 'followers' ) { $ this -> addCommand ( 'AddFollowers' , array ( 'actor' => $ actor ) ) ; } }
Called after controller Getgraph.

@param AnEvent $event
Called after controller Getgraph .