OXID eShop CE
6.1.5
|
Public Member Functions | |
__construct () | |
prepareCSVField ($sInField) | |
minimizeTruncateString ($sString, $iLength) | |
prepareStrForSearch ($sSearchStr) | |
String manipulation class
OxidEsales\EshopCommunity\Core\UtilsString::__construct | ( | ) |
Class constructor. The constructor is defined in order to be possible to call parent::__construct() in modules.
OxidEsales\EshopCommunity\Core\UtilsString::minimizeTruncateString | ( | $sString, | |
$iLength | |||
) |
shortens a string to a size $iLenght, multiple spaces are removed and leading and ending whitespaces are removed. If string ends with "," then "," is removed from string end
string | $sString | input string |
int | $iLength | maximum length of result string , -1 -> no truncation |
OxidEsales\EshopCommunity\Core\UtilsString::prepareCSVField | ( | $sInField | ) |
Prepares passed string for CSV format
string | $sInField | String to prepare |
OxidEsales\EshopCommunity\Core\UtilsString::prepareStrForSearch | ( | $sSearchStr | ) |
Prepares and returns string for search engines.
string | $sSearchStr | String to prepare for search engines |