public function group($scopes, $global = true)
    {
        $groups = array(
          'posts' => array(),
          'actors' => array(),
          'other' => array()
        );

        $current = $this->_template->getView()->current_scope;

        foreach ($scopes as $scope) {
          if ($scope->type == 'post') {
              $groups['posts'][] = $scope;
          } elseif($scope->type == 'actor' && $global) {
              $groups['actors'][] = $scope;
          }
        }

        return $groups;
    }
public function group($scopes, $global = true)
    {
        $groups = array(
          'posts' => array(),
          'actors' => array(),
          'other' => array()
        );

        $current = $this->_template->getView()->current_scope;

        foreach ($scopes as $scope) {
          if ($scope->type == 'post') {
              $groups['posts'][] = $scope;
          } elseif($scope->type == 'actor' && $global) {
              $groups['actors'][] = $scope;
          }
        }

        return $groups;
    }
public function group ( $ scopes , $ global = true ) { $ groups = array ( 'posts' => array ( ) , 'actors' => array ( ) , 'other' => array ( ) ) ; $ current = $ this -> _template -> getView ( ) -> current_scope ; foreach ( $ scopes as $ scope ) { if ( $ scope -> type == 'post' ) { $ groups [ 'posts' ] [ ] = $ scope ; } elseif ( $ scope -> type == 'actor' && $ global ) { $ groups [ 'actors' ] [ ] = $ scope ; } } return $ groups ; }
Groups the scopes into posts, actors and others.

@param array $scopes

@return array
Groups the scopes into posts actors and others .