public function getActor(AnCommandContext $context)
    {
        $data = $context->data;

        if ($data->actor) {
            $ret = $this->getService('repos:actors.actor')->fetch($data->actor);
        } else {
            $ret = get_viewer();
        }

        $this->actor = $ret;

        return $this->actor;
    }
public function getActor(AnCommandContext $context)
    {
        $data = $context->data;

        if ($data->actor) {
            $ret = $this->getService('repos:actors.actor')->fetch($data->actor);
        } else {
            $ret = get_viewer();
        }

        $this->actor = $ret;

        return $this->actor;
    }
public function getActor ( AnCommandContext $ context ) { $ data = $ context -> data ; if ( $ data -> actor ) { $ ret = $ this -> getService ( 'repos:actors.actor' ) -> fetch ( $ data -> actor ) ; } else { $ ret = get_viewer ( ) ; } $ this -> actor = $ ret ; return $ this -> actor ; }
Set the subejct before perform graph actions.

@param AnCommandContext $context Context parameter

@return ComActorsDomainEntityActor object
Set the subejct before perform graph actions .