Public Member Functions | |
| getCategoriesForProductFromDB ($pUid) | |
| getAttributesForProduct ($pUid, $separateCT1=false, $addAttributeData=false, $getValueListData=false) | |
| getParentCategories ($cUid, &$cUidList, $dontAdd=0, $excludeUid=0, $recursive=true) | |
| getChildCategories ($cUid, &$cUidList, $dontAdd=0, $excludeUid=0, $recursive=true) | |
| getParentCategoriesFromList (&$cUidList) | |
| getCategoryData ($cUid, $select= '*', $groupBy= '', $orderBy= '') | |
| getAttributesForCategoryList ($catList, $ct=NULL, $uidField= 'uid', $excludeAttributes=array()) | |
| getAttributesForCategory ($cUid, $ct=NULL, $excludeAttributes=NULL, $uidField= 'uid') | |
| getAttributeTitle ($aUid) | |
| getAttributeTitles ($attributeList, $uidField= 'uid') | |
| getAttributeData ($aUid, $select= '*') | |
| getAttributeValue ($pUid, $aUid, $relationTable, $relationData=NULL, $attributeData=NULL) | |
| getCtForAttributeOfProduct ($aUid, $pUid) | |
| getArticlesOfProduct ($pUid, $additionalWhere= '', $orderBy= '') | |
| getProductOfArticle ($aUid, $getProductData= '*') | |
| getAttributesForArticle ($aUid, $ct=NULL, $excludeAttributes=NULL) | |
| getArticleHash ($aUid, $fullAttributeList) | |
| updateArticleHash ($aUid, $fullAttributeList=NULL) | |
| isNumber ($data) | |
| getUidFromKey ($key, &$keyData) | |
| checkArray ($needle, $array, $field) | |
| enableFields ($table, $getDeleted=false) | |
| getUidListFromList ($list) | |
| saveRelations ($uid_local, $relationData, $relationTable, $delete=false, $withReference=true) | |
| getAllCorrelationTypes () | |
| updateArticleXML ($articleRelations, $add=false, $articleUid=NULL, $productUid=NULL) | |
| updateXML ($xmlField, $table, $uid, $type, $ctList) | |
| mergeAttributeListFromFFData ($ffData, $prefix, $ctList, $uid_local, &$paList) | |
| extractFieldArray ($array, $field, $makeArray=false, $extraFields=array()) | |
| getProductsOfCategory ($cUid) | |
| getUpdateData ($attributeData, $data, $productUid= '') | |
| buildLocalisedAttributeValues ($flexValue, $langIdent) | |
| savePriceFlexformWithArticle ($priceUid, $articleUid, $priceDataArray) | |
| getOrderFolderSelector ($pid, $levels, $aktLevel=0) | |
| updatePriceXMLFromDatabase ($articleUid) | |
| fix_articles_price ($article_uid=0) | |
| fix_product_atributte ($product_uid=0) | |
| fix_category_atributte ($category_uid=0) | |
|
||||||||||||
|
Builds the lokalised Array for the attribute Felxform
|
|
||||||||||||||||
|
Searches for a string in an array of arrays.
|
|
||||||||||||
|
Returns the "enable fields" for a sql query.
|
|
||||||||||||||||||||
|
Extracts a fieldvalue from an associative array.
|
|
|
This makes the Xml to draw the price form of an article Call this function if you have imported data to the database and havn't updated the Flexform
|
|
|
This makes the Xml for the categoryt Attributes Call thos function if you have imported data to the database and havn't updated the Flexform
|
|
|
This makes the Xml for the product Attributes Call thos function if you have imported data to the database and havn't updated the Flexform
|
|
|
Get all existing correlation types.
|
|
||||||||||||
|
Returns the hash value for the ct1 select attributes for an article.
|
|
||||||||||||||||
|
Return all articles that where created from a given product.
|
|
||||||||||||
|
Returns the complete dataset of an attribute. You can select which fields should be fetched from the database.
|
|
||||||||||||||||
|
Returns all attributes for an article
|
|
||||||||||||||||||||
|
This fetches all attributes that are assigned to a category.
|
|
||||||||||||||||||||
|
Returns all attributes for a list of categories.
|
|
||||||||||||||||||||
|
Fetches all attribute relation from the database that are assigned to a product specified through pUid. It can also fetch information about the attribute and a list of attribute values if the attribute has a valuelist.
|
|
|
Returns the title of an attribute.
|
|
||||||||||||
|
Returns a list of Titles for a list of attributes.
|
|
||||||||||||||||||||||||
|
This fetches the value for an attribute. It fetches the "default_value" from the table if the attribute has no valuelist, otherwise it fetches the title from the attribute_values table. You can submit only an attribute uid, then the mehod fetches the data from the databse itself, or you submit the data from the relation table and the data from the attribute table if this data is already present.
|
|
|
This gets all categories for a product from the database.
|
|
||||||||||||||||||||
|
Returns an array with the data for a single category.
|
|
||||||||||||||||||||||||
|
Get all categories that have this one as parent.
|
|
||||||||||||
|
Returns the correlationtype of a special attribute inside a product.
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
Fetch all parent categories for a given category.
|
|
|
Get all parent categories for a list of given categories. This method calls the "getParentCategories" method. That one will work recursive. The result will be written into the argument cUidList.
|
|
||||||||||||
|
Returns the product from which an article was created.
|
|
|
Return all productes that are related to a category.
|
|
||||||||||||
|
This method returns the last part of a string. It splits up the string at the underscores. If the key doesn't contain any underscores, it returns the intval of the key.
|
|
|
Returns a list of UID from a list of strings that contains UIDs.
|
|
||||||||||||||||
|
Retruns and array for the UPDATEquery method. It fills different arrays with an attribute value. This wraper is needed because the fields have different names in different tables. I know that's stupid but this is a fact... :-/
|
|
|
proofs if there are non numeric chars in it
|
|
||||||||||||||||||||||||
|
Merges an attribute list from a flexform together into one array.
|
|
||||||||||||||||
|
save Price-Flexform with given Article-UID
|
|
||||||||||||||||||||||||
|
Saves all relations between two tables. For example all relations between products and articles.
|
|
||||||||||||
|
Updates an article and recalculates the hash value for the assigned attributes.
|
|
||||||||||||||||||||
|
Updates the XML of an article. This is neccessary because if we change anything in a category we also change all related products and articles. This has to be done in two steps. At first we have to update the relations in the database. But if we do so, the user won't recognize the changes in the backend because of the usage of flexforms. So this method, updates all the flexform value data in the database for the articles we change.
|
|
|
update Flexform XML from Database
|
|
||||||||||||||||||||||||
|
Updates the XML of an FlexForm value field. This is almost the same as "updateArticleXML" but more general.
|
1.4.4