src/ShopBundle/objects/TCMSTableEditor/TCMSTableEditorShopCategory.class.php
public function UpdatePageNaviBreadCrumb()
    {
        $sEditLanguage = $this->oTableConf->GetLanguage();
        $breadcrumbs = self::GetNavigationBreadCrumbs($this->sId, $sEditLanguage);
        $this->SaveField('url_path', $breadcrumbs);
        // now we also need to update all children of this category...
        $oCategory = TdbShopCategory::GetNewInstance();
        $oCategory->SetLanguage($sEditLanguage);
        /** @var $oCategory TdbShopCategory */
        if (!$oCategory->Load($this->sId)) {
            $oCategory = null;
        } else {
            $oChildren = &$oCategory->GetChildren();
            while ($oChild = $oChildren->Next()) {
                $oEditor = new TCMSTableEditorManager();
                /** @var $oEditor TCMSTableEditorManager */
                $oEditor->Init($this->oTableConf->id, $oChild->id, $sEditLanguage);
                $oEditor->AllowEditByAll($this->bAllowEditByAll);
                $oEditor->SaveField('name', $oChild->fieldName, true);
            }
        }
    }
public function UpdatePageNaviBreadCrumb()
    {
        $sEditLanguage = $this->oTableConf->GetLanguage();
        $breadcrumbs = self::GetNavigationBreadCrumbs($this->sId, $sEditLanguage);
        $this->SaveField('url_path', $breadcrumbs);
        // now we also need to update all children of this category...
        $oCategory = TdbShopCategory::GetNewInstance();
        $oCategory->SetLanguage($sEditLanguage);
        /** @var $oCategory TdbShopCategory */
        if (!$oCategory->Load($this->sId)) {
            $oCategory = null;
        } else {
            $oChildren = &$oCategory->GetChildren();
            while ($oChild = $oChildren->Next()) {
                $oEditor = new TCMSTableEditorManager();
                /** @var $oEditor TCMSTableEditorManager */
                $oEditor->Init($this->oTableConf->id, $oChild->id, $sEditLanguage);
                $oEditor->AllowEditByAll($this->bAllowEditByAll);
                $oEditor->SaveField('name', $oChild->fieldName, true);
            }
        }
    }
public function UpdatePageNaviBreadCrumb ( ) { $ sEditLanguage = $ this -> oTableConf -> GetLanguage ( ) ; $ breadcrumbs = self :: GetNavigationBreadCrumbs ( $ this -> sId , $ sEditLanguage ) ; $ this -> SaveField ( 'url_path' , $ breadcrumbs ) ; // now we also need to update all children of this category... $ oCategory = TdbShopCategory :: GetNewInstance ( ) ; $ oCategory -> SetLanguage ( $ sEditLanguage ) ; /** @var $oCategory TdbShopCategory */ if ( ! $ oCategory -> Load ( $ this -> sId ) ) { $ oCategory = null ; } else { $ oChildren = & $ oCategory -> GetChildren ( ) ; while ( $ oChild = $ oChildren -> Next ( ) ) { $ oEditor = new TCMSTableEditorManager ( ) ; /** @var $oEditor TCMSTableEditorManager */ $ oEditor -> Init ( $ this -> oTableConf -> id , $ oChild -> id , $ sEditLanguage ) ; $ oEditor -> AllowEditByAll ( $ this -> bAllowEditByAll ) ; $ oEditor -> SaveField ( 'name' , $ oChild -> fieldName , true ) ; } } }
update the page navi breadcrumb.
update the page navi breadcrumb .