protected function _actionVote($context)
    {
        $context->response->status = AnHttpResponse::CREATED;

        $this->getItem()->voteup(get_viewer());

        $notification = $this->_mixer->createNotification(array(
            'name' => 'voteup',
            'object' => $this->getItem(),
            'component' => $this->getItem()->component,
        ));

        $context->response->content = $this->_mixer->execute('getvoters', $context);
    }
protected function _actionVote($context)
    {
        $context->response->status = AnHttpResponse::CREATED;

        $this->getItem()->voteup(get_viewer());

        $notification = $this->_mixer->createNotification(array(
            'name' => 'voteup',
            'object' => $this->getItem(),
            'component' => $this->getItem()->component,
        ));

        $context->response->content = $this->_mixer->execute('getvoters', $context);
    }
protected function _actionVote ( $ context ) { $ context -> response -> status = AnHttpResponse :: CREATED ; $ this -> getItem ( ) -> voteup ( get_viewer ( ) ) ; $ notification = $ this -> _mixer -> createNotification ( array ( 'name' => 'voteup' , 'object' => $ this -> getItem ( ) , 'component' => $ this -> getItem ( ) -> component , ) ) ; $ context -> response -> content = $ this -> _mixer -> execute ( 'getvoters' , $ context ) ; }
Subscribe the viewer to the subscribable object.

@param AnCommandContext $context Context parameter
Subscribe the viewer to the subscribable object .