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
setVars
getPhocaVersion
getAliasName
setMessage
getInfo
getToken
isURLAddress
round
getRandomString
wordDelete
wordDeleteWhole
strTrimAll
convertEncoding
removeUtf8Bom
getIp
StripHiddenChars
setOptionParameter
setWizard
doesExist
isJCompatible
setConcatCharCount
issetMessage
date
getComponentParameters
replaceCommaWithPoint
getIntFromString
getNullFromEmpty
getDateFromString
getDecimalFromString
getStringFromItem
getDefaultTemplate
cleanExternalHtml
curl_get_contents
addSeparator
isView
isTypeView
isController
validateDate
convertWeightToKg
convertWeightFromKg
getNumberFromText
You are here:
Home
Phoca Cart
PhocacartUtils
⇦
Back to Phoca Cart project (class list)
Class PhocacartUtils - 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/utils/utils.php
Project:
Phoca Cart
Method Summary
public static
setVars
(mixed
$task
=
''
)
Show source code of this method:
setVars Source Code
public static
getPhocaVersion
(mixed
$component
=
'com_phocacart'
)
Show source code of this method:
getPhocaVersion Source Code
public static
getAliasName
(mixed
$alias
)
Show source code of this method:
getAliasName Source Code
public static
setMessage
(mixed
$new
=
''
, mixed
$current
=
''
)
Show source code of this method:
setMessage Source Code
public static
getInfo
(mixed
$mode
=
1
)
Show source code of this method:
getInfo Source Code
public static
getToken
(mixed
$type
=
'token'
)
Show source code of this method:
getToken Source Code
public static
isURLAddress
(mixed
$url
)
Show source code of this method:
isURLAddress Source Code
public static
round
(mixed
$value
, mixed
$precision
=
2
)
Show source code of this method:
round Source Code
public static
getRandomString
(mixed
$length
=
''
)
Show source code of this method:
getRandomString Source Code
public static
wordDelete
(mixed
$string
, mixed
$length
, mixed
$end
)
Show source code of this method:
wordDelete Source Code
public static
wordDeleteWhole
(mixed
$string
, mixed
$length
, mixed
$end
=
'...'
)
Show source code of this method:
wordDeleteWhole Source Code
public static
strTrimAll
(mixed
$input
)
Show source code of this method:
strTrimAll Source Code
public static
convertEncoding
(mixed
$string
)
Show source code of this method:
convertEncoding Source Code
public static
removeUtf8Bom
(mixed
$text
)
Show source code of this method:
removeUtf8Bom Source Code
public static
getIp
()
Show source code of this method:
getIp Source Code
public static
StripHiddenChars
(mixed
$str
)
Show source code of this method:
StripHiddenChars Source Code
public static
setOptionParameter
(mixed
$parameter
, mixed
$value
=
''
)
Show source code of this method:
setOptionParameter Source Code
public static
setWizard
(mixed
$status
)
Show source code of this method:
setWizard Source Code
public static
doesExist
(mixed
$type
)
Show source code of this method:
doesExist Source Code
public static
isJCompatible
(mixed
$version
)
Show source code of this method:
isJCompatible Source Code
public static
setConcatCharCount
(mixed
$count
=
16384
)
Show source code of this method:
setConcatCharCount Source Code
public static
issetMessage
()
Show source code of this method:
issetMessage Source Code
public static
date
(mixed
$date
, mixed
$format
=
''
)
Show source code of this method:
date Source Code
public static
getComponentParameters
()
Show source code of this method:
getComponentParameters Source Code
public static
replaceCommaWithPoint
(mixed
$item
)
Show source code of this method:
replaceCommaWithPoint Source Code
public static
getIntFromString
(mixed
$string
)
Show source code of this method:
getIntFromString Source Code
public static
getNullFromEmpty
(mixed
$value
=
''
)
Show source code of this method:
getNullFromEmpty Source Code
public static
getDateFromString
(mixed
$string
)
Show source code of this method:
getDateFromString Source Code
public static
getDecimalFromString
(mixed
$string
)
Show source code of this method:
getDecimalFromString Source Code
public static
getStringFromItem
(mixed
$item
)
Show source code of this method:
getStringFromItem Source Code
public static
getDefaultTemplate
()
Show source code of this method:
getDefaultTemplate Source Code
public static
cleanExternalHtml
(mixed
$html
)
Show source code of this method:
cleanExternalHtml Source Code
public static
curl_get_contents
(mixed
$url
)
Show source code of this method:
curl_get_contents Source Code
public static
addSeparator
(mixed
$string
, mixed
$separator
=
' - '
)
Show source code of this method:
addSeparator Source Code
public static
isView
(mixed
$viewToCheck
=
''
)
Show source code of this method:
isView Source Code
public static
isTypeView
(mixed
$viewToCheck
=
''
)
Show source code of this method:
isTypeView Source Code
public static
isController
(mixed
$controllerToCheck
=
''
)
Show source code of this method:
isController Source Code
public static
validateDate
(mixed
$date
)
Show source code of this method:
validateDate Source Code
public static
convertWeightToKg
(mixed
$weight
, mixed
$unit
)
Show source code of this method:
convertWeightToKg Source Code
public static
convertWeightFromKg
(mixed
$weight
, mixed
$unit
)
Show source code of this method:
convertWeightFromKg Source Code
public static
getNumberFromText
(mixed
$text
)
Show source code of this method:
getNumberFromText Source Code