Components \ commerce \ affiliates administrators commissions payments \ configuration paymentmethods \ shippingmethods \ methods delivery discounts \ products brands categories \ recurringsales storedcards \ sales items \ receipts allocations \ customers \ contacts passwords referrertypes \ relationships types \ groups contacts \ marketing \ emailmarketing \ sends contacts unsubscribers \ events attendees locations \ reminders \ automation eventremindertrigger \ settings administrators components configurationitems cpanel customfields \ developer scheduledtasks threads domains \ website \ analytics sessions comments \ designs generator media pages \ posts categories Framework \ architecture publicassets \ assets css javascript \ caching filebased \ components textualids \ data util \ database mainconnection date \ dom currentcontext renderer \ html converters highlighter javascript \ http redirection request session useragent \ i18n companytypes countries languages \ network cidr dns geoip random \ reflection api \ system filenames filesystem toasts
.
.
.
quick access
\ methods

\Framework\Components\TextualIds::

Contains functions that work with textual ids

Class Methods

The following static methods are available on this class:
void generateIdFromString($strParentId, $strTitle)
Description
Generates a textual id from a parent id and a title
Parameters
$strParentId
string
$strTitle
string
Return
void
string getParent($strId)
Description
Determines a parent id of an id
Parameters
$strId
mixed
Return
or null
string makePartValid($strId, $bAllowDots)
Description
Makes a local part of an id valid

The id is made lower case

The following replacements are made: ' ' => '-' '%' => 'percent' '&' => 'and'

All non-alphanumeric values are stripped
Parameters
$strId
string
$bAllowDots
mixed
Return
string