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);
	}
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);
	}
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 ) ; }
This action generates the objects from the SQL query and creates a new SELECT instance.

@param string $instances
@param string $selfedit
This action generates the objects from the SQL query and creates a new SELECT instance .