00001 <?php
00002
00009 class Article_Main extends oxAdminDetails
00010 {
00016 protected $_sSavedId = null;
00017
00024 public function render()
00025 {
00026 $myConfig = $this->getConfig();
00027 parent::render();
00028
00029 $this->_aViewData['edit'] = $oArticle = oxNew( 'oxarticle' );
00030
00031 $soxId = oxConfig::getParameter( "oxid" );
00032 $svoxId = oxConfig::getParameter( "voxid" );
00033 $soxparentId = oxConfig::getParameter( "oxparentid" );
00034
00035
00036 if ( isset( $svoxId ) && $svoxId == "-1" && isset($soxparentId) && $soxparentId && $soxparentId != "-1") {
00037 $oParentArticle = oxNew( "oxarticle");
00038 $oParentArticle->load( $soxparentId);
00039 $this->_aViewData["parentarticle"] = $oParentArticle;
00040 $this->_aViewData["oxparentid"] = $soxparentId;
00041
00042 $this->_aViewData["oxid"] = $soxId = "-1";
00043 }
00044
00045
00046 if ( $this->_sSavedId ) {
00047 $this->_aViewData["oxid"] = $soxId = $this->_sSavedId;;
00048
00049
00050 $this->_aViewData["updatelist"] = "1";
00051 }
00052
00053 if ( $soxId && $soxId != "-1") {
00054
00055
00056 $oArticle->loadInLang( $this->_iEditLang, $soxId );
00057
00058
00059
00060 $oOtherLang = $oArticle->getAvailableInLangs();
00061 if (!isset($oOtherLang[$this->_iEditLang])) {
00062
00063 $oArticle->loadInLang( key($oOtherLang), $soxId );
00064 }
00065
00066
00067 if ( $oArticle->oxarticles__oxparentid->value) {
00068 $oParentArticle = oxNew( "oxarticle");
00069 $oParentArticle->load( $oArticle->oxarticles__oxparentid->value);
00070 $this->_aViewData["parentarticle"] = $oParentArticle;
00071 $this->_aViewData["oxparentid"] = $oArticle->oxarticles__oxparentid->value;
00072 $this->_aViewData["issubvariant"] = 1;
00073 }
00074
00075
00076 $this->_formJumpList($oArticle, $oParentArticle );
00077
00078
00079 $oArticle->tags = $oArticle->getTags();
00080
00081 $aLang = array_diff (oxLang::getInstance()->getLanguageNames(), $oOtherLang);
00082 if ( count( $aLang))
00083 $this->_aViewData["posslang"] = $aLang;
00084
00085 foreach ( $oOtherLang as $id => $language) {
00086 $oLang= new oxStdClass();
00087 $oLang->sLangDesc = $language;
00088 $oLang->selected = ($id == $this->_iEditLang);
00089 $this->_aViewData["otherlang"][$id] = clone $oLang;
00090 }
00091 }
00092
00093 $this->_aViewData["editor"] = $this->_generateTextEditor( "100%", 300, $oArticle, "oxarticles__oxlongdesc", "details.tpl.css");
00094 $this->_aViewData["blUseTimeCheck"] = $myConfig->getConfigParam( 'blUseTimeCheck' );
00095
00096 return "article_main.tpl";
00097 }
00098
00104 public function save()
00105 {
00106 $myConfig = $this->getConfig();
00107 $myUtilsCount = oxUtilsCount::getInstance();
00108
00109 $soxId = oxConfig::getParameter( "oxid" );
00110 $aParams = oxConfig::getParameter( "editval" );
00111
00112
00113
00114 if ( !isset( $aParams['oxarticles__oxactive']))
00115 $aParams['oxarticles__oxactive'] = 0;
00116
00117
00118 $aParams = $this->addDefaultValues( $aParams);
00119
00120
00121 if ($aParams['oxarticles__oxvat'] === '')
00122 $aParams['oxarticles__oxvat'] = null;
00123
00124
00125 $soxparentId = oxConfig::getParameter( "oxparentid");
00126 if ( isset( $soxparentId) && $soxparentId && $soxparentId != "-1") {
00127 $aParams['oxarticles__oxparentid'] = $soxparentId;
00128 } else {
00129 unset( $aParams['oxarticles__oxparentid']);
00130 }
00131
00132 $oArticle = oxNew( "oxarticle");
00133
00134 $oArticle->setLanguage($this->_iEditLang);
00135 if ( $soxId != "-1")
00136 $oArticle->loadInLang( $this->_iEditLang, $soxId);
00137 else {
00138 $aParams['oxarticles__oxid'] = null;
00139 $aParams['oxarticles__oxissearch'] = 1;
00140 $aParams['oxarticles__oxstockflag'] = 1;
00141
00142 $aParams['oxarticles__oxshopid'] = oxSession::getVar( "actshop");
00143 }
00144
00145
00146 if ( isset( $aParams['oxarticles__oxartnum']) && strlen($aParams['oxarticles__oxartnum']) > 0 &&
00147 $myConfig->getConfigParam( 'blWarnOnSameArtNums' ) &&
00148 $oArticle->oxarticles__oxartnum->value != $aParams['oxarticles__oxartnum']
00149 ) {
00150 $sSelect = "select oxid from ".$oArticle->getCoreTableName();
00151 $sSelect .= " where oxartnum = '".$aParams['oxarticles__oxartnum']."'";
00152 $sSelect .= " and oxid != '".$aParams['oxarticles__oxid']."'";
00153 if ($oArticle->assignRecord( $sSelect ))
00154 $this->_aViewData["errorsavingatricle"] = 1;
00155 }
00156
00157
00158 if ( isset($aParams["oxarticles__oxprice"]) && $aParams["oxarticles__oxprice"] != $oArticle->oxarticles__oxprice->value) {
00159 $this->resetCounter( "priceCatArticle", $oArticle->oxarticles__oxprice->value );
00160 }
00161
00162 $aResetIds = array();
00163 if ( $aParams['oxarticles__oxactive'] != $oArticle->oxarticles__oxactive->value) {
00164
00165 $oDb = oxDb::getDb();
00166 $sQ = "select oxcatnid from oxobject2category where oxobjectid = ".$oDb->quote( $oArticle->oxarticles__oxid->value );
00167 $oRs = $oDb->execute($sQ);
00168 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00169 while (!$oRs->EOF) {
00170 $this->resetCounter( "catArticle", $oRs->fields[0] );
00171 $oRs->moveNext();
00172 }
00173 }
00174
00175
00176 $aResetIds['vendor'][$oArticle->oxarticles__oxvendorid->value] = 1;
00177 $aResetIds['manufacturer'][$oArticle->oxarticles__oxmanufacturerid->value] = 1;
00178 }
00179
00180
00181 if ( isset( $aParams["oxarticles__oxvendorid"] ) && $aParams["oxarticles__oxvendorid"] != $oArticle->oxarticles__oxvendorid->value ) {
00182 $aResetIds['vendor'][$aParams['oxarticles__oxvendorid']] = 1;
00183 $aResetIds['vendor'][$oArticle->oxarticles__oxvendorid->value] = 1;
00184 }
00185
00186
00187 if ( isset($aParams["oxarticles__oxmanufacturerid"]) && $aParams["oxarticles__oxmanufacturerid"] != $oArticle->oxarticles__oxmanufacturerid->value) {
00188 $aResetIds['manufacturer'][$aParams['oxarticles__oxmanufacturerid']] = 1;
00189 $aResetIds['manufacturer'][$oArticle->oxarticles__oxmanufacturerid->value] = 1;
00190 }
00191
00192
00193 $this->_resetCounts( $aResetIds );
00194
00195 $oArticle->setLanguage(0);
00196
00197
00198 $aParams['oxarticles__oxtitle'] = trim( $aParams['oxarticles__oxtitle'] );
00199
00200 $oArticle->assign( $aParams );
00201 $oArticle->setLanguage($this->_iEditLang);
00202
00203 $oArticle = oxUtilsFile::getInstance()->processFiles( $oArticle );
00204
00205 $oArticle->save();
00206
00207
00208 if ( $soxId == "-1") {
00209 $this->_sSavedId = $oArticle->getId();
00210 $sFastCat = oxConfig::getParameter( "art_category");
00211 if ( $sFastCat != "-1") {
00212 $this->addToCategory($sFastCat, $oArticle->getId());
00213 }
00214 }
00215
00216
00217 $this->_aViewData["updatelist"] = "1";
00218
00219
00220 $sTags = $aParams['tags'];
00221 if (!trim($sTags)) {
00222 $sTags = $oArticle->oxarticles__oxsearchkeys->value;
00223 }
00224 $oArticle->saveTags($sTags);
00225 }
00226
00235 public function addToCategory($sCatID, $sOXID)
00236 {
00237 $myConfig = $this->getConfig();
00238
00239 $oNew = oxNew( "oxbase");
00240 $oNew->init( "oxobject2category" );
00241 $oNew->oxobject2category__oxtime = new oxField(time());
00242 $oNew->oxobject2category__oxobjectid = new oxField($sOXID);
00243 $oNew->oxobject2category__oxcatnid = new oxField($sCatID);
00244
00245 $oNew->save();
00246
00247
00248 $this->resetCounter( "catArticle", $sCatID );
00249 }
00250
00260 public function copyArticle( $sOldId = null, $sNewId = null, $sParentId = null )
00261 {
00262 $myConfig = $this->getConfig();
00263
00264 $sOldId = $sOldId ? $sOldId : oxConfig::getParameter( 'oxid' );
00265 $sNewId = $sNewId ? $sNewId : oxUtilsObject::getInstance()->generateUID();
00266
00267 $oArticle = oxNew( 'oxbase' );
00268 $oArticle->init( 'oxarticles' );
00269 if ( $oArticle->load( $sOldId ) ) {
00270
00271 if ( $myConfig->getConfigParam( 'blDisableDublArtOnCopy' ) ) {
00272 $oArticle->oxarticles__oxactive->setValue( 0 );
00273 $oArticle->oxarticles__oxactivefrom->setValue( 0 );
00274 $oArticle->oxarticles__oxactiveto->setValue( 0 );
00275 }
00276
00277
00278 if ( $sParentId ) {
00279 $oArticle->oxarticles__oxparentid->setValue( $sParentId );
00280 }
00281
00282
00283 $iNow = date( 'Y-m-d H:i:s', oxUtilsDate::getInstance()->getTime() );
00284 $oArticle->oxarticles__oxinsert = new oxField( $iNow );
00285 $oArticle->oxarticles__oxtimestamp = new oxField( $iNow );
00286
00287 $oArticle->setId( $sNewId );
00288 $oArticle->save();
00289
00290
00291 $this->_copyCategories( $sOldId, $sNewId );
00292
00293
00294 $this->_copyAttributes( $sOldId, $sNewId );
00295
00296
00297 $this->_copySelectlists( $sOldId, $sNewId );
00298
00299
00300 $this->_copyCrossseling( $sOldId, $sNewId );
00301
00302
00303 $this->_copyAccessoires( $sOldId, $sNewId );
00304
00305
00306 $this->_copyStaffelpreis( $sOldId, $sNewId );
00307
00308
00309 $this->_copyArtExtends( $sOldId, $sNewId);
00310
00311
00312 $aResetIds['vendor'][$oArticle->oxarticles__oxvendorid->value] = 1;
00313 $aResetIds['manufacturer'][$oArticle->oxarticles__oxmanufacturerid->value] = 1;
00314 $this->_resetCounts( $aResetIds );
00315
00316
00317 $myUtilsObject = oxUtilsObject::getInstance();
00318 $oDb = oxDb::getDb();
00319
00320
00321 $sQ = "select oxid from oxarticles where oxparentid = ".$oDb->quote( $sOldId );
00322 $oRs = $oDb->execute( $sQ );
00323 if ( $oRs !== false && $oRs->recordCount() > 0) {
00324 while ( !$oRs->EOF ) {
00325 $this->copyArticle( $oRs->fields[0], $myUtilsObject->generateUid(), $sNewId );
00326 $oRs->moveNext();
00327 }
00328 }
00329
00330
00331 if ( !$sParentId ) {
00332
00333 $this->_sSavedId = $oArticle->getId();
00334
00335
00336 if ( $myConfig->getConfigParam( 'blWarnOnSameArtNums' ) &&
00337 $oArticle->oxarticles__oxartnum->value && oxConfig::getParameter( 'fnc' ) == 'copyArticle' ) {
00338 $sSelect = "select oxid from ".$oArticle->getCoreTableName()."
00339 where oxartnum = ".$oDb->quote( $oArticle->oxarticles__oxartnum->value )." and oxid != ".$oDb->quote( $sNewId );
00340
00341 if ( $oArticle->assignRecord( $sSelect ) ) {
00342 $this->_aViewData["errorsavingatricle"] = 1;
00343 }
00344 }
00345 }
00346 }
00347 }
00348
00357 protected function _copyCategories( $sOldId, $sNewId )
00358 {
00359 $myUtilsObject = oxUtilsObject::getInstance();
00360 $oDb = oxDb::getDb();
00361
00362
00363 $sO2CView = getViewName( 'oxobject2category' );
00364 $sQ = "select oxcatnid, oxtime from {$sO2CView} where oxobjectid = ".$oDb->quote( $sOldId );
00365 $oRs = $oDb->execute( $sQ );
00366 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00367 while ( !$oRs->EOF ) {
00368 $sUid = $myUtilsObject->generateUid();
00369 $sCatId = $oRs->fields[0];
00370 $sTime = $oRs->fields[1];
00371
00372
00373 $oDb->execute("insert into oxobject2category (oxid, oxobjectid, oxcatnid, oxtime) VALUES (".$oDb->quote( $sUid ).", ".$oDb->quote( $sNewId ).", ".$oDb->quote( $sCatId ).", ".$oDb->quote( $sTime ).") ");
00374
00375 $oRs->moveNext();
00376
00377
00378 $this->resetCounter( "catArticle", $sCatId );
00379 }
00380 }
00381 }
00382
00391 protected function _copyAttributes( $sOldId, $sNewId )
00392 {
00393 $myUtilsObject = oxUtilsObject::getInstance();
00394 $oDb = oxDb::getDb();
00395
00396 $sQ = "select oxid from oxobject2attribute where oxobjectid = ".$oDb->quote( $sOldId );
00397 $oRs = $oDb->execute($sQ);
00398 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00399 while ( !$oRs->EOF ) {
00400
00401 $oAttr = oxNew( "oxbase" );
00402 $oAttr->init( "oxobject2attribute" );
00403 $oAttr->load( $oRs->fields[0] );
00404 $oAttr->setId( $myUtilsObject->generateUID() );
00405 $oAttr->oxobject2attribute__oxobjectid->setValue( $sNewId );
00406 $oAttr->save();
00407 $oRs->moveNext();
00408 }
00409 }
00410 }
00411
00420 protected function _copySelectlists( $sOldId, $sNewId )
00421 {
00422 $myUtilsObject = oxUtilsObject::getInstance();
00423 $oDb = oxDb::getDb();
00424
00425 $sQ = "select oxselnid from oxobject2selectlist where oxobjectid = ".$oDb->quote( $sOldId );
00426 $oRs = $oDb->execute( $sQ );
00427 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00428 while ( !$oRs->EOF ) {
00429 $sUid = $myUtilsObject->generateUID();
00430 $sId = $oRs->fields[0];
00431 $oDb->execute( "insert into oxobject2selectlist (oxid, oxobjectid, oxselnid) VALUES (".$oDb->quote( $sUid ).", ".$oDb->quote( $sNewId ).", ".$oDb->quote( $sId ).") " );
00432 $oRs->moveNext();
00433 }
00434 }
00435 }
00436
00445 protected function _copyCrossseling( $sOldId, $sNewId )
00446 {
00447 $myUtilsObject = oxUtilsObject::getInstance();
00448 $oDb = oxDb::getDb();
00449
00450 $sQ = "select oxobjectid from oxobject2article where oxarticlenid = ".$oDb->quote( $sOldId );
00451 $oRs = $oDb->execute( $sQ );
00452 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00453 while ( !$oRs->EOF ) {
00454 $sUid = $myUtilsObject->generateUID();
00455 $sId = $oRs->fields[0];
00456 $oDb->execute("insert into oxobject2article (oxid, oxobjectid, oxarticlenid) VALUES (".$oDb->quote( $sUid ).", ".$oDb->quote( $sId ).", ".$oDb->quote( $sNewId )." ) ");
00457 $oRs->moveNext();
00458 }
00459 }
00460 }
00461
00470 protected function _copyAccessoires( $sOldId, $sNewId )
00471 {
00472 $myUtilsObject = oxUtilsObject::getInstance();
00473 $oDb = oxDb::getDb();
00474
00475 $sQ = "select oxobjectid from oxaccessoire2article where oxarticlenid= ".$oDb->quote( $sOldId );
00476 $oRs = $oDb->execute( $sQ );
00477 if ( $oRs !== false && $oRs->recordCount() > 0 ) {
00478 while ( !$oRs->EOF ) {
00479 $sUId = $myUtilsObject->generateUid();
00480 $sId = $oRs->fields[0];
00481 $oDb->execute( "insert into oxaccessoire2article (oxid, oxobjectid, oxarticlenid) VALUES (".$oDb->quote( $sUId ).", ".$oDb->quote( $sId ).", ".$oDb->quote( $sNewId ).") " );
00482 $oRs->moveNext();
00483 }
00484 }
00485 }
00486
00495 protected function _copyStaffelpreis( $sOldId, $sNewId )
00496 {
00497 $sShopId = $this->getConfig()->getShopId();
00498 $oPriceList = oxNew( "oxlist" );
00499 $oPriceList->init( "oxbase", "oxprice2article" );
00500 $sQ = "select * from oxprice2article where oxartid = '$sOldId' and oxshopid = '$sShopId' and (oxamount > 0 or oxamountto > 0) order by oxamount ";
00501 $oPriceList->selectString( $sQ );
00502 if ( $oPriceList->count() ) {
00503 foreach ( $oPriceList as $oItem ) {
00504 $oItem->oxprice2article__oxid->setValue( $oItem->setId() );
00505 $oItem->oxprice2article__oxartid->setValue( $sNewId );
00506 $oItem->save();
00507 }
00508 }
00509 }
00510
00519 protected function _copyArtExtends( $sOldId, $sNewId)
00520 {
00521 $oExt = oxNew( "oxbase");
00522 $oExt->init( "oxartextends" );
00523 $oExt->load( $sOldId );
00524 $oExt->setId( $sNewId );
00525 $oExt->save();
00526 }
00527
00528
00534 public function saveinnlang()
00535 {
00536 $soxId = oxConfig::getParameter( "oxid" );
00537 $aParams = oxConfig::getParameter( "editval" );
00538
00539
00540 if ( !isset( $aParams['oxarticles__oxactive'] ) ) {
00541 $aParams['oxarticles__oxactive'] = 0;
00542 }
00543
00544
00545 $aParams = $this->addDefaultValues( $aParams );
00546
00547
00548 if ($aParams['oxarticles__oxvat'] === '') {
00549 $aParams['oxarticles__oxvat'] = null;
00550 }
00551
00552
00553 $soxparentId = oxConfig::getParameter( "oxparentid");
00554 if ( isset( $soxparentId) && $soxparentId && $soxparentId != "-1") {
00555 $aParams['oxarticles__oxparentid'] = $soxparentId;
00556 }
00557
00558 $oArticle = oxNew( "oxarticle");
00559 $oArticle->setLanguage($this->_iEditLang);
00560
00561 if ( $soxId != "-1") {
00562 $oArticle->load( $soxId);
00563 } else {
00564 $aParams['oxarticles__oxid'] = null;
00565
00566 $sShopId = oxSession::getVar( "actshop");
00567 $aParams['oxarticles__oxshopid'] = $sShopId;
00568 }
00569
00570
00571 if ( isset($aParams["oxarticles__oxprice"]) && $aParams["oxarticles__oxprice"] != $oArticle->oxarticles__oxprice->value) {
00572 $this->resetCounter( "priceCatArticle", $oArticle->oxarticles__oxprice->value );
00573 }
00574
00575 $aResetIds = array();
00576
00577 if ( $aParams['oxarticles__oxactive'] != $oArticle->oxarticles__oxactive->value) {
00578 $oDb = oxDb::getDb();
00579
00580 $sQ = "select oxcatnid from oxobject2category where oxobjectid = ".$oDb->quote( $oArticle->oxarticles__oxid->value );
00581 $oRs = $oDb->execute($sQ);
00582 if ($oRs !== false && $oRs->recordCount() > 0)
00583 while (!$oRs->EOF) {
00584 $this->resetCounter( "catArticle", $oRs->fields[0] );
00585 $oRs->moveNext();
00586 }
00587
00588 $aResetIds['vendor'][$oArticle->oxarticles__oxvendorid->value] = 1;
00589 $aResetIds['manufacturer'][$oArticle->oxarticles__oxmanufacturerid->value] = 1;
00590 }
00591
00592
00593 if ( isset($aParams['oxarticles__oxvendorid']) && $aParams['oxarticles__oxvendorid'] != $oArticle->oxarticles__oxvendorid->value) {
00594 $aResetIds['vendor'][$aParams['oxarticles__oxvendorid']] = 1;
00595 $aResetIds['vendor'][$oArticle->oxarticles__oxvendorid->value] = 1;
00596 }
00597
00598
00599 if ( isset($aParams['oxarticles__oxmanufacturerid']) && $aParams['oxarticles__oxmanufacturerid'] != $oArticle->oxarticles__oxmanufacturerid->value ) {
00600 $aResetIds['manufacturer'][$aParams['oxarticles__oxmanufacturerid']] = 1;
00601 $aResetIds['manufacturer'][$oArticle->oxarticles__oxmanufacturerid->value] = 1;
00602 }
00603
00604 $this->_resetCounts( $aResetIds );
00605
00606
00607 $oArticle->setLanguage( 0 );
00608 $oArticle->assign( $aParams );
00609
00610
00611 $sNewLanguage = oxConfig::getParameter( "new_lang");
00612 $oArticle->setLanguage( $sNewLanguage );
00613 $oArticle->save();
00614
00615
00616 oxSession::setVar( "new_lang", $sNewLanguage );
00617
00618
00619 if ( $soxId == "-1" ) {
00620 $this->_sSavedId = $oArticle->getId();
00621 }
00622 }
00623
00632 public function addDefaultValues( $aParams )
00633 {
00634 return $aParams;
00635 }
00636
00645 protected function _formJumpList( $oArticle, $oParentArticle )
00646 {
00647 $aJumpList = array();
00648
00649 if ( isset( $oParentArticle ) ) {
00650 $aJumpList[] = array( $oParentArticle->oxarticles__oxid->value, $this->_getTitle( $oParentArticle ) );
00651 $oParentVariants = $oParentArticle->getAdminVariants( oxConfig::getParameter( "editlanguage" ) );
00652 if ( $oParentVariants->count()) {
00653 foreach ( $oParentVariants as $oVar) {
00654 $aJumpList[] = array( $oVar->oxarticles__oxid->value, " - ".$this->_getTitle( $oVar ) );
00655 if ( $oVar->oxarticles__oxid->value == $oArticle->oxarticles__oxid->value ) {
00656 $oVariants = $oArticle->getAdminVariants(oxConfig::getParameter( "editlanguage"));
00657 if ( $oVariants->count() ) {
00658 foreach ( $oVariants as $oVVar) {
00659 $aJumpList[] = array( $oVVar->oxarticles__oxid->value, " -- ".$this->_getTitle( $oVVar));
00660 }
00661 }
00662 }
00663 }
00664 }
00665 } else {
00666 $aJumpList[] = array( $oArticle->oxarticles__oxid->value, $this->_getTitle( $oArticle));
00667
00668 $oVariants = $oArticle->getAdminVariants(oxConfig::getParameter( "editlanguage"));
00669 if ( $oVariants && $oVariants->count())
00670 foreach ($oVariants as $oVar) {
00671 $aJumpList[] = array( $oVar->oxarticles__oxid->value, " - ".$this->_getTitle( $oVar));
00672 }
00673 }
00674 if ( count($aJumpList) > 1)
00675 $this->_aViewData["thisvariantlist"] = $aJumpList;
00676 }
00677
00685 protected function _getTitle( $oObj )
00686 {
00687 $sTitle = $oObj->oxarticles__oxtitle->value;
00688 if ( !strlen( $sTitle ) ) {
00689 $sTitle = $oObj->oxarticles__oxvarselect->value;
00690 }
00691
00692 return $sTitle;
00693 }
00694
00700 public function getCategoryList()
00701 {
00702 $oCatTree = oxNew( "oxCategoryList");
00703 $oCatTree->buildList( $this->getConfig()->getConfigParam( 'bl_perfLoadCatTree' ) );
00704 return $oCatTree;
00705 }
00706
00712 public function getVendorList()
00713 {
00714 $oVendorlist = oxNew( "oxvendorlist" );
00715 $oVendorlist->loadVendorList();
00716
00717 return $oVendorlist;
00718 }
00719
00725 public function getManufacturerList()
00726 {
00727 $oManufacturerList = oxNew( "oxmanufacturerlist" );
00728 $oManufacturerList->loadManufacturerList();
00729
00730 return $oManufacturerList;
00731 }
00732 }