original_string: public function export($instances, $selfedit="false") {
  		if ($selfedit == "true") {
  			$moufManager = MoufManager::getMoufManager();
  		} else {
  			$moufManager = MoufManager::getMoufManagerHiddenInstance();
  		}
  		
  		$instancesList = explode("\n", $instances);
  		$cleaninstancesList = array();
  		foreach ($instancesList as $instance) {
  			$instance = trim($instance, "\r ");
  			if (!empty($instance)) {
  				$cleaninstancesList[] = $instance;
  			}
  		}
  
  		$exportService = new ExportService();
  		$this->generatedCode = $exportService->export($cleaninstancesList, $moufManager);
  	}
code: public function export($instances, $selfedit="false") {
  		if ($selfedit == "true") {
  			$moufManager = MoufManager::getMoufManager();
  		} else {
  			$moufManager = MoufManager::getMoufManagerHiddenInstance();
  		}
  		
  		$instancesList = explode("\n", $instances);
  		$cleaninstancesList = array();
  		foreach ($instancesList as $instance) {
  			$instance = trim($instance, "\r ");
  			if (!empty($instance)) {
  				$cleaninstancesList[] = $instance;
  			}
  		}
  
  		$exportService = new ExportService();
  		$this->generatedCode = $exportService->export($cleaninstancesList, $moufManager);
  	}
code_tokens: public function export ( $ instances , $ selfedit = "false" ) { if ( $ selfedit == "true" ) { $ moufManager = MoufManager :: getMoufManager ( ) ; } else { $ moufManager = MoufManager :: getMoufManagerHiddenInstance ( ) ; } $ instancesList = explode ( "\n" , $ instances ) ; $ cleaninstancesList = array ( ) ; foreach ( $ instancesList as $ instance ) { $ instance = trim ( $ instance , "\r " ) ; if ( ! empty ( $ instance ) ) { $ cleaninstancesList [ ] = $ instance ; } } $ exportService = new ExportService ( ) ; $ this -> generatedCode = $ exportService -> export ( $ cleaninstancesList , $ moufManager ) ; }
docstring: This action generates the objects from the SQL query and creates a new SELECT instance.
  
  @param string $instances
  @param string $selfedit
docstring_tokens: This action generates the objects from the SQL query and creates a new SELECT instance .