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

Public Member Functions

 __construct ()
 
 getFieldList ($fieldname)
 
 getTCPDFFontsList ()
 
 getNoImageList ()
 
 getCurrencyConverterList ()
 
 getContentLinks ()
 
 getActiveLanguages ($active_languages, $name= 'active_languages[]', $multiple=true, $placeholder= 'COM_VIRTUEMART_DRDOWN_NOTMULTILINGUAL')
 
 getProductFilterFields ($type)
 
 store (&$data)
 
 setVmLanguages ()
 
 setDangerousToolsOff ()
 
 remove ($id)
 
 deleteConfig ()
 
 setFraudProtection ()
 
 vendorRequireFraudProtection ()
 
- 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 getLayoutList ($view, $ignore=0, $emptyOption=true)
 
static getLayouts ($dirs, $type=0, $ignore=0, $emptyOption=true)
 
static getActiveVmLanguages ()
 
static installLanguageTables ()
 
static checkConfigTableExists ()
 
static checkVirtuemartInstalled ()
 
static installVMconfigTable ()
 
static getCreateConfigTableQuery ()
 
static readConfigFile ()
 
static storeConfig ($params)
 
- 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)
 

Static Public Attributes

static $defaultFraudProtectionCountries = array('FRA', 'GLP', 'MTQ', 'GUF', 'REU', 'PYF', 'NCL', 'WLF', 'SPM', 'BLM', 'MAF')
 
static $vendorCountry = ''
 

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
 

Constructor & Destructor Documentation

VirtueMartModelConfig::__construct ( )

Member Function Documentation

static VirtueMartModelConfig::checkConfigTableExists ( )
static
static VirtueMartModelConfig::checkVirtuemartInstalled ( )
static
VirtueMartModelConfig::deleteConfig ( )

This function deletes a config stored in the database

Author
Max Milbers
VirtueMartModelConfig::getActiveLanguages (   $active_languages,
  $name = 'active_languages[]',
  $multiple = true,
  $placeholder = 'COM_VIRTUEMART_DRDOWN_NOTMULTILINGUAL' 
)
static VirtueMartModelConfig::getActiveVmLanguages ( )
static
VirtueMartModelConfig::getContentLinks ( )

Retrieve a list of Joomla content items.

Author
RickG
Returns
object List of content objects
static VirtueMartModelConfig::getCreateConfigTableQuery ( )
static
VirtueMartModelConfig::getCurrencyConverterList ( )

Retrieve a list of currency converter modules from the plugins directory.

Author
RickG
Returns
object List of theme objects
VirtueMartModelConfig::getFieldList (   $fieldname)
static VirtueMartModelConfig::getLayoutList (   $view,
  $ignore = 0,
  $emptyOption = true 
)
static

Retrieve a list of layouts from the default and chosen templates directory.

Author
Max Milbers
Parameters
nameof the view
Returns
object List of flypage objects
static VirtueMartModelConfig::getLayouts (   $dirs,
  $type = 0,
  $ignore = 0,
  $emptyOption = true 
)
static
VirtueMartModelConfig::getNoImageList ( )

Retrieve a list of possible images to be used for the 'no image' image.

Author
RickG
Max Milbers
Returns
object List of image objects
VirtueMartModelConfig::getProductFilterFields (   $type)

Retrieve a list of preselected and existing search or order By Fields $type = 'browse_search_fields' or 'browse_orderby_fields'

Author
Kohl Patrick
Returns
array of order list
VirtueMartModelConfig::getTCPDFFontsList ( )

Retrieve a list of available fonts to be used with PDF Invoice generation & PDF Product view on FE

Author
Nikos Zagas
Returns
object List of available fonts
static VirtueMartModelConfig::installLanguageTables ( )
static
static VirtueMartModelConfig::installVMconfigTable ( )
static

Creates the config table, if it does not exist

Parameters
$_sectionSection from the virtuemart_defaults.cfg file to be parsed. Currently, only 'config' is implemented
Returns
Boolean; true on success, false otherwise
Author
Oscar van Eijk
static VirtueMartModelConfig::readConfigFile ( )
static

We should this move out of this file, because it is usually only used one time in a shop life

Author
Oscar van Eijk
Max Milbers
VirtueMartModelConfig::remove (   $id)
VirtueMartModelConfig::setDangerousToolsOff ( )

Dangerous tools get disabled after execution an operation which needed that rights. This is the function actually doing it.

Author
Max Milbers
VirtueMartModelConfig::setFraudProtection ( )
VirtueMartModelConfig::setVmLanguages ( )
VirtueMartModelConfig::store ( $data)

Save the configuration record

Author
Max Milbers
Returns
boolean True is successful, false otherwise
static VirtueMartModelConfig::storeConfig (   $params)
static
VirtueMartModelConfig::vendorRequireFraudProtection ( )

Member Data Documentation

VirtueMartModelConfig::$defaultFraudProtectionCountries = array('FRA', 'GLP', 'MTQ', 'GUF', 'REU', 'PYF', 'NCL', 'WLF', 'SPM', 'BLM', 'MAF')
static

FraudProtection to comply to the French financial Law 2018 Those 2 params are required: ordersAddOnly=1, ChangedInvCreateNewInvNumber=1

Author
Valérie Isaksen
VirtueMartModelConfig::$vendorCountry = ''
static

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