view/activities/json.php
public function setRenderer($renderer)
    {
        if(!$renderer instanceof ComActivitiesActivityRendererInterface)
        {
            if(is_string($renderer) && strpos($renderer, '.') === false )
            {
                $identifier         = $this->getIdentifier()->toArray();
                $identifier['path'] = array('template', 'helper');
                $identifier['name'] = $renderer;

                $identifier = $this->getIdentifier($identifier);
            }
            else $identifier = $this->getIdentifier($renderer);

            $renderer = $identifier;
        }

        $this->_renderer = $renderer;

        return $this;
    }
public function setRenderer($renderer)
    {
        if(!$renderer instanceof ComActivitiesActivityRendererInterface)
        {
            if(is_string($renderer) && strpos($renderer, '.') === false )
            {
                $identifier         = $this->getIdentifier()->toArray();
                $identifier['path'] = array('template', 'helper');
                $identifier['name'] = $renderer;

                $identifier = $this->getIdentifier($identifier);
            }
            else $identifier = $this->getIdentifier($renderer);

            $renderer = $identifier;
        }

        $this->_renderer = $renderer;

        return $this;
    }
public function setRenderer ( $ renderer ) { if ( ! $ renderer instanceof ComActivitiesActivityRendererInterface ) { if ( is_string ( $ renderer ) && strpos ( $ renderer , '.' ) === false ) { $ identifier = $ this -> getIdentifier ( ) -> toArray ( ) ; $ identifier [ 'path' ] = array ( 'template' , 'helper' ) ; $ identifier [ 'name' ] = $ renderer ; $ identifier = $ this -> getIdentifier ( $ identifier ) ; } else $ identifier = $ this -> getIdentifier ( $ renderer ) ; $ renderer = $ identifier ; } $ this -> _renderer = $ renderer ; return $ this ; }
Set the activity renderer.

@param mixed $renderer An activity renderer instance, identifier object or string.
@return ComActivitiesViewActivitiesJson
Set the activity renderer .