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

Public Member Functions

 __construct ()
 
 createLanguageTables ($langs=0)
 
 getTablesBySql ($file)
 
 updateMyVmTables ($file=0, $like='_virtuemart_')
 
 optimizeTable ($tablename)
 
 createTable ($tablename, $table)
 
 dropTables ($todelete)
 
 reCreateKeyByTableAttributes ($keyAttribs)
 
 alterColumns ($tablename, $tableDef)
 
 dropPrimaryKey ($tablename)
 
 deleteColumns ($tablename, $fields)
 
 loadCountListContinue ($q, $startLimit, $maxItems, $msg)
 
- 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

 $tables
 
- 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

 alterKey ($tablename, $keys)
 
 reCreateColumnByTableAttributes ($fullColumn)
 
 formatComment ($comment)
 
 notnull ($string)
 
 formatExtra ($extra)
 
 primarykey ($string)
 
 getdefault ($string)
 

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

GenericTableUpdater::__construct ( )

Member Function Documentation

GenericTableUpdater::alterColumns (   $tablename,
  $tableDef 
)
Author
Max Milbers
Parameters
unknown_type$tablename
unknown_type$fields
unknown_type$command
GenericTableUpdater::alterKey (   $tablename,
  $keys 
)
private
GenericTableUpdater::createLanguageTables (   $langs = 0)
Author
Max Milbers
Parameters
unknown_type$config
GenericTableUpdater::createTable (   $tablename,
  $table 
)
GenericTableUpdater::deleteColumns (   $tablename,
  $fields 
)
GenericTableUpdater::dropPrimaryKey (   $tablename)

This function drops the key only if existing and removes before the auto_increment attribute from the column

Author
Max Milbers
Parameters
$tablename
Returns
bool
GenericTableUpdater::dropTables (   $todelete)
GenericTableUpdater::formatComment (   $comment)
private
GenericTableUpdater::formatExtra (   $extra)
private
GenericTableUpdater::getdefault (   $string)
private
GenericTableUpdater::getTablesBySql (   $file)
GenericTableUpdater::loadCountListContinue (   $q,
  $startLimit,
  $maxItems,
  $msg 
)
GenericTableUpdater::notnull (   $string)
private
GenericTableUpdater::optimizeTable (   $tablename)
GenericTableUpdater::primarykey (   $string)
private
GenericTableUpdater::reCreateColumnByTableAttributes (   $fullColumn)
private
GenericTableUpdater::reCreateKeyByTableAttributes (   $keyAttribs)
GenericTableUpdater::updateMyVmTables (   $file = 0,
  $like = '_virtuemart_' 
)

Member Data Documentation

GenericTableUpdater::$tables
Initial value:
= array( 'products'=>'virtuemart_product_id',
'vendors'=>'virtuemart_vendor_id',
'categories'=>'virtuemart_category_id',
'manufacturers'=>'virtuemart_manufacturer_id',
'manufacturercategories'=>'virtuemart_manufacturercategories_id',
'paymentmethods'=>'virtuemart_paymentmethod_id',
'shipmentmethods'=>'virtuemart_shipmentmethod_id')

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