VirtueMart
3.2.14.9808
|
Public Member Functions | |
__construct ($table, $key, &$db) | |
getProperties ($public=true) | |
getKeyName ($multiple=false) | |
getDbo () | |
getError () | |
getErrors () | |
setPrimaryKey ($key, $keyForm=0) | |
getPKey () | |
setObligatoryKeys ($key) | |
setUniqueName ($name) | |
setLoggable () | |
setTranslatable ($langFields) | |
setLanguage ($tag) | |
getTranslatableFields () | |
setLockable () | |
setOrderable ($key= 'ordering', $auto=true) | |
setHashable ($key) | |
setOmittedHashFields (array $fields) | |
setSlug ($slugAutoName, $key= 'slug') | |
setTableShortCut ($prefix) | |
setRules ($input) | |
getRules () | |
emptyCache () | |
setParameterable ($paramsFieldName, $varsToPushParam, $overwrite=false) | |
bind ($src, $ignore=array()) | |
setCryptedFields ($fieldNames) | |
getCryptedFields () | |
showFullColumns ($typeKey=0, $typeValue=0, $properties=true) | |
loadFields () | |
loadFieldValues ($array=true) | |
checkDataContainsTableFields ($from, $ignore=array()) | |
save ($src, $orderingFilter= '', $ignore= '') | |
setLoggableFieldsForStore () | |
load ($oid=null, $overWriteLoadName=0, $andWhere=0, $tableJoins=array(), $joinKey=0) | |
getLoaded () | |
encryptFields () | |
decryptFields () | |
store ($updateNulls=false) | |
storeParams () | |
checkCreateUnique ($tbl_name, $name) | |
setCheckVendorId () | |
hashEntry ($set=true) | |
integrity () | |
check () | |
bindChecknStore (&$data, $preload=false, $langOnly=false) | |
bindChecknStoreNoLang (&$data, $preload=false) | |
fixOrdering ($where= '') | |
move ($dirn, $where= '', $orderingkey=0) | |
getNextOrder ($where= '', $orderingkey=0) | |
reorder ($where= '', $orderingkey=0) | |
checkout ($who, $oid=null) | |
checkin ($oid=null) | |
toggle ($field, $val=NULL) | |
resetErrors () | |
delete ($oid=null, $where=0) | |
isMysql51Plus () | |
getMysqlVersion () | |
checkAndDelete ($table, $whereField=0, $andWhere= '') | |
_modifyColumn ($_act, $_col, $_type= '', $_col2= '') | |
reset () | |
attachObserver (JObserverInterface $observer) | |
Public Member Functions inherited from vObject | |
__toString () | |
get ($prop, $def=null) | |
set ($prop, $value=null) | |
setProperties ($props) | |
Static Public Member Functions | |
static | getInstance ($type, $prefix= 'VmTable', $config=array()) |
static | addIncludePath ($path=null) |
static | bindParameterableToSubField (&$obj, $varsToPush, $field='params') |
static | bindParameterable (&$obj, $xParams, $varsToPushParam) |
static | checkTableExists ($table) |
static | bindTo (&$obj, $src, $internals=false, $ignore=array()) |
isCheckedOut ($with=0, $against=null) | |
Public Attributes | |
$_xParams = 0 | |
$_varsToPushParam = array() | |
$_translatable = false | |
$_cryptedFields = false | |
$_ltmp = false | |
$_loadedWithLangFallback = 0 | |
$_loaded = false | |
$_tablePreFix = '' | |
Protected Member Functions | |
_lock () | |
_unlock () | |
_getAssetName () | |
_getAssetTitle () | |
_getAssetParentId ($table=null, $id=null) | |
Protected Attributes | |
$_tbl = '' | |
$_tbl_lang = null | |
$_tbl_key ='' | |
$_tbl_keys = '' | |
$_pkey = '' | |
$_pkeyForm = '' | |
$_obkeys = array() | |
$_unique = false | |
$_unique_name = array() | |
$_orderingKey = 'ordering' | |
$_slugAutoName = '' | |
$_slugName = '' | |
$_db = false | |
$_rules | |
$_trackAssets = false | |
$_locked = false | |
$_loggable = false | |
$_translatableFields = array() | |
$_hashName = '' | |
$_omittedHashFields = array() | |
$_langTag = null | |
$_updateNulls = false | |
Static Protected Attributes | |
static | $_cache = array() |
Private Attributes | |
$_lhash = 0 | |
VmTable::__construct | ( | $table, | |
$key, | |||
& | $db | ||
) |
string | $table | |
string | $key | |
JDatabase | $db |
|
protected |
Method to compute the default name of the asset. The default name is in the form table_name.id where id is the value of the primary key of the table.
|
protected |
Method to get the parent asset under which to register this one. By default, all assets are registered to the ROOT node with ID, which will default to 1 if none exists. The extended class can define a table and id to lookup. If the asset does not exist it will be created.
JTable | $table | A JTable object for the asset parent. |
integer | $id | Id to look up |
|
protected |
Method to return the title to use for the asset table. In tracking the assets a title is kept for each asset so that there is some context available in a unified access manager. Usually this would just return $this->title or $this->name or whatever is being used for the primary name of the row. If this method is not overridden, the asset name is used.
|
protected |
Method to lock the database table for writing.
JDatabaseException |
VmTable::_modifyColumn | ( | $_act, | |
$_col, | |||
$_type = '' , |
|||
$_col2 = '' |
|||
) |
Add, change or drop userfields
string | $_act | Action: ADD, DROP or CHANGE (synonyms available, see the switch cases) |
string | $_col | Column name |
string | $_type | fieldtype |
string | $_col2 | Second Column name |
stAn - note: i disabled deleting of user data when a column (shopper field) is deleted. If a deletion of specific user or order is needed, it can be done separatedly The column if not set with $_col2 will be renamed to ORIGINALNAME_DELETED_{timestamp()} and depending on mysql version it's definition will change
|
protected |
Method to unlock the database table for writing.
|
static |
Add a filesystem path where JTable should search for table class files. You may either pass a string or an array of paths.
mixed | $path | A filesystem path or array of filesystem paths to add. |
VmTable::attachObserver | ( | JObserverInterface | $observer | ) |
Implement JObservableInterface: Adds an observer to this instance. This method will be called fron the constructor of classes implementing JObserverInterface which is instanciated by the constructor of $this with JObserverMapper::attachAllObservers($this)
JObserverInterface | JTableObserver | $observer | The observer object |
VmTable::bind | ( | $src, | |
$ignore = array() |
|||
) |
Method to bind an associative array or object to the JTable instance.This method only binds properties that are publicly accessible and optionally takes an array of properties to ignore when binding.
mixed | $src | An associative array or object to bind to the JTable instance. |
mixed | $ignore | An optional array or space separated list of properties to ignore while binding. |
VmTable::bindChecknStore | ( | & | $data, |
$preload = false , |
|||
$langOnly = false |
|||
) |
As shortcat, Important the & MUST be there, even in php5.3
array/obj | $data input data as assoc array or obj | |
boolean | $preload | You can preload the data here too preserve not updated data |
VmTable::bindChecknStoreNoLang | ( | & | $data, |
$preload = false |
|||
) |
|
static |
This function must be Takes the bounded values at obj of the field $xParams and adds them as attributs of obj
$obj | |
$xParams | |
$varsToPushParam |
|
static |
Maps the parameters to a subfield. usefull for the JForm
$obj | ||
$varsToPush | ||
string | $field |
|
static |
$obj | ||
$src | ||
array | $ignore |
VmTable::check | ( | ) |
VmTable::checkAndDelete | ( | $table, | |
$whereField = 0 , |
|||
$andWhere = '' |
|||
) |
VmTable::checkCreateUnique | ( | $tbl_name, | |
$name | |||
) |
VmTable::checkDataContainsTableFields | ( | $from, | |
$ignore = array() |
|||
) |
VmTable::checkin | ( | $oid = null | ) |
Checks in a row
public
mixed | The primary key value for the row |
VmTable::checkout | ( | $who, | |
$oid = null |
|||
) |
Checks out a row
public
integer | The id of the user |
mixed | The primary key value for the row |
|
static |
VmTable::decryptFields | ( | ) |
VmTable::delete | ( | $oid = null , |
|
$where = 0 |
|||
) |
VmTable::emptyCache | ( | ) |
VmTable::encryptFields | ( | ) |
Typo, had wrong name
VmTable::fixOrdering | ( | $where = '' | ) |
Description will make sure that all items in the table are not using the same ordering values
VmTable::getCryptedFields | ( | ) |
VmTable::getDbo | ( | ) |
VmTable::getError | ( | ) |
VmTable::getErrors | ( | ) |
|
static |
Static method to get an instance of a JTable class if it can be found in the table include paths. To add include paths for searching for JTable classes
string | $type | The type (name) of the JTable class to get an instance of. |
string | $prefix | An optional prefix for the table class name. |
array | $config | An optional array of configuration values for the JTable object. |
VmTable::getKeyName | ( | $multiple = false | ) |
VmTable::getLoaded | ( | ) |
VmTable::getMysqlVersion | ( | ) |
VmTable::getNextOrder | ( | $where = '' , |
|
$orderingkey = 0 |
|||
) |
Returns the ordering value to place a new item last in its group
public
string | query WHERE clause for selecting MAX(ordering). |
VmTable::getPKey | ( | ) |
VmTable::getProperties | ( | $public = true | ) |
Returns an associative array of object properties.
boolean | $public | If true, returns only the public properties. |
VmTable::getRules | ( | ) |
Method to get the rules for the record.
VmTable::getTranslatableFields | ( | ) |
VmTable::hashEntry | ( | $set = true | ) |
VmTable::integrity | ( | ) |
|
static |
Check if an item is checked out
This function can be used as a static function too, when you do so you need to also provide the a value for the $against parameter.
public
integer | $with | The userid to preform the match with, if an item is checked out by this user the function will return false |
integer | $against | The userid to perform the match against when the function is used as a static function. |
VmTable::isMysql51Plus | ( | ) |
VmTable::load | ( | $oid = null , |
|
$overWriteLoadName = 0 , |
|||
$andWhere = 0 , |
|||
$tableJoins = array() , |
|||
$joinKey = 0 |
|||
) |
Technic to inject params as table attributes
VmTable::loadFields | ( | ) |
VmTable::loadFieldValues | ( | $array = true | ) |
VmTable::move | ( | $dirn, | |
$where = '' , |
|||
$orderingkey = 0 |
|||
) |
Description
$dirn | |
$where |
VmTable::reorder | ( | $where = '' , |
|
$orderingkey = 0 |
|||
) |
Compacts the ordering sequence of the selected records
public
string | Additional where query to limit ordering to a particular subset of records |
VmTable::reset | ( | ) |
VmTable::resetErrors | ( | ) |
VmTable::save | ( | $src, | |
$orderingFilter = '' , |
|||
$ignore = '' |
|||
) |
Method to provide a shortcut to binding, checking and storing a JTable instance to the database table. The method will check a row in once the data has been stored and if an ordering filter is present will attempt to reorder the table rows based on the filter. The ordering filter is an instance property name. The rows that will be reordered are those whose value matches the JTable instance for the property specified.
mixed | $src | An associative array or object to bind to the JTable instance. |
string | $orderingFilter | Filter for the order updating |
mixed | $ignore | An optional array or space separated list of properties to ignore while binding. |
VmTable::setCheckVendorId | ( | ) |
VmTable::setCryptedFields | ( | $fieldNames | ) |
Sets fields encrypted
$fieldNames |
VmTable::setHashable | ( | $key | ) |
VmTable::setLanguage | ( | $tag | ) |
VmTable::setLockable | ( | ) |
VmTable::setLoggable | ( | ) |
VmTable::setLoggableFieldsForStore | ( | ) |
Function setting the loggable data hack procted In case you want to override the value for administrators, just set the created_on to "0000-00-00 00:00:00"
VmTable::setObligatoryKeys | ( | $key | ) |
VmTable::setOmittedHashFields | ( | array | $fields | ) |
VmTable::setOrderable | ( | $key = 'ordering' , |
|
$auto = true |
|||
) |
VmTable::setParameterable | ( | $paramsFieldName, | |
$varsToPushParam, | |||
$overwrite = false |
|||
) |
This function defines a database field as parameter field, which means that some values get injected there As delimiters are used | for the pair and = for key, value
string | $paramsFieldName | |
string | $varsToPushParam | |
boolean | $overwrite |
VmTable::setPrimaryKey | ( | $key, | |
$keyForm = 0 |
|||
) |
VmTable::setRules | ( | $input | ) |
Method to set rules for the record.
mixed | $input | A JAccessRules object, JSON string, or array. |
VmTable::setSlug | ( | $slugAutoName, | |
$key = 'slug' |
|||
) |
VmTable::setTableShortCut | ( | $prefix | ) |
VmTable::setTranslatable | ( | $langFields | ) |
VmTable::setUniqueName | ( | $name | ) |
VmTable::showFullColumns | ( | $typeKey = 0 , |
|
$typeValue = 0 , |
|||
$properties = true |
|||
) |
Gives Back the columns of the current table, sets the properties on the table.
int | $typeKey | use "Field" to get the effect of getTableColumns |
int | $typeValue | use "Type" to get the effect of getTableColumns |
bool | $properties | disable setting of columns as table properties |
VmTable::store | ( | $updateNulls = false | ) |
Derived from JTable Records in this table do not need to exist, so we might need to create a record even if the primary key is set. Therefore we need to overload the store() function. Technic to inject params as table attributes and to encrypt data
VmTable::storeParams | ( | ) |
VmTable::toggle | ( | $field, | |
$val = NULL |
|||
) |
toggle (0/1) a field or invert by $val
string | $field | the field to toggle |
boolean | $val | field value (0/1) |
|
staticprotected |
VmTable::$_cryptedFields = false |
|
protected |
|
protected |
|
protected |
|
private |
VmTable::$_loaded = false |
VmTable::$_loadedWithLangFallback = 0 |
|
protected |
|
protected |
VmTable::$_ltmp = false |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
VmTable::$_tablePreFix = '' |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
VmTable::$_translatable = false |
|
protected |
|
protected |
|
protected |
|
protected |
VmTable::$_varsToPushParam = array() |
VmTable::$_xParams = 0 |