TYPO3
7.6
|
Static Public Member Functions | |
static | isLastPartOfString ($haystack, $needle) |
static | beginsWith ($haystack, $needle) |
static | endsWith ($haystack, $needle) |
static | getUniqueId ($prefix= '') |
Class with helper functions for string handling
Definition at line 20 of file StringUtility.php.
|
static |
Returns TRUE if $haystack begins with $needle. The input string is not trimmed before and search is done case sensitive.
string | $haystack | Full string to check |
string | $needle | Reference string which must be found as the "first part" of the full string |
\InvalidArgumentException |
Definition at line 63 of file StringUtility.php.
Referenced by ContentObjectRenderer\_parseFunc(), TcaColumnsProcessPlaceholders\addData(), TcaInputPlaceholders\addData(), ExtensionManagementUtility\addFieldsToAllPalettesOfField(), ExtensionManagementUtility\addModulePath(), FileLinkHandler\canHandleLink(), TableController\changeFunc(), RsaEncryptionDecoder\decryptDataArray(), LinkHandler\fetchType(), TemplateService\flattenSetup(), SvgIconProvider\generateInlineMarkup(), BitmapIconProvider\generateMarkup(), SvgIconProvider\generateMarkup(), PathUtility\getAbsoluteWebPath(), FormEngineUtility\getIconHtml(), PostgresSpecifics\getNativeDefaultValue(), BackendUtility\getPagesTSconfig(), FrontendLoginController\isInCurrentDomain(), CliRequestHandler\loadCommandLineBackendUser(), NewContentElementController\main(), TcaMigration\migrateExtAndSysextPathToEXTPath(), TcaMigration\migrateIconfileRelativePathOrFilenameOnlyToExtReference(), TypoScriptParser\parseSub(), IconRegistry\registerTCAIcons(), ContentObjectRenderer\resolveMixedLinkParameter(), TypoScriptFrontendController\set_no_cache(), and RteHtmlParser\TS_links_rte().
|
static |
Returns TRUE if $haystack ends with $needle. The input string is not trimmed before and search is done case sensitive.
string | $haystack | Full string to check |
string | $needle | Reference string which must be found as the "last part" of the full string |
\InvalidArgumentException |
Definition at line 92 of file StringUtility.php.
Referenced by ContentObjectRenderer\_parseFunc(), FluidTemplateContentObject\applyStandardWrapToFluidPaths(), SystemInformationToolbarItem\getGitRevision(), FormEngineUtility\getIconHtml(), and IconRegistry\registerTCAIcons().
|
static |
This function generates a unique id by using the more entropy parameter. Furthermore the dots are removed so the id can be used inside HTML attributes e.g. id.
string | $prefix |
Definition at line 123 of file StringUtility.php.
Referenced by DatabaseUniqueUidNewRow\addData(), ImportExport\addSingle(), DirectoryNode\canFileBeCreated(), TestSetup\combineImages(), CommandLineBackend\decrypt(), GeneralUtility\flushDirectory(), GeneralUtility\generateRandomBytesFallback(), QueryGenerator\getDateTimePickerField(), DatabaseConnection\getSelectMmQueryParts(), DataHandler\insertNewCopyVersion(), RedisBackend\removeIdentifierEntriesAndRelations(), RsaInputElement\render(), SelectMultipleSideBySideElement\render(), SelectCheckBoxElement\render(), TextElement\render(), ImageManipulationElement\render(), SelectSingleBoxElement\renderSelectElement(), PackageManager\saveToPackageCache(), TestSetup\scaleImages(), FileBackend\set(), SimpleFileBackend\set(), and ImportExport\setRelations().
|
static |
Returns TRUE if $haystack ends with $needle. The input string is not trimmed before and search is done case sensitive.
string | $haystack | Full string to check |
string | $needle | Reference string which must be found as the "last part" of the full string |
\InvalidArgumentException |
Definition at line 33 of file StringUtility.php.
References GeneralUtility\logDeprecatedFunction().