model/entity/activity.php
protected function _actorConfig(KObjectConfig $config)
    {
        $objectName = $this->getAuthor()->getName();
        $translate  = false;

        if (!$this->created_by)
        {
            $objectName = 'Guest user';
            $translate  = true;
        }
        elseif (!$this->_findActivityActor())
        {
            $objectName = 'Deleted user';
            $translate  = true;
        }

        $config->append(array(
            'type' => array('objectName' => 'user', 'object' => true),
            'id'         => $this->created_by,
            'url'        => 'option=com_users&task=user.edit&id=' . $this->created_by,
            'objectName' => $objectName,
            'translate'  => $translate,
            'find'       => 'actor'
        ));
    }
protected function _actorConfig(KObjectConfig $config)
    {
        $objectName = $this->getAuthor()->getName();
        $translate  = false;

        if (!$this->created_by)
        {
            $objectName = 'Guest user';
            $translate  = true;
        }
        elseif (!$this->_findActivityActor())
        {
            $objectName = 'Deleted user';
            $translate  = true;
        }

        $config->append(array(
            'type' => array('objectName' => 'user', 'object' => true),
            'id'         => $this->created_by,
            'url'        => 'option=com_users&task=user.edit&id=' . $this->created_by,
            'objectName' => $objectName,
            'translate'  => $translate,
            'find'       => 'actor'
        ));
    }
protected function _actorConfig ( KObjectConfig $ config ) { $ objectName = $ this -> getAuthor ( ) -> getName ( ) ; $ translate = false ; if ( ! $ this -> created_by ) { $ objectName = 'Guest user' ; $ translate = true ; } elseif ( ! $ this -> _findActivityActor ( ) ) { $ objectName = 'Deleted user' ; $ translate = true ; } $ config -> append ( array ( 'type' => array ( 'objectName' => 'user' , 'object' => true ) , 'id' => $ this -> created_by , 'url' => 'option=com_users&task=user.edit&id=' . $ this -> created_by , 'objectName' => $ objectName , 'translate' => $ translate , 'find' => 'actor' ) ) ; }
Set the actor config.

@param KObjectConfig $config The actor config.
@return KObjectConfig
Set the actor config .