- Class name: CategoryCore
- Parent class: ObjectModel
- Source: classes/Category.php line 28
- $_links
- $active
- $date_add
- $date_upd
- $definition
- $description
- $groupBox
- $id
- $id_category
- $id_image
- $id_parent
- $level_depth
- $link_rewrite
- $meta_description
- $meta_keywords
- $meta_title
- $name
- $nleft
- $nright
- $position
- $webserviceParameters
- $def
- $fieldsRequired
- $fieldsRequiredDatabase
- $fieldsRequiredLang
- $fieldsSize
- $fieldsSizeLang
- $fieldsValidate
- $fieldsValidateLang
- $id_lang
- $id_shop
- $identifier
- $image_dir
- $image_format
- $table
- $tables
- __construct
- _subTree
- add
- addFieldsRequiredDatabase
- addGroups
- addGroupsIfNoExist
- associateTo
- calcLevelDepth
- categoryExists
- checkAccess
- checkBeforeMove
- cleanGroups
- cleanPositions
- clearCache
- delete
- deleteImage
- deleteSelection
- displayFieldName
- duplicateProductCategories
- duplicateShops
- existsInDatabase
- formatFields
- formatValue
- getAllChildren
- getCategories
- getCategoryInformations
- getChildren
- getChildrenWithNbSelectedSubCat
- getChildrenWs
- getDefinition
- getDescriptionClean
- getDuplicatePosition
- getEntity
- getFields
- getFieldsLang
- getFieldsRequiredDatabase
- getGroups
- getHomeCategories
- getInterval
- getLastPosition
- getLink
- getLinkRewrite
- getName
- getParentsCategories
- getProducts
- getProductsWs
- getRootCategory
- getSimpleCategories
- getSubCategories
- getTranslationsFields
- getUrlRewriteInformations
- getValidationRules
- getWebserviceObjectList
- getWebserviceParameters
- getWsNbProductsRecursive
- hydrate
- hydrateCollection
- inShop
- isAssociatedToGroupShop
- isAssociatedToShop
- isCurrentlyUsed
- isLangMultishop
- makeTranslationFields
- recalculateLevelDepth
- recurseCategory
- recurseLiteCategTree
- recursiveDelete
- regenerateEntireNtree
- save
- searchByName
- searchByNameAndParentCategoryId
- setDefinitionRetrocompatibility
- setNewGroupForHome
- toggleStatus
- update
- updateGroup
- updatePosition
- validateControler
- validateController
- validateField
- validateFields
- validateFieldsLang
protected mixed $_links = array()
- Visibility: protected
- This property is static.
- Source: classes/Category.php line 79.
public boolean $active = 1
- Visibility: public
- Source: classes/Category.php line 39.
public string $date_add
- Visibility: public
- Source: classes/Category.php line 72.
public string $date_upd
- Visibility: public
- Source: classes/Category.php line 75.
public mixed $definition = array('table' => 'category', 'primary' => 'id_category', 'multilang' => true, 'multishop' => true, 'fields' => array('nleft' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'nright' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'level_depth' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true), 'id_parent' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'position' => array('type' => self::TYPE_INT), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'), 'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCatalogName', 'required' => true, 'size' => 64), 'link_rewrite' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isLinkRewrite', 'required' => true, 'size' => 64), 'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isString'), 'meta_title' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 128), 'meta_description' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 255), 'meta_keywords' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 255)))
- Visibility: public
- This property is static.
- Source: classes/Category.php line 84.
public string $description
- Visibility: public
- Source: classes/Category.php line 45.
public mixed $groupBox
- Visibility: public
- Source: classes/Category.php line 77.
public mixed $id
- Visibility: public
- Source: classes/Category.php line 30.
public integer $id_category
- Visibility: public
- Source: classes/Category.php line 33.
public string $id_image = 'default'
- Visibility: public
- Source: classes/Category.php line 110.
public integer $id_parent
- Visibility: public
- Source: classes/Category.php line 48.
public integer $level_depth
- Visibility: public
- Source: classes/Category.php line 51.
public string $link_rewrite
- Visibility: public
- Source: classes/Category.php line 60.
public string $meta_description
- Visibility: public
- Source: classes/Category.php line 69.
public string $meta_keywords
- Visibility: public
- Source: classes/Category.php line 66.
public string $meta_title
- Visibility: public
- Source: classes/Category.php line 63.
public string $name
- Visibility: public
- Source: classes/Category.php line 36.
public integer $nleft
- Visibility: public
- Source: classes/Category.php line 54.
public integer $nright
- Visibility: public
- Source: classes/Category.php line 57.
public integer $position
- Visibility: public
- Source: classes/Category.php line 42.
protected mixed $webserviceParameters = array('objectsNodeName' => 'categories', 'hidden_fields' => array('nleft', 'nright', 'groupBox'), 'fields' => array('id_parent' => array('xlink_resource' => 'categories'), 'level_depth' => array('setter' => false), 'nb_products_recursive' => array('getter' => 'getWsNbProductsRecursive', 'setter' => false)), 'associations' => array('categories' => array('getter' => 'getChildrenWs', 'resource' => 'category'), 'products' => array('getter' => 'getProductsWs', 'resource' => 'product')))
- Visibility: protected
- Source: classes/Category.php line 112.
protected array $def
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 122.
protected mixed $fieldsRequired = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 72.
protected mixed $fieldsRequiredDatabase = null
- Visibility: protected
- This property is static.
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 57.
protected mixed $fieldsRequiredLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 87.
protected mixed $fieldsSize = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 77.
protected mixed $fieldsSizeLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 92.
protected mixed $fieldsValidate = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 82.
protected mixed $fieldsValidateLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 97.
protected integer $id_lang = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 51.
protected mixed $id_shop = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 53.
protected mixed $identifier
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 67.
protected string $image_dir = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 108.
protected string $image_format = 'jpg'
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 111.
protected mixed $table
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 62.
protected mixed $tables = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 102.
mixed CategoryCore::__construct($id_category, $id_lang, $id_shop)
- Visibility: public
- Source: classes/Category.php line 126
- $id_category mixed
- $id_lang mixed
- $id_shop mixed
mixed CategoryCore::_subTree($categories, $id_category, $n)
- Visibility: protected
- This method is static.
- Source: classes/Category.php line 375
- $categories mixed
- $id_category mixed
- $n mixed
mixed CategoryCore::add($autodate, $nullValues)
- Visibility: public
- Source: classes/Category.php line 143
- $autodate mixed
- $nullValues mixed
mixed ObjectModelCore::addFieldsRequiredDatabase($fields)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 961
- $fields mixed
mixed CategoryCore::addGroups($groups)
- Visibility: public
- Source: classes/Category.php line 917
- $groups mixed
mixed CategoryCore::addGroupsIfNoExist($id_group)
- Visibility: public
- Source: classes/Category.php line 939
- $id_group mixed
boolean ObjectModelCore::associateTo(integer|array $id_shops, string $type)
This function associate an item to its context
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1009
- $id_shops integer|array
- $type string
integer CategoryCore::calcLevelDepth()
Get the depth level for the category
- Visibility: public
- Source: classes/Category.php line 350
boolean CategoryCore::categoryExists($id_category)
Specify if a category already in base
- Visibility: public
- This method is static.
- Source: classes/Category.php line 902
- $id_category mixed - Category id
boolean CategoryCore::checkAccess(mixed $id_customer)
checkAccess return true if id_customer is in a group allowed to see this category.
- Visibility: public
- Source: classes/Category.php line 955
- $id_customer mixed
boolean CategoryCore::checkBeforeMove(integer $id_category, integer $id_parent)
Check if category can be moved in another one.
The category cannot be moved in a child category.
- Visibility: public
- This method is static.
- Source: classes/Category.php line 760
- $id_category integer - current category
- $id_parent integer - Parent candidate
mixed CategoryCore::cleanGroups()
- Visibility: public
- Source: classes/Category.php line 912
boolean CategoryCore::cleanPositions(mixed $id_category_parent)
cleanPositions keep order of category in $id_category_parent, but remove duplicate position. Should not be used if positions are clean at the beginning !
- Visibility: public
- This method is static.
- Source: classes/Category.php line 1044
- $id_category_parent mixed
mixed ObjectModelCore::clearCache($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 975
- $all mixed
mixed CategoryCore::delete()
- Visibility: public
- Source: classes/Category.php line 265
boolean ObjectModelCore::deleteImage()
Delete images associated with the object
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1079
mixed CategoryCore::deleteSelection($categories)
Delete several categories from database
return boolean Deletion result
- Visibility: public
- Source: classes/Category.php line 334
- $categories mixed
mixed ObjectModelCore::displayFieldName($field, $className, $htmlentities, \Context $context)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 740
- $field mixed
- $className mixed
- $htmlentities mixed
- $context Context
boolean CategoryCore::duplicateProductCategories(integer $id_old, boolean $id_new)
Copy products from a category to another
- Visibility: public
- This method is static.
- Source: classes/Category.php line 729
- $id_old integer - Source category ID
- $id_new boolean - Destination category ID
mixed ObjectModelCore::duplicateShops($id)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1049
- $id mixed
boolean ObjectModelCore::existsInDatabase(integer $id_entity, string $table)
Specify if an ObjectModel is already in database
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1113
- $id_entity integer
- $table string
array ObjectModelCore::formatFields(integer $id_lang)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 272
- $id_lang integer - If this parameter is given, only take lang fields
mixed ObjectModelCore::formatValue(mixed $value, integer $type, $with_quotes)
Format a data
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 319
- $value mixed
- $type integer
- $with_quotes mixed
\Collection CategoryCore::getAllChildren(integer $id_lang)
Return an array of all children of the current category
- Visibility: public
- Source: classes/Category.php line 678
- $id_lang integer
array CategoryCore::getCategories(integer $id_lang, boolean $active, $order, $sql_filter, $sql_sort, $sql_limit)
Return available categories
- Visibility: public
- This method is static.
- Source: classes/Category.php line 428
- $id_lang integer - Language ID
- $active boolean - return only active categories
- $order mixed
- $sql_filter mixed
- $sql_sort mixed
- $sql_limit mixed
Array CategoryCore::getCategoryInformations(Array $ids_category, integer $id_lang)
- Visibility: public
- This method is static.
- Source: classes/Category.php line 1178
- $ids_category Array
- $id_lang integer
array CategoryCore::getChildren(integer $id_parent, integer $id_lang, boolean $active)
- Visibility: public
- This method is static.
- Source: classes/Category.php line 657
- $id_parent integer
- $id_lang integer
- $active boolean
array CategoryCore::getChildrenWithNbSelectedSubCat(integer $id_parent, $selected_cat, integer $id_lang, \Shop $shop)
This method allow to return children categories with the number of sub children selected for a product
- Visibility: public
- This method is static.
- Source: classes/Category.php line 697
- $id_parent integer
- $selected_cat mixed
- $id_lang integer
- $shop Shop
mixed CategoryCore::getChildrenWs()
- Visibility: public
- Source: classes/Category.php line 1123
mixed ObjectModelCore::getDefinition($class, $field)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1209
- $class mixed
- $field mixed
string CategoryCore::getDescriptionClean($description)
Allows to display the category description without HTML tags and slashes
- Visibility: public
- This method is static.
- Source: classes/Category.php line 138
- $description mixed
array CategoryCore::getDuplicatePosition()
Search for another category with the same parent and the same position
- Visibility: public
- Source: classes/Category.php line 1149
mixed ObjectModelCore::getEntity($entity)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1269
- $entity mixed
array ObjectModelCore::getFields()
Prepare fields for ObjectModel class (add, update) All fields are verified (pSQL, intval.
..)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 234
array ObjectModelCore::getFieldsLang()
Prepare multilang fields
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 249
mixed ObjectModelCore::getFieldsRequiredDatabase($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 953
- $all mixed
mixed CategoryCore::getGroups()
- Visibility: public
- Source: classes/Category.php line 926
array CategoryCore::getHomeCategories(integer $id_lang, boolean $active)
Return main categories
- Visibility: public
- This method is static.
- Source: classes/Category.php line 635
- $id_lang integer - Language ID
- $active boolean - return only active categories
array CategoryCore::getInterval(integer $id)
Return nleft and nright fields for a given category
- Visibility: public
- This method is static.
- Source: classes/Category.php line 1096
- $id integer
integer CategoryCore::getLastPosition(integer $id_category_parent)
this function return the number of category + 1 having $id_category_parent as parent.
- Visibility: public
- This method is static.
- Source: classes/Category.php line 1073
- $id_category_parent integer - the parent category
mixed CategoryCore::getLink(\Link $link)
- Visibility: public
- Source: classes/Category.php line 794
- $link Link
mixed CategoryCore::getLinkRewrite($id_category, $id_lang)
- Visibility: public
- This method is static.
- Source: classes/Category.php line 776
- $id_category mixed
- $id_lang mixed
mixed CategoryCore::getName($id_lang)
- Visibility: public
- Source: classes/Category.php line 801
- $id_lang mixed
array CategoryCore::getParentsCategories(integer $id_lang)
Get Each parent category of this category until the root category
- Visibility: public
- Source: classes/Category.php line 871
- $id_lang integer - Language ID
mixed CategoryCore::getProducts(integer $id_lang, integer $p, integer $n, $order_by, $order_way, boolean $get_total, boolean $active, boolean $random, integer $random_number_products, boolean $check_access, \Context $context)
Return current category products
- Visibility: public
- Source: classes/Category.php line 515
- $id_lang integer - Language ID
- $p integer - Page number
- $n integer - Number of products per page
- $order_by mixed
- $order_way mixed
- $get_total boolean - return the number of results instead of the results themself
- $active boolean - return only active products
- $random boolean - active a random filter for returned products
- $random_number_products integer - number of products to return if random is activated
- $check_access boolean - set to false to return all products (even if customer hasn't access)
- $context Context
mixed CategoryCore::getProductsWs()
- Visibility: public
- Source: classes/Category.php line 1134
mixed CategoryCore::getRootCategory($id_lang, \Shop $shop)
- Visibility: public
- This method is static.
- Source: classes/Category.php line 640
- $id_lang mixed
- $shop Shop
mixed CategoryCore::getSimpleCategories($id_lang)
- Visibility: public
- This method is static.
- Source: classes/Category.php line 453
- $id_lang mixed
array CategoryCore::getSubCategories(integer $id_lang, boolean $active)
Return current category childs
- Visibility: public
- Source: classes/Category.php line 471
- $id_lang integer - Language ID
- $active boolean - return only active categories
mixed ObjectModelCore::getTranslationsFields($fieldsArray)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 589
- $fieldsArray mixed
mixed CategoryCore::getUrlRewriteInformations($id_category)
- Visibility: public
- This method is static.
- Source: classes/Category.php line 1078
- $id_category mixed
array ObjectModelCore::getValidationRules(string $className)
Returns object validation rules (fields validity)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 130
- $className string - Child class name for static use (optional)
mixed ObjectModelCore::getWebserviceObjectList($sql_join, $sql_filter, $sql_sort, $sql_limit)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 929
- $sql_join mixed
- $sql_filter mixed
- $sql_sort mixed
- $sql_limit mixed
mixed ObjectModelCore::getWebserviceParameters($wsParamsAttributeName)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 799
- $wsParamsAttributeName mixed
mixed CategoryCore::getWsNbProductsRecursive()
- Visibility: public
- Source: classes/Category.php line 1159
mixed ObjectModelCore::hydrate(array $data, integer $id_lang)
Fill an object with given data. Data must be an array with this syntax: array(objProperty => value, objProperty2 => value, etc.)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1148
- $data array
- $id_lang integer
array ObjectModelCore::hydrateCollection(string $class, array $datas, integer $id_lang)
Fill (hydrate) a list of objects in order to get a collection of these objects
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1167
- $class string - Class of objects to hydrate
- $datas array - List of data (multi-dimensional array)
- $id_lang integer
boolean CategoryCore::inShop(\Shop $shop)
Check if current category is a child of shop root category
- Visibility: public
- Source: classes/Category.php line 1113
- $shop Shop
boolean ObjectModelCore::isAssociatedToGroupShop(integer $id_group_shop)
Check if current object is associated to a group shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1035
- $id_group_shop integer
boolean ObjectModelCore::isAssociatedToShop(integer $id_shop)
Check if current object is associated to a shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 990
- $id_shop integer
boolean ObjectModelCore::isCurrentlyUsed(string $table, boolean $has_active_column)
This method is allow to know if a entity is currently used
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1131
- $table string - name of table linked to entity
- $has_active_column boolean - true if the table has an active column
mixed ObjectModelCore::isLangMultishop()
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1069
mixed ObjectModelCore::makeTranslationFields($fields, $fieldsArray, $id_language)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 605
- $fields mixed
- $fieldsArray mixed
- $id_language mixed
mixed CategoryCore::recalculateLevelDepth(integer $id_category)
Updates level_depth for all children of the given id_category
- Visibility: public
- Source: classes/Category.php line 395
- $id_category integer - parent category
mixed CategoryCore::recurseCategory($categories, $current, $id_category, $id_selected)
- Visibility: public
- This method is static.
- Source: classes/Category.php line 233
- $categories mixed
- $current mixed
- $id_category mixed
- $id_selected mixed
array CategoryCore::recurseLiteCategTree(integer $max_depth, integer $current_depth, integer $id_lang, array $excluded_ids_array)
Recursive scan of subcategories
- Visibility: public
- Source: classes/Category.php line 203
- $max_depth integer - Maximum depth of the tree (i.e. 2 => 3 levels depth)
- $current_depth integer - specify the current depth in the tree (don't use it, only for rucursivity!)
- $id_lang integer - Specify the id of the language used
- $excluded_ids_array array - specify a list of ids to exclude of results
mixed CategoryCore::recursiveDelete($to_delete, array $id_category)
Recursively add specified category childs to $to_delete array
- Visibility: protected
- Source: classes/Category.php line 249
- $to_delete mixed
- $id_category array - Parent category ID
mixed CategoryCore::regenerateEntireNtree()
Re-calculate the values of all branches of the nested tree
- Visibility: public
- This method is static.
- Source: classes/Category.php line 365
boolean ObjectModelCore::save(boolean $null_values, boolean $autodate)
Save current object to database (add or update)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 360
- $null_values boolean
- $autodate boolean
array CategoryCore::searchByName(integer $id_lang, string $query, boolean $unrestricted)
Light back office search for categories
- Visibility: public
- This method is static.
- Source: classes/Category.php line 821
- $id_lang integer - Language ID
- $query string - Searched string
- $unrestricted boolean - allows search without lang and includes first category and exact match
array CategoryCore::searchByNameAndParentCategoryId(integer $id_lang, string $category_name, integer $id_parent_category)
Retrieve category by name and parent category id
- Visibility: public
- This method is static.
- Source: classes/Category.php line 851
- $id_lang integer - Language ID
- $category_name string - Searched category name
- $id_parent_category integer - parent category ID
mixed ObjectModelCore::setDefinitionRetrocompatibility()
Retrocompatibility for classes without $definition static Remove this in 1.6 !
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1224
mixed CategoryCore::setNewGroupForHome($id_group)
- Visibility: public
- This method is static.
- Source: classes/Category.php line 991
- $id_group mixed
mixed CategoryCore::toggleStatus()
- Visibility: public
- Source: classes/Category.php line 186
void CategoryCore::update(mixed $nullValues)
update category positions in parent
- Visibility: public
- Source: classes/Category.php line 162
- $nullValues mixed
mixed CategoryCore::updateGroup(array $list)
Update customer groups associated to the object
- Visibility: public
- Source: classes/Category.php line 982
- $list array - groups
mixed CategoryCore::updatePosition($way, $position)
- Visibility: public
- Source: classes/Category.php line 1001
- $way mixed
- $position mixed
mixed ObjectModelCore::validateControler($htmlentities)
TODO: refactor rename all calls to this to validateController
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 753
- $htmlentities mixed
mixed ObjectModelCore::validateController($htmlentities)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 759
- $htmlentities mixed
boolean|string ObjectModelCore::validateField(string $field, mixed $value, integer $id_lang)
Validate a single field
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 704
- $field string - Field name
- $value mixed - Field value
- $id_lang integer
boolean|string ObjectModelCore::validateFields(boolean $die, boolean $error_return)
Check for fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 643
- $die boolean
- $error_return boolean
boolean|string ObjectModelCore::validateFieldsLang(boolean $die, boolean $error_return)
Check for multilingual fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 669
- $die boolean
- $error_return boolean