OXID eShop CE  4.10.7
 All Classes Namespaces Files Functions Variables Pages
oxWrapping Class Reference
+ Inheritance diagram for oxWrapping:
+ Collaboration diagram for oxWrapping:

Public Member Functions

 __construct ()
 setWrappingVat ($dVat)
 setWrappingVatOnTop ($blOnTop)
 getWrappingPrice ($dAmount=1)
 getWrappingList ($sWrapType)
 getWrappingCount ($sWrapType)
 getFPrice ()
 getPrice ()
 getNoSslDynImageDir ()
 getPictureUrl ()
- Public Member Functions inherited from oxI18n
 setLanguage ($iLang=null)
 getLanguage ()
 setEnableMultilang ($blEmployMultilanguage)
 isMultilingualField ($sFieldName)
 isMultilang ()
 loadInLang ($iLanguage, $sOxid)
 modifyCacheKey ($sCacheKey, $blOverride=false)
 getAvailableInLangs ()
 getUpdateSqlFieldName ($sField)
 delete ($sOXID=null)
- Public Member Functions inherited from oxBase
 getUseSkipSaveFields ()
 setUseSkipSaveFields ($blUseSkipSaveFields)
 __set ($sName, $sValue)
 __get ($sName)
 __isset ($mVar)
 __clone ()
 oxClone ($oObject)
 getUpdateSeo ()
 setUpdateSeo ($blUpdateSeo)
 init ($sTableName=null, $blForceAllFields=false)
 assign ($dbRecord)
 getClassName ()
 getCoreTableName ()
 getId ()
 setId ($sOXID=null)
 setShopId ($iShopId)
 getShopId ()
 getViewName ($blForceCoreTableUsage=null)
 disableLazyLoading ()
 isDerived ()
 setIsDerived ($blVal)
 load ($sOXID)
 isLoaded ()
 buildSelectString ($aWhere=null)
 assignRecord ($sSelect)
 getFieldData ($sFieldName)
 getSelectFields ($blForceCoreTableUsage=null)
 save ()
 allowDerivedUpdate ()
 allowDerivedDelete ()
 exists ($sOXID=null)
 getSqlActiveSnippet ($blForceCoreTable=null)
 beforeUpdate ($sOXID=null)
 onChange ($iAction=null, $sOXID=null)
 setInList ()
 isOx ()
 isReadOnly ()
 setReadOnly ($blReadOnly)
 getFieldNames ()
 addFieldName ($sName)
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _isPriceViewModeNetto ()
- Protected Member Functions inherited from oxI18n
 _getFieldStatus ($sFieldName)
 _getNonCachedFieldNames ($blForceFullStructure=false)
 _getFieldLang ($sFieldName)
 _setUpdateSeoOnFieldChange ($sField)
 _getUpdateFieldsForTable ($sTable, $blUseSkipSaveFields=true)
 _getUpdateFields ($blUseSkipSaveFields=true)
 _update ()
 _getLanguageSetTables ($sCoreTableName=null)
 _insert ()
 _getObjectViewName ($sTable, $sShopID=null)
 _getAllFields ($blReturnSimple=false)
 _addField ($sName, $sStatus, $sType=null, $sLength=null)
 _canFieldBeNull ($sFieldName)
- Protected Member Functions inherited from oxBase
 _removeElement2ShopRelations ($sOxId)
 _isInList ()
 _getTableFields ($sTable, $blReturnSimple=false)
 _initDataStructure ($blForceFullStructure=false)
 _getFieldLongName ($sFieldName)
 _setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT)
 _getFieldDefaultValue ($sFieldName)
 _getUpdateFieldValue ($sFieldName, $oField)
 _isDisabledFieldCache ()
 _addSkippedSaveFieldsForMapping ()
 _disableLazyLoadingForCaching ()

Protected Attributes

 $_sClassName = 'oxwrapping'
 $_oPrice = null
 $_dVat = 0
 $_blWrappingVatOnTop = false
- Protected Attributes inherited from oxI18n
 $_sClassName = 'oxI18n'
 $_iLanguage = null
 $_blEmployMultilanguage = true
- Protected Attributes inherited from oxBase
 $_sOXID = null
 $_iShopId = null
 $_blIsSimplyClonable = true
 $_sClassName = 'oxbase'
 $_sCoreTable = null
 $_sViewTable = null
 $_aFieldNames = array('oxid' => 0)
 $_sCacheKey = null
 $_blUseLazyLoading = false
 $_aSkipSaveFields = array('oxtimestamp')
 $_blUseSkipSaveFields = true
 $_sExistKey = 'oxid'
 $_blIsDerived = null
 $_blIsSeoObject = false
 $_blUpdateSeo = true
 $_blReadOnly = false
 $_blIsInList = false
 $_isLoaded = false
 $_aInnerLazyCache = null
 $_blEmployMultilanguage = false

Additional Inherited Members

- Static Protected Attributes inherited from oxBase
static $_blDisableFieldCaching = array()

Detailed Description

Wrapping manager. Performs Wrapping data/objects loading, deleting.

Definition at line 8 of file oxwrapping.php.

Constructor & Destructor Documentation

oxWrapping::__construct ( )

Class constructor, initiates parent constructor (parent::oxBase()), loads base shop objects.

Returns
null

Reimplemented from oxI18n.

Definition at line 45 of file oxwrapping.php.

Member Function Documentation

oxWrapping::_isPriceViewModeNetto ( )
protected

Checks and return true if price view mode is netto

Returns
bool

Definition at line 140 of file oxwrapping.php.

oxWrapping::getFPrice ( )

Returns formatted wrapping price

Deprecated:
since v5.1 (2013-10-13); use oxPrice smarty plugin for formatting in templates
Returns
string

Definition at line 158 of file oxwrapping.php.

oxWrapping::getNoSslDynImageDir ( )

Returns returns dyn image dir (not ssl)

Returns
string

Definition at line 186 of file oxwrapping.php.

oxWrapping::getPictureUrl ( )

Returns returns dyn image dir

Returns
string

Definition at line 196 of file oxwrapping.php.

oxWrapping::getPrice ( )

Gets price.

Returns
double

Definition at line 170 of file oxwrapping.php.

oxWrapping::getWrappingCount (   $sWrapType)

Counts amount of wrapping/card options

Parameters
string$sWrapTypetype - wrapping paper (WRAP) or card (CARD)
Returns
int

Definition at line 126 of file oxwrapping.php.

oxWrapping::getWrappingList (   $sWrapType)

Loads wrapping list for specific wrap type

Parameters
string$sWrapTypewrap type
Returns
array $oEntries wrapping list

Definition at line 107 of file oxwrapping.php.

oxWrapping::getWrappingPrice (   $dAmount = 1)

Returns oxprice object for wrapping

Parameters
int$dAmountarticle amount
Returns
object

Definition at line 81 of file oxwrapping.php.

oxWrapping::setWrappingVat (   $dVat)

Wrapping Vat setter

Parameters
double$dVatvat

Definition at line 59 of file oxwrapping.php.

oxWrapping::setWrappingVatOnTop (   $blOnTop)

Wrapping VAT config setter

Parameters
bool$blOnTopwrapping vat config

Definition at line 69 of file oxwrapping.php.

Member Data Documentation

oxWrapping::$_blWrappingVatOnTop = false
protected

Definition at line 37 of file oxwrapping.php.

oxWrapping::$_dVat = 0
protected

Definition at line 30 of file oxwrapping.php.

oxWrapping::$_oPrice = null
protected

Definition at line 23 of file oxwrapping.php.

oxWrapping::$_sClassName = 'oxwrapping'
protected

Definition at line 16 of file oxwrapping.php.


The documentation for this class was generated from the following file: