public function createDataVersion ($strTable, $intPid, $intVersion)
	{
		$db = Database::getInstance();
		
		$objData = $db->prepare("SELECT * FROM tl_data WHERE pid=?")
					  ->execute($intPid);	
			  
		if ($objData === null)
		{
			return;
		}

		$db->prepare("INSERT INTO tl_version (pid, tstamp, version, fromTable, data) VALUES (?, ?, ?, ?, ?)")
		   ->execute($intPid, time(), $intVersion, 'tl_data', serialize($objData->fetchAllAssoc()));
	}
public function createDataVersion ($strTable, $intPid, $intVersion)
	{
		$db = Database::getInstance();
		
		$objData = $db->prepare("SELECT * FROM tl_data WHERE pid=?")
					  ->execute($intPid);	
			  
		if ($objData === null)
		{
			return;
		}

		$db->prepare("INSERT INTO tl_version (pid, tstamp, version, fromTable, data) VALUES (?, ?, ?, ?, ?)")
		   ->execute($intPid, time(), $intVersion, 'tl_data', serialize($objData->fetchAllAssoc()));
	}
public function createDataVersion ( $ strTable , $ intPid , $ intVersion ) { $ db = Database :: getInstance ( ) ; $ objData = $ db -> prepare ( "SELECT * FROM tl_data WHERE pid=?" ) -> execute ( $ intPid ) ; if ( $ objData === null ) { return ; } $ db -> prepare ( "INSERT INTO tl_version (pid, tstamp, version, fromTable, data) VALUES (?, ?, ?, ?, ?)" ) -> execute ( $ intPid , time ( ) , $ intVersion , 'tl_data' , serialize ( $ objData -> fetchAllAssoc ( ) ) ) ; }
Save tl_data versions

@param string        $strTable
@param integer       $intPid
@param integer       $intVersion
Save tl_data versions