52 $this->
init(
'oxuserbasketitems' );
64 $this->_blParentBuyable = $blBuyable;
78 if ( !$this->oxuserbasketitems__oxartid->value ) {
80 $oEx =
oxNew(
'oxArticleException' );
81 $oEx->setMessage(
'EXCEPTION_ARTICLE_NOPRODUCTID' );
85 if ( $this->_oArticle === null ) {
87 $this->_oArticle =
oxNew(
'oxarticle' );
96 if ( !$this->_oArticle->load( $this->oxuserbasketitems__oxartid->value ) ) {
101 if ( ( $aSelectlist = $this->_oArticle->getSelectLists() ) && is_array( $aSelList ) ) {
102 foreach ( $aSelList as $iKey => $iSel ) {
104 if ( isset( $aSelectlist[$iKey][$iSel] ) ) {
106 $aSelectlist[$iKey][$iSel] = clone $aSelectlist[$iKey][$iSel];
107 $aSelectlist[$iKey][$iSel]->selected = 1;
110 $this->_oArticle->setSelectlist( $aSelectlist );
114 $this->_oArticle->setItemKey( $sItemKey );
129 foreach ( get_object_vars( $this ) as $sKey => $sVar ) {
130 if ( $sKey !=
'_oArticle' ) {
144 if ( $this->_aSelList == null && $this->oxuserbasketitems__oxsellist->value ) {
145 $this->_aSelList = unserialize( $this->oxuserbasketitems__oxsellist->value );
170 if ( $this->_aPersParam == null && $this->oxuserbasketitems__oxpersparam->value ) {
171 $this->_aPersParam = unserialize( $this->oxuserbasketitems__oxpersparam->value );
200 if (
'oxsellist' === strtolower($sFieldName) ||
'oxuserbasketitems__oxsellist' === strtolower($sFieldName)
201 ||
'oxpersparam' === strtolower($sFieldName) ||
'oxuserbasketitems__oxpersparam' === strtolower($sFieldName)) {