OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\UtilsString Class Reference

Public Member Functions

 __construct ()
 
 prepareCSVField ($sInField)
 
 minimizeTruncateString ($sString, $iLength)
 
 prepareStrForSearch ($sSearchStr)
 

Detailed Description

String manipulation class

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Core\UtilsString::__construct ( )

Class constructor. The constructor is defined in order to be possible to call parent::__construct() in modules.

Member Function Documentation

◆ minimizeTruncateString()

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

Parameters
string$sStringinput string
int$iLengthmaximum length of result string , -1 -> no truncation
Returns
string a string of maximum length $iLength without multiple spaces and commas

◆ prepareCSVField()

OxidEsales\EshopCommunity\Core\UtilsString::prepareCSVField (   $sInField)

Prepares passed string for CSV format

Parameters
string$sInFieldString to prepare
Returns
string

◆ prepareStrForSearch()

OxidEsales\EshopCommunity\Core\UtilsString::prepareStrForSearch (   $sSearchStr)

Prepares and returns string for search engines.

Parameters
string$sSearchStrString to prepare for search engines
Returns
string

The documentation for this class was generated from the following file: