00001 <?php
00002
00009 class Article_Main extends oxAdminDetails
00010 {
00017 public function render()
00018 {
00019 $myConfig = $this->getConfig();
00020 parent::render();
00021
00022 $this->_aViewData['edit'] = $oArticle = oxNew( 'oxarticle' );
00023
00024 $soxId = $this->getEditObjectId();
00025 $svoxId = oxConfig::getParameter( "voxid" );
00026 $soxparentId = oxConfig::getParameter( "oxparentid" );
00027
00028
00029 if ( isset( $svoxId ) && $svoxId == "-1" && isset($soxparentId) && $soxparentId && $soxparentId != "-1") {
00030 $oParentArticle = oxNew( "oxarticle");
00031 $oParentArticle->load( $soxparentId);
00032 $this->_aViewData["parentarticle"] = $oParentArticle;
00033 $this->_aViewData["oxparentid"] = $soxparentId;
00034
00035 $this->_aViewData["oxid"] = $soxId = "-1";
00036 }
00037
00038 if ( $soxId && $soxId != "-1") {
00039
00040
00041 $oArticle->loadInLang( $this->_iEditLang, $soxId );
00042
00043
00044
00045 $oOtherLang = $oArticle->getAvailableInLangs();
00046 if (!isset($oOtherLang[$this->_iEditLang])) {
00047
00048 $oArticle->loadInLang( key($oOtherLang), $soxId );
00049 }
00050
00051
00052 if ( $oArticle->oxarticles__oxparentid->value) {
00053 $oParentArticle = oxNew( "oxarticle");
00054 $oParentArticle->load( $oArticle->oxarticles__oxparentid->value);
00055 $this->_aViewData["parentarticle"] = $oParentArticle;
00056 $this->_aViewData["oxparentid"] = $oArticle->oxarticles__oxparentid->value;
00057 $this->_aViewData["issubvariant"] = 1;
00058 }
00059
00060
00061 $this->_formJumpList($oArticle, $oParentArticle );
00062
00063
00064 $oArticleTagList = oxNew( "oxarticletaglist" );
00065 $oArticleTagList->loadInLang( $this->_iEditLang, $oArticle->getId() );
00066 $oArticle->tags = $oArticleTagList->get();
00067
00068 $aLang = array_diff (oxRegistry::getLang()->getLanguageNames(), $oOtherLang);
00069 if ( count( $aLang))
00070 $this->_aViewData["posslang"] = $aLang;
00071
00072 foreach ( $oOtherLang as $id => $language) {
00073 $oLang= new stdClass();
00074 $oLang->sLangDesc = $language;
00075 $oLang->selected = ($id == $this->_iEditLang);
00076 $this->_aViewData["otherlang"][$id] = clone $oLang;
00077 }
00078 }
00079
00080 $this->_aViewData["editor"] = $this->_generateTextEditor( "100%", 300, $oArticle, "oxarticles__oxlongdesc", "details.tpl.css");
00081 $this->_aViewData["blUseTimeCheck"] = $myConfig->getConfigParam( 'blUseTimeCheck' );
00082
00083 return "article_main.tpl";
00084 }
00085
00094 protected function _getEditValue( $oObject, $sField )
00095 {
00096 $sEditObjectValue = '';
00097 if ( $oObject ) {
00098 $oDescField = $oObject->getLongDescription();
00099 $sEditObjectValue = $this->_processEditValue( $oDescField->getRawValue() );
00100 $oDescField = new oxField( $sEditObjectValue, oxField::T_RAW );
00101 }
00102
00103 return $sEditObjectValue;
00104 }
00105
00111 public function save()
00112 {
00113 parent::save();
00114
00115 $oConfig = $this->getConfig();
00116 $soxId = $this->getEditObjectId();
00117 $aParams = $oConfig->getRequestParameter( "editval" );
00118
00119
00120 $aParams = $this->addDefaultValues( $aParams );
00121
00122
00123 if (isset($aParams['oxarticles__oxvat']) && $aParams['oxarticles__oxvat'] === '') {
00124 $aParams['oxarticles__oxvat'] = null;
00125 }
00126
00127
00128 $soxparentId = $oConfig->getRequestParameter( "oxparentid");
00129 if ( isset( $soxparentId) && $soxparentId && $soxparentId != "-1") {
00130 $aParams['oxarticles__oxparentid'] = $soxparentId;
00131 } else {
00132 unset( $aParams['oxarticles__oxparentid']);
00133 }
00134
00135 $oArticle = oxNew( "oxarticle");
00136 $oArticle->setLanguage($this->_iEditLang);
00137
00138 if ( $soxId != "-1") {
00139 $oArticle->loadInLang( $this->_iEditLang, $soxId);
00140 } else {
00141 $aParams['oxarticles__oxid'] = null;
00142 $aParams['oxarticles__oxissearch'] = 1;
00143 $aParams['oxarticles__oxstockflag'] = 1;
00144 if ( empty($aParams['oxarticles__oxstock']) ) {
00145 $aParams['oxarticles__oxstock'] = 0;
00146 }
00147
00148
00149 $aParams['oxarticles__oxshopid'] = oxRegistry::getSession()->getVariable( "actshop");
00150
00151 if (!isset($aParams['oxarticles__oxactive'])) {
00152 $aParams['oxarticles__oxactive'] = 0;
00153 }
00154 }
00155
00156
00157 if ( isset( $aParams['oxarticles__oxartnum']) && strlen($aParams['oxarticles__oxartnum']) > 0 &&
00158 $oConfig->getConfigParam( 'blWarnOnSameArtNums' ) &&
00159 $oArticle->oxarticles__oxartnum->value != $aParams['oxarticles__oxartnum']
00160 ) {
00161 $sSelect = "select oxid from ".getViewName( 'oxarticles' );
00162 $sSelect .= " where oxartnum = '".$aParams['oxarticles__oxartnum']."'";
00163 $sSelect .= " and oxid != '".$aParams['oxarticles__oxid']."'";
00164 if ($oArticle->assignRecord( $sSelect ))
00165 $this->_aViewData["errorsavingatricle"] = 1;
00166 }
00167
00168
00169
00170 if ( isset($aParams["oxarticles__oxprice"]) && $aParams["oxarticles__oxprice"] != $oArticle->oxarticles__oxprice->value) {
00171 $this->resetCounter( "priceCatArticle", $oArticle->oxarticles__oxprice->value );
00172 }
00173
00174 $aResetIds = array();
00175 if ( isset($aParams['oxarticles__oxactive']) && $aParams['oxarticles__oxactive'] != $oArticle->oxarticles__oxactive->value) {
00176
00177 $this->_resetCategoriesCounter( $oArticle->oxarticles__oxid->value );
00178
00179
00180 $aResetIds['vendor'][$oArticle->oxarticles__oxvendorid->value] = 1;
00181 $aResetIds['manufacturer'][$oArticle->oxarticles__oxmanufacturerid->value] = 1;
00182 }
00183
00184
00185 if ( isset($aParams['oxarticles__oxvendorid']) && $aParams['oxarticles__oxvendorid'] != $oArticle->oxarticles__oxvendorid->value) {
00186 $aResetIds['vendor'][$aParams['oxarticles__oxvendorid']] = 1;
00187 $aResetIds['vendor'][$oArticle->oxarticles__oxvendorid->value] = 1;
00188 }
00189
00190
00191 if ( isset($aParams['oxarticles__oxmanufacturerid']) && $aParams['oxarticles__oxmanufacturerid'] != $oArticle->oxarticles__oxmanufacturerid->value ) {
00192 $aResetIds['manufacturer'][$aParams['oxarticles__oxmanufacturerid']] = 1;
00193 $aResetIds['manufacturer'][$oArticle->oxarticles__oxmanufacturerid->value] = 1;
00194 }
00195
00196
00197 $this->_resetCounts( $aResetIds );
00198
00199 $oArticle->setLanguage(0);
00200
00201
00202 if (isset($aParams['oxarticles__oxtitle'])) {
00203 $aParams['oxarticles__oxtitle'] = trim( $aParams['oxarticles__oxtitle'] );
00204 }
00205
00206 $oArticle->assign( $aParams );
00207 $oArticle->setArticleLongDesc( $this->_processLongDesc( $aParams['oxarticles__oxlongdesc'] ) );
00208 $oArticle->setLanguage($this->_iEditLang);
00209 $oArticle = oxRegistry::get("oxUtilsFile")->processFiles( $oArticle );
00210 $oArticle->save();
00211
00212
00213 if ( $soxId == "-1") {
00214 $sFastCat = $oConfig->getRequestParameter( "art_category");
00215 if ( $sFastCat != "-1") {
00216 $this->addToCategory($sFastCat, $oArticle->getId());
00217 }
00218 }
00219
00220
00221 if (isset($aParams['tags'])) {
00222 $sTags = $aParams['tags'];
00223 if (!trim($sTags)) {
00224 $sTags = $oArticle->oxarticles__oxsearchkeys->value;
00225 }
00226 $aInvalidTags = $this->_setTags( $sTags, $oArticle->getId() );
00227 if ( !empty( $aInvalidTags ) ) {
00228 $this->_aViewData["invalid_tags"] = implode( ', ', $aInvalidTags );
00229 }
00230 }
00231
00232 $this->setEditObjectId( $oArticle->getId() );
00233 }
00234
00242 protected function _processLongDesc( $sValue )
00243 {
00244
00245
00246 $sValue = str_replace( '&nbsp;', ' ', $sValue );
00247 $sValue = str_replace( '&', '&', $sValue );
00248 $sValue = str_replace( '"', '"', $sValue );
00249 $sValue = str_replace( '&lang=', '&lang=', $sValue);
00250
00251 return $sValue;
00252 }
00253
00261 protected function _resetCategoriesCounter( $sArticleId )
00262 {
00263 $oDb = oxDb::getDb();
00264 $sQ = "select oxcatnid from oxobject2category where oxobjectid = ".$oDb->quote( $sArticleId );
00265 $oRs = $oDb->execute($sQ);
00266 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00267 while (!$oRs->EOF) {
00268 $this->resetCounter( "catArticle", $oRs->fields[0] );
00269 $oRs->moveNext();
00270 }
00271 }
00272 }
00273
00282 protected function _setTags( $sTags, $sArticleId )
00283 {
00284 $oArticleTagList = oxNew('oxarticletaglist');
00285 $oArticleTagList->loadInLang( $this->_iEditLang, $sArticleId );
00286 $oArticleTagList->set( $sTags );
00287 $oArticleTagList->save();
00288
00289 return $oArticleTagList->get()->getInvalidTags();
00290 }
00291
00300 public function addToCategory($sCatID, $sOXID)
00301 {
00302 $myConfig = $this->getConfig();
00303
00304 $oNew = oxNew( "oxbase");
00305 $oNew->init( "oxobject2category" );
00306 $oNew->oxobject2category__oxtime = new oxField( 0 );
00307 $oNew->oxobject2category__oxobjectid = new oxField( $sOXID );
00308 $oNew->oxobject2category__oxcatnid = new oxField( $sCatID );
00309
00310 $oNew->save();
00311
00312
00313 $this->resetCounter( "catArticle", $sCatID );
00314 }
00315
00325 public function copyArticle( $sOldId = null, $sNewId = null, $sParentId = null )
00326 {
00327 $myConfig = $this->getConfig();
00328
00329 $sOldId = $sOldId ? $sOldId : $this->getEditObjectId();
00330 $sNewId = $sNewId ? $sNewId : oxUtilsObject::getInstance()->generateUID();
00331
00332 $oArticle = oxNew( 'oxbase' );
00333 $oArticle->init( 'oxarticles' );
00334 if ( $oArticle->load( $sOldId ) ) {
00335
00336 if ( $myConfig->getConfigParam( 'blDisableDublArtOnCopy' ) ) {
00337 $oArticle->oxarticles__oxactive->setValue( 0 );
00338 $oArticle->oxarticles__oxactivefrom->setValue( 0 );
00339 $oArticle->oxarticles__oxactiveto->setValue( 0 );
00340 }
00341
00342
00343 if ( $sParentId ) {
00344 $oArticle->oxarticles__oxparentid->setValue( $sParentId );
00345 }
00346
00347
00348 $iNow = date( 'Y-m-d H:i:s', oxRegistry::get("oxUtilsDate")->getTime() );
00349 $oArticle->oxarticles__oxinsert = new oxField( $iNow );
00350
00351
00352 $oArticle->oxarticles__oxrating = new oxField( 0 );
00353 $oArticle->oxarticles__oxratingcnt = new oxField( 0 );
00354
00355 $oArticle->setId( $sNewId );
00356 $oArticle->save();
00357
00358
00359 $this->_copyCategories( $sOldId, $sNewId );
00360
00361
00362 $this->_copyAttributes( $sOldId, $sNewId );
00363
00364
00365 $this->_copySelectlists( $sOldId, $sNewId );
00366
00367
00368 $this->_copyCrossseling( $sOldId, $sNewId );
00369
00370
00371 $this->_copyAccessoires( $sOldId, $sNewId );
00372
00373
00374 $this->_copyStaffelpreis( $sOldId, $sNewId );
00375
00376
00377 $this->_copyArtExtends( $sOldId, $sNewId);
00378
00379
00380 $this->_copyFiles( $sOldId, $sNewId );
00381
00382
00383 $aResetIds['vendor'][$oArticle->oxarticles__oxvendorid->value] = 1;
00384 $aResetIds['manufacturer'][$oArticle->oxarticles__oxmanufacturerid->value] = 1;
00385 $this->_resetCounts( $aResetIds );
00386
00387
00388 $myUtilsObject = oxUtilsObject::getInstance();
00389 $oDb = oxDb::getDb();
00390
00391
00392 $sQ = "select oxid from oxarticles where oxparentid = ".$oDb->quote( $sOldId );
00393 $oRs = $oDb->execute( $sQ );
00394 if ( $oRs !== false && $oRs->recordCount() > 0) {
00395 while ( !$oRs->EOF ) {
00396 $this->copyArticle( $oRs->fields[0], $myUtilsObject->generateUid(), $sNewId );
00397 $oRs->moveNext();
00398 }
00399 }
00400
00401
00402 if ( !$sParentId ) {
00403
00404 $this->setEditObjectId( $oArticle->getId() );
00405
00406
00407 if ( $myConfig->getConfigParam( 'blWarnOnSameArtNums' ) &&
00408 $oArticle->oxarticles__oxartnum->value && oxConfig::getParameter( 'fnc' ) == 'copyArticle' ) {
00409 $sSelect = "select oxid from ".$oArticle->getCoreTableName()."
00410 where oxartnum = ".$oDb->quote( $oArticle->oxarticles__oxartnum->value )." and oxid != ".$oDb->quote( $sNewId );
00411
00412 if ( $oArticle->assignRecord( $sSelect ) ) {
00413 $this->_aViewData["errorsavingatricle"] = 1;
00414 }
00415 }
00416 }
00417 }
00418 }
00419
00428 protected function _copyCategories( $sOldId, $sNewId )
00429 {
00430 $myUtilsObject = oxUtilsObject::getInstance();
00431 $oShopMetaData = oxRegistry::get("oxShopMetaData");
00432 $oDb = oxDb::getDb();
00433
00434
00435 $sO2CView = getViewName( 'oxobject2category' );
00436 $sQ = "select oxcatnid, oxtime from {$sO2CView} where oxobjectid = ".$oDb->quote( $sOldId );
00437 $oRs = $oDb->execute( $sQ );
00438 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00439 while ( !$oRs->EOF ) {
00440 $sUid = $myUtilsObject->generateUid();
00441 $sCatId = $oRs->fields[0];
00442 $sTime = $oRs->fields[1];
00443
00444
00445 $oDb->execute("insert into oxobject2category (oxid, oxobjectid, oxcatnid, oxtime) VALUES (".$oDb->quote( $sUid ).", ".$oDb->quote( $sNewId ).", ".$oDb->quote( $sCatId ).", ".$oDb->quote( $sTime ).") ");
00446
00447 $oRs->moveNext();
00448
00449
00450 $this->resetCounter( "catArticle", $sCatId );
00451 }
00452 }
00453 }
00454
00463 protected function _copyAttributes( $sOldId, $sNewId )
00464 {
00465 $myUtilsObject = oxUtilsObject::getInstance();
00466 $oDb = oxDb::getDb();
00467
00468 $sQ = "select oxid from oxobject2attribute where oxobjectid = ".$oDb->quote( $sOldId );
00469 $oRs = $oDb->execute($sQ);
00470 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00471 while ( !$oRs->EOF ) {
00472
00473 $oAttr = oxNew( "oxbase" );
00474 $oAttr->init( "oxobject2attribute" );
00475 $oAttr->load( $oRs->fields[0] );
00476 $oAttr->setId( $myUtilsObject->generateUID() );
00477 $oAttr->oxobject2attribute__oxobjectid->setValue( $sNewId );
00478 $oAttr->save();
00479 $oRs->moveNext();
00480 }
00481 }
00482 }
00483
00492 protected function _copyFiles( $sOldId, $sNewId )
00493 {
00494 $myUtilsObject = oxUtilsObject::getInstance();
00495 $oDb = oxDb::getDb( oxDB::FETCH_MODE_ASSOC );
00496
00497 $sQ = "SELECT * FROM `oxfiles` WHERE `oxartid` = ".$oDb->quote( $sOldId );
00498 $oRs = $oDb->execute($sQ);
00499 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00500 while ( !$oRs->EOF ) {
00501
00502 $oFile = oxNew( "oxfile" );
00503 $oFile->setId( $myUtilsObject->generateUID() );
00504 $oFile->oxfiles__oxartid = new oxField( $sNewId );
00505 $oFile->oxfiles__oxfilename = new oxField( $oRs->fields['OXFILENAME'] );
00506 $oFile->oxfiles__oxfilesize = new oxField( $oRs->fields['OXFILESIZE'] );
00507 $oFile->oxfiles__oxstorehash = new oxField( $oRs->fields['OXSTOREHASH'] );
00508 $oFile->oxfiles__oxpurchasedonly = new oxField( $oRs->fields['OXPURCHASEDONLY'] );
00509 $oFile->save();
00510 $oRs->moveNext();
00511 }
00512 }
00513 }
00514
00523 protected function _copySelectlists( $sOldId, $sNewId )
00524 {
00525 $myUtilsObject = oxUtilsObject::getInstance();
00526 $oDb = oxDb::getDb();
00527
00528 $sQ = "select oxselnid from oxobject2selectlist where oxobjectid = ".$oDb->quote( $sOldId );
00529 $oRs = $oDb->execute( $sQ );
00530 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00531 while ( !$oRs->EOF ) {
00532 $sUid = $myUtilsObject->generateUID();
00533 $sId = $oRs->fields[0];
00534 $oDb->execute( "insert into oxobject2selectlist (oxid, oxobjectid, oxselnid) VALUES (".$oDb->quote( $sUid ).", ".$oDb->quote( $sNewId ).", ".$oDb->quote( $sId ).") " );
00535 $oRs->moveNext();
00536 }
00537 }
00538 }
00539
00548 protected function _copyCrossseling( $sOldId, $sNewId )
00549 {
00550 $myUtilsObject = oxUtilsObject::getInstance();
00551 $oDb = oxDb::getDb();
00552
00553 $sQ = "select oxobjectid from oxobject2article where oxarticlenid = ".$oDb->quote( $sOldId );
00554 $oRs = $oDb->execute( $sQ );
00555 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00556 while ( !$oRs->EOF ) {
00557 $sUid = $myUtilsObject->generateUID();
00558 $sId = $oRs->fields[0];
00559 $oDb->execute("insert into oxobject2article (oxid, oxobjectid, oxarticlenid) VALUES (".$oDb->quote( $sUid ).", ".$oDb->quote( $sId ).", ".$oDb->quote( $sNewId )." ) ");
00560 $oRs->moveNext();
00561 }
00562 }
00563 }
00564
00573 protected function _copyAccessoires( $sOldId, $sNewId )
00574 {
00575 $myUtilsObject = oxUtilsObject::getInstance();
00576 $oDb = oxDb::getDb();
00577
00578 $sQ = "select oxobjectid from oxaccessoire2article where oxarticlenid= ".$oDb->quote( $sOldId );
00579 $oRs = $oDb->execute( $sQ );
00580 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00581 while ( !$oRs->EOF ) {
00582 $sUId = $myUtilsObject->generateUid();
00583 $sId = $oRs->fields[0];
00584 $oDb->execute( "insert into oxaccessoire2article (oxid, oxobjectid, oxarticlenid) VALUES (".$oDb->quote( $sUId ).", ".$oDb->quote( $sId ).", ".$oDb->quote( $sNewId ).") " );
00585 $oRs->moveNext();
00586 }
00587 }
00588 }
00589
00598 protected function _copyStaffelpreis( $sOldId, $sNewId )
00599 {
00600 $sShopId = $this->getConfig()->getShopId();
00601 $oPriceList = oxNew( "oxlist" );
00602 $oPriceList->init( "oxbase", "oxprice2article" );
00603 $sQ = "select * from oxprice2article where oxartid = '$sOldId' and oxshopid = '$sShopId' and (oxamount > 0 or oxamountto > 0) order by oxamount ";
00604 $oPriceList->selectString( $sQ );
00605 if ( $oPriceList->count() ) {
00606 foreach ( $oPriceList as $oItem ) {
00607 $oItem->oxprice2article__oxid->setValue( $oItem->setId() );
00608 $oItem->oxprice2article__oxartid->setValue( $sNewId );
00609 $oItem->save();
00610 }
00611 }
00612 }
00613
00622 protected function _copyArtExtends( $sOldId, $sNewId)
00623 {
00624 $oExt = oxNew( "oxbase");
00625 $oExt->init( "oxartextends" );
00626 $oExt->load( $sOldId );
00627 $oExt->setId( $sNewId );
00628 $oExt->save();
00629 }
00630
00631
00637 public function saveinnlang()
00638 {
00639 $this->save();
00640 }
00641
00650 public function addDefaultValues( $aParams )
00651 {
00652 return $aParams;
00653 }
00654
00663 protected function _formJumpList( $oArticle, $oParentArticle )
00664 {
00665 $aJumpList = array();
00666
00667 if ( isset( $oParentArticle ) ) {
00668 $aJumpList[] = array( $oParentArticle->oxarticles__oxid->value, $this->_getTitle( $oParentArticle ) );
00669 $oParentVariants = $oParentArticle->getAdminVariants( oxConfig::getParameter( "editlanguage" ) );
00670 if ( $oParentVariants->count()) {
00671 foreach ( $oParentVariants as $oVar) {
00672 $aJumpList[] = array( $oVar->oxarticles__oxid->value, " - ".$this->_getTitle( $oVar ) );
00673 if ( $oVar->oxarticles__oxid->value == $oArticle->oxarticles__oxid->value ) {
00674 $oVariants = $oArticle->getAdminVariants(oxConfig::getParameter( "editlanguage"));
00675 if ( $oVariants->count() ) {
00676 foreach ( $oVariants as $oVVar) {
00677 $aJumpList[] = array( $oVVar->oxarticles__oxid->value, " -- ".$this->_getTitle( $oVVar));
00678 }
00679 }
00680 }
00681 }
00682 }
00683 } else {
00684 $aJumpList[] = array( $oArticle->oxarticles__oxid->value, $this->_getTitle( $oArticle));
00685
00686 $oVariants = $oArticle->getAdminVariants(oxConfig::getParameter( "editlanguage"));
00687 if ( $oVariants && $oVariants->count())
00688 foreach ($oVariants as $oVar) {
00689 $aJumpList[] = array( $oVar->oxarticles__oxid->value, " - ".$this->_getTitle( $oVar));
00690 }
00691 }
00692 if ( count($aJumpList) > 1)
00693 $this->_aViewData["thisvariantlist"] = $aJumpList;
00694 }
00695
00703 protected function _getTitle( $oObj )
00704 {
00705 $sTitle = $oObj->oxarticles__oxtitle->value;
00706 if ( !strlen( $sTitle ) ) {
00707 $sTitle = $oObj->oxarticles__oxvarselect->value;
00708 }
00709
00710 return $sTitle;
00711 }
00712
00718 public function getCategoryList()
00719 {
00720 $oCatTree = oxNew( "oxCategoryList");
00721 $oCatTree->buildList( $this->getConfig()->getConfigParam( 'bl_perfLoadCatTree' ) );
00722 return $oCatTree;
00723 }
00724
00730 public function getVendorList()
00731 {
00732 $oVendorlist = oxNew( "oxvendorlist" );
00733 $oVendorlist->loadVendorList();
00734
00735 return $oVendorlist;
00736 }
00737
00743 public function getManufacturerList()
00744 {
00745 $oManufacturerList = oxNew( "oxmanufacturerlist" );
00746 $oManufacturerList->loadManufacturerList();
00747
00748 return $oManufacturerList;
00749 }
00750 }