VirtueMart  3.2.14.9808
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Migrator Class Reference
Inheritance diagram for Migrator:
Inheritance graph
[legend]
Collaboration diagram for Migrator:
Collaboration graph
[legend]

Public Member Functions

 __construct ()
 
 getMigrationProgress ($group)
 
 storeMigrationProgress ($group, $array, $limit= '')
 
 migrateGeneral ()
 
 migrateUsers ()
 
 migrateProducts ()
 
 migrateOrders ()
 
 migrateAllInOne ()
 
 portMedia ()
 
 _getMediaIdByName ($filename, $type)
 
 portOrders ()
 
 portOrderStatus ()
 
 getDimensionUnitMigrateValues ()
 
 getWeightUnitMigrateValues ()
 
 loadCountListContinue ($q, $startLimit, $maxItems, $msg)
 
 portCurrency ()
 
 restoreDatabase ($prefix='bak_vm_')
 
 portVm1Attributes ()
 
 portVm1RelatedProducts ()
 
- Public Member Functions inherited from VmModel
 __construct ($cidName='cid', $config=array())
 
 setDebugSql ($b)
 
 getName ()
 
 setState ($property, $value=null)
 
 getState ($property=null, $default=null)
 
 getTable ($name= '', $prefix= 'Table', $options=array())
 
 setIdName ($idName)
 
 getIdName ()
 
 getId ()
 
 setId ($id)
 
 setMainTable ($maintablename, $maintable=0)
 
 getDefaultOrdering ()
 
 addvalidOrderingFieldName ($add)
 
 removevalidOrderingFieldName ($name)
 
 setDefaultValidOrderingFields ($defaultTable=null)
 
 _getOrdering ($preTable='')
 
 checkFilterOrder ($toCheck, $view=0, $task= '')
 
 checkValidOrderingFieldName ($toCheck)
 
 checkFilterDir ($toCheck, $view=0, $task= '')
 
 getPagination ($perRow=5)
 
 setPaginationLimits ()
 
 getTotal ()
 
 setGetCount ($withCount)
 
 exeSortSearchListQuery ($object, $select, $joinedTables, $whereString= '', $groupBy= '', $orderBy= '', $filter_order_Dir= '', $nbrReturnProducts=false)
 
 emptyCache ()
 
 getData ($id=0)
 
 store (&$data)
 
 remove ($ids)
 
 setToggleName ($togglesName)
 
 toggle ($field, $val=NULL, $cidname=0, $tablename=0, $view=false)
 
 move ($direction, $filter=null)
 
 saveorder ($cid=array(), $order, $filter=null)
 
 addImages ($obj, $limit=0)
 
 resetErrors ()
 
- Public Member Functions inherited from vObject
 __toString ()
 
 get ($prop, $def=null)
 
 set ($prop, $value=null)
 
 setProperties ($props)
 

Public Attributes

 $mediaIdFilename = array()
 
- Public Attributes inherited from VmModel
 $_id = 0
 
 $_data = null
 
 $_query = null
 
 $_total = null
 
 $_pagination = 0
 
 $_limit = 0
 
 $_limitStart = 0
 
 $_maintable = ''
 
 $_maintablename = ''
 
 $_idName = ''
 
 $_cidName = 'cid'
 
 $_togglesName = null
 
 $_selectedOrderingDir = 'DESC'
 
 $_noLimit = false
 
 $_tablePreFix = ''
 
 $_validOrderingFieldName = array()
 
 $_validFilterDir = array('ASC','DESC')
 

Private Member Functions

 _portMediaByType ($url, $type)
 
 portShoppergroups ()
 
 portUsers ()
 
 portVendor ()
 
 portCategories ()
 
 portManufacturerCategories ()
 
 portManufacturers ()
 
 portProducts ()
 
 _changeToStamp ($dateIn)
 
 _ensureUsingCurrencyId ($curr)
 
 _getMaxItems ($name)
 
 _getStartLimit ($name)
 
 getCountryIdByName ($name)
 
 getStateIdByName ($name)
 
 getCurrencyIdByCode ($name)
 
 createOrderStatusAssoc ()
 
 parseWeightUom ($weightUnit)
 
 parseDimensionUom ($dimensionUnit)
 
 parseUom ($unit, $migrateValues)
 
 _attributesToJson ($attributes)
 

Private Attributes

 $_stop = false
 
 $_countries = array()
 
 $_states = array()
 

Additional Inherited Members

- Static Public Member Functions inherited from VmModel
static addTablePath ($path)
 
