ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | subStr (string $a_str, int $a_start, ?int $a_length=null) |
static | strPos (string $a_haystack, string $a_needle, ?int $a_offset=null) |
static | strIPos (string $a_haystack, string $a_needle, ?int $a_offset=null) |
static | strLen (string $a_string) |
static | strToLower (string $a_string) |
static | strToUpper (string $a_string) |
static | strCmp (string $a, string $b) |
static | shortenText (string $a_string, int $a_start_pos, int $a_num_bytes, string $a_encoding='UTF-8') |
Shorten text to the given number of bytes. More... | |
static | isUtf8 (string $a_str) |
Check whether string is utf-8. More... | |
static | convertUpperCamelCaseToUnderscoreCase (string $value) |
Convert a value given in camel case conversion to underscore case conversion (e.g. More... | |
static | shortenTextExtended (string $a_str, int $a_len, bool $a_dots=false, bool $a_next_blank=false, bool $a_keep_extension=false) |
static | shortenWords (string $a_str, int $a_len=30, bool $a_dots=true) |
Ensure that the maximum word lenght within a text is not longer than $a_len. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 22 of file class.ilStr.php.
|
static |
Convert a value given in camel case conversion to underscore case conversion (e.g.
MyClass to my_class)
string | $value | Value in lower camel case conversion |
Definition at line 171 of file class.ilStr.php.
Referenced by ilAbstractBuddySystemRelationStateButtonRenderer\__construct(), ilMailSearchObjectGUI\cancel(), ilContactUserActionProvider\collectActionsForTargetUser(), ilAbstractBuddySystemRelationStateButtonRenderer\renderStateButton(), and ilAbstractBuddySystemRelationStateButtonRenderer\renderTargetState().
|
static |
Check whether string is utf-8.
Definition at line 117 of file class.ilStr.php.
References Vendor\Package\$b, $c, and $i.
Referenced by ilObjLanguage\check(), ilDclTextFieldModel\checkTitlesForImport(), and ilDclBaseFieldModel\checkTitlesForImport().
|
static |
Shorten text to the given number of bytes.
If the character is cut within a character the invalid character will be shortened, too.
E.g: shortenText('€€€',4) will return '€'
Definition at line 102 of file class.ilStr.php.
Referenced by ilDBGenerator\shortenText(), and ilPageObject\truncateHTML().
|
static |
Definition at line 185 of file class.ilStr.php.
References strLen(), strPos(), and subStr().
Referenced by ilObjSystemFolder\_getHeaderTitleDescription(), ilObject\_writeDescription(), ilExcel\addSheet(), ilStudyProgrammeDashboardViewGUI\buildItem(), ilObjSystemFolder\delete(), ilObjWikiGUI\editImportantPagesObject(), ilTree\fetchNodeData(), ilLDAPRoleMappingTableGUI\fillRow(), ilNewsForContextTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilECSNodeMappingCmsExplorer\formatObject(), ilECSNodeMappingLocalExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilExplorer\formatObject(), SurveyMatrixQuestionEvaluation\getChart(), ilContainer\getCompleteDescriptions(), ilObjLinkResourceListGUI\getDescription(), ilPDSelectedItemsBlockSelectedItemsProvider\getItems(), ilDashboardRecommendedContentGUI\getListItemGroups(), ilPDSelectedItemsBlockMembershipsProvider\getObjectsByMembership(), ilMailNotification\getObjectTitle(), ilCalendarEntry\getPresentationTitle(), ilLMPresentationGUI\ilLocator(), ilObjWikiGUI\initSettingsForm(), ilSCORMExplorer\insertObject(), ilWikiPageTemplateGUI\listTemplates(), ilChartDataSpider\parseGlobalOptions(), ilLMNavigationRendererGUI\render(), ILIAS\Repository\Provider\RepositoryMainBarProvider\renderLastVisited(), ilMembershipCronNotifications\run(), ilObject\setDescription(), ilObject\setTitle(), and ilGlossaryDefinition\shortenShortText().
|
static |
Ensure that the maximum word lenght within a text is not longer than $a_len.
Definition at line 241 of file class.ilStr.php.
References $i, strLen(), and subStr().
Referenced by ilNewsForContextBlockGUI\getInfoForData(), and ilCalendarEntry\getPresentationTitle().
|
static |
Definition at line 90 of file class.ilStr.php.
References strToUpper().
Referenced by ilArrayUtil\sort_func().
|
static |
Definition at line 54 of file class.ilStr.php.
Referenced by ilCronManagerTableFilterMediator\filteredJobs(), ilMathJax\insertLatexImages(), ilDidacticTemplateSettingsTableFilter\isFiltered(), and ilPCParagraph\linkTermsInDom().
|
static |
Definition at line 63 of file class.ilStr.php.
Referenced by ilMailValueObject\__construct(), ilObjQuestionPool\_getFullPathToQpl(), ilICalWriter\addLine(), ilWikiPage\afterUpdate(), ilMail\checkMail(), SurveyTextQuestion\checkUserInput(), ilMailValueObjectJsonService\convertFromJson(), assTextQuestion\countLetters(), ilForumMailEventNotificationSender\createMailValueObjectsWithAttachments(), ilForumMailEventNotificationSender\createMailValueObjectWithoutAttachments(), ilMail\delegateExternalEmails(), ilUserAutoComplete\getList(), ilObjWikiGUI\gotoPageObject(), ilMathJax\insertLatexImages(), ilSecuritySettingsChecker\isPassword(), ilPCParagraph\linkTermsInDom(), ilMailSearchGUI\lookupRecipientAsync(), ilMailFormGUI\lookupRecipientAsync(), ilBiblFileReaderBase\parseContentToEntries(), ilObjForumAccess\prepareMessageForLists(), ilCronJobResult\setMessage(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilMailNotification\setSubject(), shortenTextExtended(), shortenWords(), ILIAS\Refinery\String\Transformation\LevenshteinTransformation\stringToCharacterArray(), and ilExcCriteriaText\validate().
|
static |
Definition at line 42 of file class.ilStr.php.
Referenced by assTextQuestion\isKeywordMatching(), ilPCParagraph\linkTermsInDom(), shortenTextExtended(), assOrderingHorizontal\splitAndTrimOrderElementText(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
|
static |
Definition at line 72 of file class.ilStr.php.
Referenced by assClozeTest\getTextgapPoints(), ilAuthProviderSaml\importUser(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
|
static |
Definition at line 81 of file class.ilStr.php.
Referenced by ilUserDefinedFieldsPlaceholderDescription\__construct(), ilObjectCustomUserFieldsPlaceholderValues\__construct(), ilUserDefinedFieldsPlaceholderValues\__construct(), ilObjectCustomUserFieldsPlaceholderValues\getPlaceholderValuesForPreview(), ilUserDefinedFieldsPlaceholderValues\getPlaceholderValuesForPreview(), ilObjectCustomUserFieldsPlaceholderDescription\initPlaceholders(), and strCmp().
|
static |
Definition at line 24 of file class.ilStr.php.
Referenced by ilMailSearchObjectMembershipsTableGUI\__construct(), ilObjQuestionPool\_getFullPathToQpl(), ilICalWriter\addLine(), ilLMObject\clipboardCopy(), ilCertificateSettingsScormFormRepository\createForm(), ilObjStyleSheet\createFromXMLFile(), ilForumAuthorInformation\getUserImagePath(), ilUserAvatarResolver\init(), ilForumAuthorInformation\init(), ilMathJax\insertLatexImages(), ilPCParagraph\linkTermsInDom(), ilChatroomViewGUI\lostConnection(), ilBiblFileReaderBase\parseContentToEntries(), ilObjForumAccess\prepareMessageForLists(), ilCronManagerImpl\runJob(), ilPageObject\saveStyleUsage(), SurveyTextQuestion\saveUserInput(), ilSurveyParticipantsGUI\sendCodesMailObject(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilMailNotification\setSubject(), shortenTextExtended(), shortenWords(), ILIAS\Refinery\String\Transformation\LevenshteinTransformation\stringToCharacterArray(), and ilObject\update().