original_string: public function Elements()
      {
          $fcvdo = new \Nblum\FlexibleContent\FlexibleContentVersionedDataObject();
          $defaultStage = $fcvdo->getDefaultStage();
          if (isset($_GET['stage']) && $defaultStage == $_GET['stage'] && \Permission::check('CMS_ACCESS')) {
              $stage = $defaultStage;
          } else {
              $stage = \Nblum\FlexibleContent\FlexibleContentVersionedDataObject::get_live_stage();
          }
  
          $results = \Nblum\FlexibleContent\FlexibleContentVersionedDataObject::get_by_stage(
              \ContentElement::class,
              $stage
              , [
              'Active' => '1',
              'ParentID' => $this->getField('ID')
          ], [
              'Sort' => 'ASC'
          ]);
  
          return $results;
      }
code: public function Elements()
      {
          $fcvdo = new \Nblum\FlexibleContent\FlexibleContentVersionedDataObject();
          $defaultStage = $fcvdo->getDefaultStage();
          if (isset($_GET['stage']) && $defaultStage == $_GET['stage'] && \Permission::check('CMS_ACCESS')) {
              $stage = $defaultStage;
          } else {
              $stage = \Nblum\FlexibleContent\FlexibleContentVersionedDataObject::get_live_stage();
          }
  
          $results = \Nblum\FlexibleContent\FlexibleContentVersionedDataObject::get_by_stage(
              \ContentElement::class,
              $stage
              , [
              'Active' => '1',
              'ParentID' => $this->getField('ID')
          ], [
              'Sort' => 'ASC'
          ]);
  
          return $results;
      }
code_tokens: public function Elements ( ) { $ fcvdo = new \ Nblum \ FlexibleContent \ FlexibleContentVersionedDataObject ( ) ; $ defaultStage = $ fcvdo -> getDefaultStage ( ) ; if ( isset ( $ _GET [ 'stage' ] ) && $ defaultStage == $ _GET [ 'stage' ] && \ Permission :: check ( 'CMS_ACCESS' ) ) { $ stage = $ defaultStage ; } else { $ stage = \ Nblum \ FlexibleContent \ FlexibleContentVersionedDataObject :: get_live_stage ( ) ; } $ results = \ Nblum \ FlexibleContent \ FlexibleContentVersionedDataObject :: get_by_stage ( \ ContentElement :: class , $ stage , [ 'Active' => '1' , 'ParentID' => $ this -> getField ( 'ID' ) ] , [ 'Sort' => 'ASC' ] ) ; return $ results ; }
docstring: creates List of all rows with content
  @return DataList
docstring_tokens: creates List of all rows with content