public function onBeforeRender(AnEvent $event)
    {
        if($this->_option == 'com_people' && $this->_viewer->guest()) {
            if (in_array($this->_view, array('session', 'person'))) {
                $this->_addScripts();
            }
        }

        if (
            $this->_option === 'com_groups' &&
            $this->_view === 'group' &&
            $this->_id === 0 &&
            in_array($this->_layout, array('add', 'form'))
        ) {
            $this->_addScripts();
        }
    }
public function onBeforeRender(AnEvent $event)
    {
        if($this->_option == 'com_people' && $this->_viewer->guest()) {
            if (in_array($this->_view, array('session', 'person'))) {
                $this->_addScripts();
            }
        }

        if (
            $this->_option === 'com_groups' &&
            $this->_view === 'group' &&
            $this->_id === 0 &&
            in_array($this->_layout, array('add', 'form'))
        ) {
            $this->_addScripts();
        }
    }
public function onBeforeRender ( AnEvent $ event ) { if ( $ this -> _option == 'com_people' && $ this -> _viewer -> guest ( ) ) { if ( in_array ( $ this -> _view , array ( 'session' , 'person' ) ) ) { $ this -> _addScripts ( ) ; } } if ( $ this -> _option === 'com_groups' && $ this -> _view === 'group' && $ this -> _id === 0 && in_array ( $ this -> _layout , array ( 'add' , 'form' ) ) ) { $ this -> _addScripts ( ) ; } }
onBeforeRender handler.
onBeforeRender handler .