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

Public Member Functions

 getLatestVersion ()
 
 determineStoreOwner ()
 
 setStoreOwner ($userId=-1)
 
 installSampleData ($userId=null)
 
 installPluginTable ($className, $tablename, $tableComment)
 
 restoreSystemDefaults ()
 
 restoreSystemTablesCompletly ()
 
 execSQLFile ($sqlfile)
 
 removeAllVMTables ()
 
 removeAllVMData ()
 
 updateJoomlaUpdateServer ($type, $element, $dst, $group='')
 
 setSafePathCreateFolders ($token= '')
 
 resetThumbs ()
 
- 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)
 

Static Public Member Functions

static recurse_copy ($src, $dst, $delete=true)
 
static getExtensionXmlFileName ($type, $element, $dst)
 
- 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)
 

Private Member Functions

 deleteMediaThumbFolder ($type, $resized='resized')
 

Additional Inherited Members

- 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')
 
- 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
 

Member Function Documentation

VirtueMartModelUpdatesMigration::deleteMediaThumbFolder (   $type,
  $resized = 'resized' 
)
private

Delets a thumb folder and recreates it, contains small nasty hack for the thumbnail folder of the "file for sale"

Author
Max Milbers
Parameters
$type
string$resized
Returns
bool
VirtueMartModelUpdatesMigration::determineStoreOwner ( )
Author
Max Milbers
VirtueMartModelUpdatesMigration::execSQLFile (   $sqlfile)

Parse a sql file executing each sql statement found.

Author
Max Milbers
static VirtueMartModelUpdatesMigration::getExtensionXmlFileName (   $type,
  $element,
  $dst 
)
static
Parameters
$type='plugin'
$element='textinput'
$src= path . DS . 'plugins' . DS . $group . DS . $element;
VirtueMartModelUpdatesMigration::getLatestVersion ( )

Checks the VirtueMart Server for the latest available Version of VirtueMart

Returns
string Example: 1.1.2
VirtueMartModelUpdatesMigration::installPluginTable (   $className,
  $tablename,
  $tableComment 
)
VirtueMartModelUpdatesMigration::installSampleData (   $userId = null)

Installs sample data to the current database.

Author
Max Milbers, RickG $userId User Id to add the userinfo and vendor sample data to
static VirtueMartModelUpdatesMigration::recurse_copy (   $src,
  $dst,
  $delete = true 
)
static

copy all $src to $dst folder and remove it

Author
Max Milbers
Parameters
String$srcpath
String$dstpath
String$typemodules, plugins, languageBE, languageFE
VirtueMartModelUpdatesMigration::removeAllVMData ( )

Remove all the data from all Virutmeart tables.

Returns
boolean True if successful, false otherwise.
VirtueMartModelUpdatesMigration::removeAllVMTables ( )

Delete all Virtuemart tables.

Returns
True if successful, false otherwise
VirtueMartModelUpdatesMigration::resetThumbs ( )

This function deletes all stored thumbs and deletes the entries for all thumbs, usually this is need for shops older than vm2.0.22. The new pattern is now not storing the url as long it is not overwritten. Of course the function deletes all overwrites, but you can now relativly easy change the thumbsize in your shop

Author
Max Milbers
VirtueMartModelUpdatesMigration::restoreSystemDefaults ( )
VirtueMartModelUpdatesMigration::restoreSystemTablesCompletly ( )
VirtueMartModelUpdatesMigration::setSafePathCreateFolders (   $token = '')
VirtueMartModelUpdatesMigration::setStoreOwner (   $userId = -1)
Author
Max Milbers
VirtueMartModelUpdatesMigration::updateJoomlaUpdateServer (   $type,
  $element,
  $dst,
  $group = '' 
)
Parameters
$type='plugin'
$element='textinput'
$src= path . DS . 'plugins' . DS . $group . DS . $element;

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