Go to the documentation of this file.00001 <?php
00002
00006 class Manufacturer_Seo extends Object_Seo
00007 {
00013 public function save()
00014 {
00015 $oManufacturer = oxNew( 'oxbase' );
00016 $oManufacturer->init( 'oxmanufacturers' );
00017 if ( $oManufacturer->load( $this->getEditObjectId() ) ) {
00018 $oManufacturer->oxmanufacturers__oxshowsuffix = new oxField( (int) oxConfig::getParameter( 'blShowSuffix' ) );
00019 $oManufacturer->save();
00020 }
00021
00022 return parent::save();
00023 }
00024
00030 protected function _getEncoder()
00031 {
00032 return oxSeoEncoderManufacturer::getInstance();
00033 }
00034
00040 public function isSuffixSupported()
00041 {
00042 return true;
00043 }
00044
00050 protected function _getType()
00051 {
00052 return 'oxmanufacturer';
00053 }
00054
00060 public function isEntrySuffixed()
00061 {
00062 $oManufacturer = oxNew( 'oxmanufacturer' );
00063 if ( $oManufacturer->load( $this->getEditObjectId() ) ) {
00064 return (bool) $oManufacturer->oxmanufacturers__oxshowsuffix->value;
00065 }
00066 }
00067
00073 public function getEntryUri()
00074 {
00075 $oManufacturer = oxNew( 'oxmanufacturer' );
00076 if ( $oManufacturer->load( $this->getEditObjectId() ) ) {
00077 return $this->_getEncoder()->getManufacturerUri( $oManufacturer, $this->getEditLang() );
00078 }
00079 }
00080 }