original_string: protected function execPageCycle()
      {
          /**
           * @event cms.page.start
           * Fires before all of the page & layout lifecycle handlers are run
           *
           * Example usage:
           *
           *     Event::listen('cms.page.start', function ((\Cms\Classes\Controller) $controller) {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.start', function () {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           */
          if ($event = $this->fireSystemEvent('cms.page.start')) {
              return $event;
          }
  
          /*
           * Run layout functions
           */
          if ($this->layoutObj) {
              CmsException::mask($this->layout, 300);
              $response = (
                  ($result = $this->layoutObj->onStart()) ||
                  ($result = $this->layout->runComponents()) ||
                  ($result = $this->layoutObj->onBeforePageStart())
              ) ? $result : null;
              CmsException::unmask();
  
              if ($response) {
                  return $response;
              }
          }
  
          /*
           * Run page functions
           */
          CmsException::mask($this->page, 300);
          $response = (
              ($result = $this->pageObj->onStart()) ||
              ($result = $this->page->runComponents()) ||
              ($result = $this->pageObj->onEnd())
          ) ? $result : null;
          CmsException::unmask();
  
          if ($response) {
              return $response;
          }
  
          /*
           * Run remaining layout functions
           */
          if ($this->layoutObj) {
              CmsException::mask($this->layout, 300);
              $response = ($result = $this->layoutObj->onEnd()) ? $result : null;
              CmsException::unmask();
          }
  
          /**
           * @event cms.page.end
           * Fires after all of the page & layout lifecycle handlers are run
           *
           * Example usage:
           *
           *     Event::listen('cms.page.end', function ((\Cms\Classes\Controller) $controller) {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.end', function () {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           */
          if ($event = $this->fireSystemEvent('cms.page.end')) {
              return $event;
          }
  
          return $response;
      }
code: protected function execPageCycle()
      {
          /**
           * @event cms.page.start
           * Fires before all of the page & layout lifecycle handlers are run
           *
           * Example usage:
           *
           *     Event::listen('cms.page.start', function ((\Cms\Classes\Controller) $controller) {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.start', function () {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           */
          if ($event = $this->fireSystemEvent('cms.page.start')) {
              return $event;
          }
  
          /*
           * Run layout functions
           */
          if ($this->layoutObj) {
              CmsException::mask($this->layout, 300);
              $response = (
                  ($result = $this->layoutObj->onStart()) ||
                  ($result = $this->layout->runComponents()) ||
                  ($result = $this->layoutObj->onBeforePageStart())
              ) ? $result : null;
              CmsException::unmask();
  
              if ($response) {
                  return $response;
              }
          }
  
          /*
           * Run page functions
           */
          CmsException::mask($this->page, 300);
          $response = (
              ($result = $this->pageObj->onStart()) ||
              ($result = $this->page->runComponents()) ||
              ($result = $this->pageObj->onEnd())
          ) ? $result : null;
          CmsException::unmask();
  
          if ($response) {
              return $response;
          }
  
          /*
           * Run remaining layout functions
           */
          if ($this->layoutObj) {
              CmsException::mask($this->layout, 300);
              $response = ($result = $this->layoutObj->onEnd()) ? $result : null;
              CmsException::unmask();
          }
  
          /**
           * @event cms.page.end
           * Fires after all of the page & layout lifecycle handlers are run
           *
           * Example usage:
           *
           *     Event::listen('cms.page.end', function ((\Cms\Classes\Controller) $controller) {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.end', function () {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           */
          if ($event = $this->fireSystemEvent('cms.page.end')) {
              return $event;
          }
  
          return $response;
      }
code_tokens: protected function execPageCycle ( ) { /**
           * @event cms.page.start
           * Fires before all of the page & layout lifecycle handlers are run
           *
           * Example usage:
           *
           *     Event::listen('cms.page.start', function ((\Cms\Classes\Controller) $controller) {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.start', function () {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           */ if ( $ event = $ this -> fireSystemEvent ( 'cms.page.start' ) ) { return $ event ; } /*
           * Run layout functions
           */ if ( $ this -> layoutObj ) { CmsException :: mask ( $ this -> layout , 300 ) ; $ response = ( ( $ result = $ this -> layoutObj -> onStart ( ) ) || ( $ result = $ this -> layout -> runComponents ( ) ) || ( $ result = $ this -> layoutObj -> onBeforePageStart ( ) ) ) ? $ result : null ; CmsException :: unmask ( ) ; if ( $ response ) { return $ response ; } } /*
           * Run page functions
           */ CmsException :: mask ( $ this -> page , 300 ) ; $ response = ( ( $ result = $ this -> pageObj -> onStart ( ) ) || ( $ result = $ this -> page -> runComponents ( ) ) || ( $ result = $ this -> pageObj -> onEnd ( ) ) ) ? $ result : null ; CmsException :: unmask ( ) ; if ( $ response ) { return $ response ; } /*
           * Run remaining layout functions
           */ if ( $ this -> layoutObj ) { CmsException :: mask ( $ this -> layout , 300 ) ; $ response = ( $ result = $ this -> layoutObj -> onEnd ( ) ) ? $ result : null ; CmsException :: unmask ( ) ; } /**
           * @event cms.page.end
           * Fires after all of the page & layout lifecycle handlers are run
           *
           * Example usage:
           *
           *     Event::listen('cms.page.end', function ((\Cms\Classes\Controller) $controller) {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.end', function () {
           *         return Response::make('Taking over the lifecycle!', 200);
           *     });
           *
           */ if ( $ event = $ this -> fireSystemEvent ( 'cms.page.end' ) ) { return $ event ; } return $ response ; }
docstring: Executes the page life cycle.
  Creates an object from the PHP sections of the page and
  it's layout, then executes their life cycle functions.
docstring_tokens: Executes the page life cycle . Creates an object from the PHP sections of the page and it s layout then executes their life cycle functions .