Site logo file
API
Search
Phoca.cz Main Site
Phoca Cart
Phoca Cart Demo
Search
Search
Advanced Search
Projects
Joomla
Phoca Cart
Phoca Gallery
Phoca Download
Classes
PhocacartAccess
PhocacartAccessRights
PhocacartAttribute
PhocacartCalculation
PhocacartCaptcha
PhocacartCaptchaRecaptcha
PhocacartCart
PhocacartCartCalculation
PhocacartCartDb
PhocacartCartRendercart
PhocacartCartRendercheckout
PhocacartCategory
PhocacartCategoryMultiple
PhocacartCompare
PhocacartCount
PhocacartCountry
PhocacartCoupon
PhocacartCurrency
PhocacartDate
PhocacartDiscountCart
PhocacartDiscountProduct
PhocacartDownload
PhocacartEdit
PhocacartEmail
PhocacartEmailFactory
PhocacartEmailMail
PhocacartFeed
PhocacartFile
PhocacartFileAdditional
PhocacartFileThumbnail
PhocacartFileUpload
PhocacartFileUploadmultiple
PhocacartFileUploadsingle
PhocacartFilter
PhocacartFormItems
PhocacartFormUser
PhocacartGroup
PhocacartHtmlBatch
PhocacartHtmlFeatured
PhocacartHtmlGrid
PhocacartHtmlJgrid
PhocacartId
PhocacartImage
PhocacartImageAdditional
PhocacartImageMagic
PhocacartLanguage
PhocacartLog
PhocacartManufacturer
PhocacartNewsletter
PhocacartOrder
PhocacartOrderCalculation
PhocacartOrdering
PhocacartOrderRender
PhocacartOrderStatus
PhocacartOrderView
PhocacartPagination
PhocacartParameter
PhocacartPath
PhocacartPayment
PhocacartPdf
PhocacartPlugin
PhocacartPos
PhocacartPosPrint
PhocacartPrice
PhocacartPriceBulkprice
PhocacartPriceHistory
PhocacartProduct
PhocacartRegion
PhocacartRelated
PhocacartRenderAdmin
PhocacartRenderAdmincolumns
PhocacartRenderAdminjs
PhocacartRenderAdminmedia
PhocacartRenderAdminview
PhocacartRenderAdminviews
PhocacartRenderFront
PhocacartRenderIcon
PhocacartRenderJs
PhocacartRenderMedia
PhocacartRenderStyle
PhocacartReview
PhocacartReward
PhocacartRoute
PhocaCartRouterrules
PhocacartSearch
PhocacartSection
PhocacartSecurity
PhocacartShipping
PhocacartSize
PhocacartSpecification
PhocacartStatistics
PhocacartStatisticsHits
PhocacartStock
PhocacartSubmit
PhocacartTag
PhocacartTax
PhocacartText
PhocacartTicket
PhocacartTime
PhocacartType
PhocacartUnit
PhocacartUser
PhocacartUserGuestuser
PhocacartUtils
PhocacartUtilsAdmindescription
PhocacartUtilsBatchhelper
PhocacartUtilsException
PhocacartUtilsExtension
PhocacartUtilsInfo
PhocacartUtilsOptions
PhocacartUtilsSettings
PhocacartVendor
PhocacartWishlist
PhocacartZone
Methods
getAttributesById
getOptionsById
getTypeArray
getAttributeLength
setAttributeValue
getRequiredArray
getOperatorArray
storeAttributesById
removeDownloadFolderAndFiles
getAttributesAndOptions
getAllAttributesAndOptions
getAttributeValue
getAttributeFullValues
getAllRequiredAttributesByProduct
checkRequiredAttributes
isMultipleAttribute
getAttributesSelectedOnly
getAttributesSanitizeOptionArray
sanitizeAttributeArray
makeCombination
getCombinations
getCombinationsDataByProductId
getCombinationsDataByKey
getCombinationsStockByKey
getCombinationsPriceByKey
getCombinationsStockById
storeCombinationsById
getAttributeType
getOptionType
getAttributeOptionDownloadFilesByOrder
getActiveAttributeValues
You are here:
Home
Phoca Cart
PhocacartAttribute
⇦
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
getAttributesById
(mixed
$productId
, mixed
$return
=
0
)
Show source code of this method:
getAttributesById Source Code
public static
getOptionsById
(mixed
$attributeId
, mixed
$return
=
0
)
Show source code of this method:
getOptionsById Source Code
public static
getTypeArray
(mixed
$returnId
=
0
, mixed
$returnValue
=
0
, mixed
$returnFull
=
0
)
Show source code of this method:
getTypeArray Source Code
public static
getAttributeLength
(mixed
$type
, mixed
$typeOption
=
0
)
Show source code of this method:
getAttributeLength Source Code
public static
setAttributeValue
(mixed
$type
, mixed
$value
, mixed
$encoded
=
false
, mixed
$display
=
false
, mixed
$typeOption
=
0
)
Show source code of this method:
setAttributeValue Source Code
public static
getRequiredArray
()
Show source code of this method:
getRequiredArray Source Code
public static
getOperatorArray
()
Show source code of this method:
getOperatorArray Source Code
public static
storeAttributesById
(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
removeDownloadFolderAndFiles
(mixed
$folderFiles
, mixed
$pathAttributes
)
Show source code of this method:
removeDownloadFolderAndFiles Source Code
public static
getAttributesAndOptions
(mixed
$productId
)
Show source code of this method:
getAttributesAndOptions Source Code
public static
getAllAttributesAndOptions
(mixed
$ordering
=
1
, mixed
$onlyAvailableProducts
=
0
, mixed
$lang
=
''
, mixed
$filterProducts
=
array()
)
Show source code of this method:
getAllAttributesAndOptions Source Code
public static
getAttributeValue
(mixed
$id
, mixed
$attributeId
)
Show source code of this method:
getAttributeValue Source Code
public static
getAttributeFullValues
(mixed
$attributes
)
Show source code of this method:
getAttributeFullValues Source Code
public static
getAllRequiredAttributesByProduct
(mixed
$productId
)
Show source code of this method:
getAllRequiredAttributesByProduct Source Code
public static
checkRequiredAttributes
(mixed
$id
, mixed
$attributes
)
Show source code of this method:
checkRequiredAttributes Source Code
public static
isMultipleAttribute
(mixed
$type
)
Show source code of this method:
isMultipleAttribute Source Code
public static
getAttributesSelectedOnly
(mixed
$attributes
)
Show source code of this method:
getAttributesSelectedOnly Source Code
public static
getAttributesSanitizeOptionArray
(mixed
$attributes
)
Show source code of this method:
getAttributesSanitizeOptionArray Source Code
public static
sanitizeAttributeArray
(mixed
$attribute
)
Show source code of this method:
sanitizeAttributeArray Source Code
public static
makeCombination
(mixed
$array
, mixed
$requiredArray
)
Show source code of this method:
makeCombination Source Code
public static
getCombinations
(mixed
$id
, mixed
$title
, mixed
$attributes
, mixed
&$combinations
=
array()
)
Show source code of this method:
getCombinations Source Code
public static
getCombinationsDataByProductId
(mixed
$id
)
Show source code of this method:
getCombinationsDataByProductId Source Code
public static
getCombinationsDataByKey
(mixed
$productKey
)
Show source code of this method:
getCombinationsDataByKey Source Code
public static
getCombinationsStockByKey
(mixed
$productKey
)
Show source code of this method:
getCombinationsStockByKey Source Code
public static
getCombinationsPriceByKey
(mixed
$productKey
)
Show source code of this method:
getCombinationsPriceByKey Source Code
public static
getCombinationsStockById
(mixed
$productId
, mixed
$returnArray
=
0
)
Show source code of this method:
getCombinationsStockById Source Code
public static
storeCombinationsById
(mixed
$productId
, mixed
$aosArray
, mixed
$new
=
0
)
Show source code of this method:
storeCombinationsById Source Code
public static
getAttributeType
(mixed
$id
)
Show source code of this method:
getAttributeType Source Code
public static
getOptionType
(mixed
$id
)
Show source code of this method:
getOptionType Source Code
public static
getAttributeOptionDownloadFilesByOrder
(mixed
$orderId
, mixed
$productId
, mixed
$orderProductId
)
Show source code of this method:
getAttributeOptionDownloadFilesByOrder Source Code
public static
getActiveAttributeValues
(mixed
$items
, mixed
$ordering
)
Show source code of this method:
getActiveAttributeValues Source Code