Back to Phoca Cart project (class list)

Class PhocacartAttribute - list of methods

Copyright: Copyright (C) Jan Pavelka https://www.phoca.cz
License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 and later
Located at: Phocacart/attribute/attribute.php
Project: Phoca Cart

Method Summary

public static
(mixed $productId, mixed $return = 0)

Show source code of this method: getAttributesById Source Code

public static
(mixed $attributeId, mixed $return = 0)

Show source code of this method: getOptionsById Source Code

public static
(mixed $returnId = 0, mixed $returnValue = 0, mixed $returnFull = 0)

Show source code of this method: getTypeArray Source Code

public static
(mixed $type, mixed $typeOption = 0)

Show source code of this method: getAttributeLength Source Code

public static
(mixed $type, mixed $value, mixed $encoded = false, mixed $display = false, mixed $typeOption = 0)

Show source code of this method: setAttributeValue Source Code

public static
()

Show source code of this method: getRequiredArray Source Code

public static
()

Show source code of this method: getOperatorArray Source Code

public static
(mixed $productId, mixed $attributesArray, mixed $new = 0, mixed $copy = 0)

Parameters
  • $productId
  • $attributesArray
  • int $new
  • int $copy used by BATCH and COPY ATTRIBUTES - if copy == 1 then only create new tokens, if copy == 2 then create new tokens and create folder and copy the files from source
-
  • \Exception
Show source code of this method: storeAttributesById Source Code

public static
(mixed $folderFiles, mixed $pathAttributes)

Show source code of this method: removeDownloadFolderAndFiles Source Code

public static
(mixed $productId)

Show source code of this method: getAttributesAndOptions Source Code

public static
(mixed $ordering = 1, mixed $onlyAvailableProducts = 0, mixed $lang = '', mixed $filterProducts = array())

Show source code of this method: getAllAttributesAndOptions Source Code

public static
(mixed $id, mixed $attributeId)

Show source code of this method: getAttributeValue Source Code

public static
(mixed $attributes)

Show source code of this method: getAttributeFullValues Source Code

public static
(mixed $productId)

Show source code of this method: getAllRequiredAttributesByProduct Source Code

public static
(mixed $id, mixed $attributes)

Show source code of this method: checkRequiredAttributes Source Code

public static
(mixed $type)

Show source code of this method: isMultipleAttribute Source Code

public static
(mixed $attributes)

Show source code of this method: getAttributesSelectedOnly Source Code

public static
(mixed $attributes)

Show source code of this method: getAttributesSanitizeOptionArray Source Code

public static
(mixed $attribute)

Show source code of this method: sanitizeAttributeArray Source Code

public static
(mixed $array, mixed $requiredArray)

Show source code of this method: makeCombination Source Code

public static
(mixed $id, mixed $title, mixed $attributes, mixed &$combinations = array())

Show source code of this method: getCombinations Source Code

public static
(mixed $id)

Show source code of this method: getCombinationsDataByProductId Source Code

public static
(mixed $productKey)

Show source code of this method: getCombinationsDataByKey Source Code

public static
(mixed $productKey)

Show source code of this method: getCombinationsStockByKey Source Code

public static
(mixed $productKey)

Show source code of this method: getCombinationsPriceByKey Source Code

public static
(mixed $productId, mixed $returnArray = 0)

Show source code of this method: getCombinationsStockById Source Code

public static
(mixed $productId, mixed $aosArray, mixed $new = 0)

Show source code of this method: storeCombinationsById Source Code

public static
(mixed $id)

Show source code of this method: getAttributeType Source Code

public static
(mixed $id)

Show source code of this method: getOptionType Source Code

public static
(mixed $orderId, mixed $productId, mixed $orderProductId)

public static
(mixed $items, mixed $ordering)

Show source code of this method: getActiveAttributeValues Source Code