public function execute()
    {
        $this->rendered['sub-elements'] = array();
        try {
            $this->hook('pre-render');
            $this->hook('beforeRender');
            $this->recursiveRender();
            if (isset($_GET['cut_object'])) {
                throw new BaseException("Unable to cut object with name='".$_GET['cut_object']."'. ".
                    "It wasn't initialized");
            }
            if (isset($_GET['cut_region'])) {
                // @todo Imants: This looks something obsolete. At least property cut_region_result is never defined.
                if (!$this->cut_region_result) {
                    throw new BaseException("Unable to cut region with name='".$_GET['cut_region']."'");
                }
                echo $this->cut_region_result;

                return;
            }
        } catch (Exception $e) {
            if ($e instanceof Exception_Stop) {
                $this->hook('cut-output');
                if (isset($e->result)) {
                    echo $e->result;
                }
                $this->hook('post-render-output');

                return;
            }
            throw $e;
        }
    }
public function execute()
    {
        $this->rendered['sub-elements'] = array();
        try {
            $this->hook('pre-render');
            $this->hook('beforeRender');
            $this->recursiveRender();
            if (isset($_GET['cut_object'])) {
                throw new BaseException("Unable to cut object with name='".$_GET['cut_object']."'. ".
                    "It wasn't initialized");
            }
            if (isset($_GET['cut_region'])) {
                // @todo Imants: This looks something obsolete. At least property cut_region_result is never defined.
                if (!$this->cut_region_result) {
                    throw new BaseException("Unable to cut region with name='".$_GET['cut_region']."'");
                }
                echo $this->cut_region_result;

                return;
            }
        } catch (Exception $e) {
            if ($e instanceof Exception_Stop) {
                $this->hook('cut-output');
                if (isset($e->result)) {
                    echo $e->result;
                }
                $this->hook('post-render-output');

                return;
            }
            throw $e;
        }
    }
public function execute ( ) { $ this -> rendered [ 'sub-elements' ] = array ( ) ; try { $ this -> hook ( 'pre-render' ) ; $ this -> hook ( 'beforeRender' ) ; $ this -> recursiveRender ( ) ; if ( isset ( $ _GET [ 'cut_object' ] ) ) { throw new BaseException ( "Unable to cut object with name='" . $ _GET [ 'cut_object' ] . "'. " . "It wasn't initialized" ) ; } if ( isset ( $ _GET [ 'cut_region' ] ) ) { // @todo Imants: This looks something obsolete. At least property cut_region_result is never defined. if ( ! $ this -> cut_region_result ) { throw new BaseException ( "Unable to cut region with name='" . $ _GET [ 'cut_region' ] . "'" ) ; } echo $ this -> cut_region_result ; return ; } } catch ( Exception $ e ) { if ( $ e instanceof Exception_Stop ) { $ this -> hook ( 'cut-output' ) ; if ( isset ( $ e -> result ) ) { echo $ e -> result ; } $ this -> hook ( 'post-render-output' ) ; return ; } throw $ e ; } }
Main execution loop.
Main execution loop .