public function actionOne($option = null)
	{
		$fixtures = Yii::createObject(Fixtures::className());
		$option = Question::displayWithQuit('Select operation', ['Export', 'Import'], $option);
		if($option == 'e') {
			$table = Enter::display('Enter table name for export');
			$tables = $fixtures->export([$table]);
			Output::items($tables, 'Exported tables');
		} elseif($option == 'i') {
			$table = Enter::display('Enter table name for import');
			$tables = $fixtures->import([$table]);
			Output::items($tables, 'Imported tables');
		}
	}
public function actionOne($option = null)
	{
		$fixtures = Yii::createObject(Fixtures::className());
		$option = Question::displayWithQuit('Select operation', ['Export', 'Import'], $option);
		if($option == 'e') {
			$table = Enter::display('Enter table name for export');
			$tables = $fixtures->export([$table]);
			Output::items($tables, 'Exported tables');
		} elseif($option == 'i') {
			$table = Enter::display('Enter table name for import');
			$tables = $fixtures->import([$table]);
			Output::items($tables, 'Imported tables');
		}
	}
public function actionOne ( $ option = null ) { $ fixtures = Yii :: createObject ( Fixtures :: className ( ) ) ; $ option = Question :: displayWithQuit ( 'Select operation' , [ 'Export' , 'Import' ] , $ option ) ; if ( $ option == 'e' ) { $ table = Enter :: display ( 'Enter table name for export' ) ; $ tables = $ fixtures -> export ( [ $ table ] ) ; Output :: items ( $ tables , 'Exported tables' ) ; } elseif ( $ option == 'i' ) { $ table = Enter :: display ( 'Enter table name for import' ) ; $ tables = $ fixtures -> import ( [ $ table ] ) ; Output :: items ( $ tables , 'Imported tables' ) ; } }
Export or import one table
Export or import one table