applications/dashboard/models/class.exportmodel.php
public function BeginExport($Path, $Source = '') {
		$this->BeginTime = microtime(TRUE);
		$TimeStart = list($sm, $ss) = explode(' ', microtime());
		
		if($this->UseCompression && function_exists('gzopen'))
			$fp = gzopen($Path, 'wb');
		else
			$fp = fopen($Path, 'wb');
		$this->_File = $fp;
		
		fwrite($fp, 'Vanilla Export: '.$this->Version());
		if($Source)
			fwrite($fp, self::DELIM.' Source: '.$Source);
		fwrite($fp, self::NEWLINE.self::NEWLINE);
		$this->Comment('Exported Started: '.date('Y-m-d H:i:s'));
	}
public function BeginExport($Path, $Source = '') {
		$this->BeginTime = microtime(TRUE);
		$TimeStart = list($sm, $ss) = explode(' ', microtime());
		
		if($this->UseCompression && function_exists('gzopen'))
			$fp = gzopen($Path, 'wb');
		else
			$fp = fopen($Path, 'wb');
		$this->_File = $fp;
		
		fwrite($fp, 'Vanilla Export: '.$this->Version());
		if($Source)
			fwrite($fp, self::DELIM.' Source: '.$Source);
		fwrite($fp, self::NEWLINE.self::NEWLINE);
		$this->Comment('Exported Started: '.date('Y-m-d H:i:s'));
	}
public function BeginExport ( $ Path , $ Source = '' ) { $ this -> BeginTime = microtime ( TRUE ) ; $ TimeStart = list ( $ sm , $ ss ) = explode ( ' ' , microtime ( ) ) ; if ( $ this -> UseCompression && function_exists ( 'gzopen' ) ) $ fp = gzopen ( $ Path , 'wb' ) ; else $ fp = fopen ( $ Path , 'wb' ) ; $ this -> _File = $ fp ; fwrite ( $ fp , 'Vanilla Export: ' . $ this -> Version ( ) ) ; if ( $ Source ) fwrite ( $ fp , self :: DELIM . ' Source: ' . $ Source ) ; fwrite ( $ fp , self :: NEWLINE . self :: NEWLINE ) ; $ this -> Comment ( 'Exported Started: ' . date ( 'Y-m-d H:i:s' ) ) ; }
Create the export file and begin the export.
@param string $Path The path to the export file.
@param string $Source The source program that created the export. This may be used by the import routine to do additional processing.
Create the export file and begin the export .