48 public function __construct( $sObjectsInListName =
'oxselectlist')
51 $this->
init(
'oxselectlist' );
63 if ( $this->_aFieldList == null && $this->oxselectlist__oxvaldesc->value ) {
64 $this->_aFieldList =
oxRegistry::getUtils()->assignValuesFromText( $this->oxselectlist__oxvaldesc->value, $dVat );
65 foreach ( $this->_aFieldList as $sKey => $oField ) {
66 $this->_aFieldList[$sKey]->name =
getStr()->strip_tags( $this->_aFieldList[$sKey]->name );
79 public function delete( $sOXID = null )
82 $sOXID = $this->
getId();
89 if ( $blRemove = parent::delete( $sOXID ) ) {
91 $oDb->execute(
"delete from oxobject2selectlist where oxselnid = " . $oDb->quote( $sOXID ) .
" " );
106 $this->_dVat = $dVat;
126 return $this->oxselectlist__oxtitle->value;
136 if ( $this->_aList === null && $this->oxselectlist__oxvaldesc->value ) {
137 $this->_aList =
false;
139 foreach ( $aList as $sKey => $oField ) {
140 if ( $oField->name ) {
141 $this->_aList[$sKey] =
oxNew(
"oxSelection",
getStr()->strip_tags( $oField->name ), $sKey,
false, $this->_aList ===
false ?
true :
false );
155 if ( $this->_oActiveSelection === null ) {
158 $this->_oActiveSelection = reset( $aSelections );
176 foreach ( $aSelections as $oSelection ) {
177 $oSelection->setActiveState( $iSelIdx == $iIdx );
178 if ( $iSelIdx == $iIdx ) {
179 $this->_oActiveSelection = $oSelection;