public function voters($entity, $config = array())
    {
        $viewer = $this->getService('com:people.viewer');

        $config = array_merge(array(
               'avatars' => false,
               'viewer' => $viewer,
        ), $config);

        if (!$config['avatars']) {
            return $this->_render('voters', array('entity' => $entity, 'viewer' => $viewer));
        } else {
            return $this->_render('voters_avatars', array('entity' => $entity, 'viewer' => $viewer));
        }
    }
public function voters($entity, $config = array())
    {
        $viewer = $this->getService('com:people.viewer');

        $config = array_merge(array(
               'avatars' => false,
               'viewer' => $viewer,
        ), $config);

        if (!$config['avatars']) {
            return $this->_render('voters', array('entity' => $entity, 'viewer' => $viewer));
        } else {
            return $this->_render('voters_avatars', array('entity' => $entity, 'viewer' => $viewer));
        }
    }
public function voters ( $ entity , $ config = array ( ) ) { $ viewer = $ this -> getService ( 'com:people.viewer' ) ; $ config = array_merge ( array ( 'avatars' => false , 'viewer' => $ viewer , ) , $ config ) ; if ( ! $ config [ 'avatars' ] ) { return $ this -> _render ( 'voters' , array ( 'entity' => $ entity , 'viewer' => $ viewer ) ) ; } else { return $ this -> _render ( 'voters_avatars' , array ( 'entity' => $ entity , 'viewer' => $ viewer ) ) ; } }
Renders a list of voters for an entity.

@param AnDomainEntitysetDefault $entity
@param array                    $config

@return string
Renders a list of voters for an entity .