static addIncludePath ($path= '', $prefix= '')
 
static getInstance ($type, $prefix= '', $config=array())
 
static getModel ($name=false)
 
static joinLangTables ($tablename, $prefix, $on, $method=0)
 
static joinLangSelectFields ($langFields, $as=true)
 
static joinLangLikeFields ($langFields, $keyword)
 
static joinLangLikeField ($searchField, $keyword)
 
- Protected Member Functions inherited from VmModel
 populateState ()
 
 _createTable ($name, $prefix= 'Table', $config=array())
 
 _getList ($query, $limitstart=0, $limit=0)
 
 _getListCount ($query)
 
- Static Protected Member Functions inherited from VmModel
static _createFileName ($type, $parts=array())
 
- Protected Attributes inherited from VmModel
 $__state_set = null
 
 $name
 
 $option = null
 
 $state
 
 $event_clean_cache = null
 
 $_maxItems = 1000
 

Constructor & Destructor Documentation

Migrator::__construct ( )

Member Function Documentation

Migrator::_attributesToJson (   $attributes)
private
Migrator::_changeToStamp (   $dateIn)
private
Migrator::_ensureUsingCurrencyId (   $curr)
private
Migrator::_getMaxItems (   $name)
private
Migrator::_getMediaIdByName (   $filename,
  $type 
)
Migrator::_getStartLimit (   $name)
private

Enter description here ...

Migrator::_portMediaByType (   $url,
  $type 
)
private
Migrator::createOrderStatusAssoc ( )
private
Author
Max Milbers
Migrator::getCountryIdByName (   $name)
private
Migrator::getCurrencyIdByCode (   $name)
private
Migrator::getDimensionUnitMigrateValues ( )

get new Length Standard Unit

Author
Valerie Isaksen
Migrator::getMigrationProgress (   $group)
Migrator::getStateIdByName (   $name)
private
Migrator::getWeightUnitMigrateValues ( )

get new Weight Standard Unit

Author
Valerie Isaksen
Migrator::loadCountListContinue (   $q,
  $startLimit,
  $maxItems,
  $msg 
)
Migrator::migrateAllInOne ( )
Migrator::migrateGeneral ( )
Migrator::migrateOrders ( )
Migrator::migrateProducts ( )
Migrator::migrateUsers ( )
Migrator::parseDimensionUom (   $dimensionUnit)
private

parse the entered string to a standard unit

Author
Max Milbers
Valerie Isaksen
Migrator::parseUom (   $unit,
  $migrateValues 
)
private

parse the entered string to a standard unit

Author
Max Milbers
Valerie Isaksen
Migrator::parseWeightUom (   $weightUnit)
private

parse the entered string to a standard unit

Author
Max Milbers
Valerie Isaksen
Migrator::portCategories ( )
private
Migrator::portCurrency ( )
Migrator::portManufacturerCategories ( )
private
Migrator::portManufacturers ( )
private
Migrator::portMedia ( )
Migrator::portOrders ( )
Migrator::portOrderStatus ( )
Migrator::portProducts ( )
private
Migrator::portShoppergroups ( )
private
Migrator::portUsers ( )
private
Migrator::portVendor ( )
private
Migrator::portVm1Attributes ( )

Roughly taken from the forum, a bit rewritten by Max Milbers to use the joomla database Thank you raycarter

http://forum.virtuemart.net/index.php?topic=102083.0

Author
raycarter
Migrator::portVm1RelatedProducts ( )

Roughly taken from the forum, a bit rewritten by Max Milbers to use the joomla database Thank you oneforallsoft

http://forum.virtuemart.net/index.php?topic=116403.0 http://www.oneforallsoft.com/related-products-missing-after-virtuemart-upgrade/

Author
oneforallsoft
Migrator::restoreDatabase (   $prefix = 'bak_vm_')

Method to restore all virtuemart tables in a database with a given prefix

public

Parameters
stringOld table prefix
Returns
boolean True on success.
Migrator::storeMigrationProgress (   $group,
  $array,
  $limit = '' 
)

Member Data Documentation

Migrator::$_countries = array()
private

Gets the virtuemart_country_id by a country 2 or 3 code

Author
Max Milbers
Parameters
string$nameCountry 3 or Country 2 code (example US for United States) return int virtuemart_country_id
Migrator::$_states = array()
private
Migrator::$_stop = false
private
Migrator::$mediaIdFilename = array()

Finds the media id in the vm2 table for a given filename

Author
Max Milbers
Valerie Isaksen

The documentation for this class was generated from the following file: