33 $sCatView = $oBaseObject->getCoreTableName();
35 $this->_aCurrSorting[$sCatView][
"oxrootid"] =
"desc";
36 $this->_aCurrSorting[$sCatView][
"oxleft"] =
"asc";
57 $iLang = $oLang->getTplLanguage();
60 $oCatTree =
oxNew(
"oxCategoryList" );
61 $oCatTree->loadList();
66 $oRoot =
new stdClass();
68 $oRoot->oxcategories__oxtitle =
new oxField( $oLang->translateString(
"viewAll", $iLang ),
oxField::T_RAW );
71 $oRoot =
new stdClass();
73 $oRoot->oxcategories__oxtitle =
new oxField(
"-- ".$oLang->translateString(
"mainCategory", $iLang ).
" --",
oxField::T_RAW );
76 foreach ( $oCatTree as $oCategory ) {
77 $aNewList[] = $oCategory;
80 $oCatTree->assign( $aNewList );
82 if ( is_array( $aFilter ) && isset( $aFilter[
"oxcategories"][
"oxparentid"] ) ) {
83 foreach ( $oCatTree as $oCategory ) {
84 if ( $oCategory->oxcategories__oxid->value == $aFilter[
"oxcategories"][
"oxparentid"] ) {
85 $oCategory->selected = 1;
91 $this->_aViewData[
"cattree"] = $oCatTree;
92 return "category_list.tpl";