[Added] handy methods
This commit is contained in:
parent
59f20ded50
commit
d4bfda93b7
@ -113,4 +113,20 @@ class ManufacturerInfoLongdesc extends AdminDetailsController
|
|||||||
{
|
{
|
||||||
return $aParams = Registry::getRequest()->getRequestEscapedParameter("editval")['oxmanufacturers__D3DESCRIPTION'];
|
return $aParams = Registry::getRequest()->getRequestEscapedParameter("editval")['oxmanufacturers__D3DESCRIPTION'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* inhaltliche Uebernahme analog Article_Main
|
||||||
|
* wird genutzt zum Abspeichern der Artikel-Langbeschreibung
|
||||||
|
*
|
||||||
|
* @param $sValue
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
protected function _processLongDesc($sValue)
|
||||||
|
{
|
||||||
|
$aSearch = ['&nbsp;', '&', '"', '&lang=', '<p> </p>', '<p> </p>'];
|
||||||
|
$aReplace = [' ', '&', '"', '&lang=', '', ''];
|
||||||
|
|
||||||
|
return str_replace($aSearch, $aReplace, $sValue);
|
||||||
|
}
|
||||||
}
|
}
|
@ -28,4 +28,12 @@ class D3ManufacturerLongDesc extends D3ManufacturerLongDesc_parent
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function d3GetLongdesc(): string
|
||||||
|
{
|
||||||
|
return $this->getFieldData(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user