|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilStr: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(), ilContactUserActionProvider\collectActionsForTargetUser(), ilAbstractBuddySystemRelationStateButtonRenderer\renderStateButton(), and ilAbstractBuddySystemRelationStateButtonRenderer\renderTargetState().
Here is the caller graph for this function:
|
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(), ilDclBaseFieldModel\checkTitlesForImport(), and ilDclTextFieldModel\checkTitlesForImport().
Here is the caller graph for this function:
|
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 ilPageObject\truncateHTML().
Here is the caller graph for this function:
|
static |
Definition at line 185 of file class.ilStr.php.
References strPos(), and subStr().
Referenced by ilObjSystemFolder\_getHeaderTitleDescription(), ilObject\_writeDescription(), ilObjWikiGUI\editImportantPagesObject(), ilTree\fetchNodeData(), ilAssignmentsTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilLDAPRoleMappingTableGUI\fillRow(), ilNewsForContextTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilECSNodeMappingCmsExplorer\formatObject(), ilECSNodeMappingLocalExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), SurveyMatrixQuestionEvaluation\getChart(), ilContainer\getCompleteDescriptions(), ilObjLinkResourceListGUI\getDescription(), ilPDSelectedItemsBlockSelectedItemsProvider\getItems(), ilPDSelectedItemsBlockMembershipsProvider\getObjectsByMembership(), ilMailNotification\getObjectTitle(), ilCalendarEntry\getPresentationTitle(), ilLMPresentationGUI\ilLocator(), ilObjWikiGUI\initSettingsForm(), ilSCORMExplorer\insertObject(), ilWikiPageTemplateGUI\listTemplates(), ilChartDataSpider\parseGlobalOptions(), ilLMNavigationRendererGUI\render(), ILIAS\Repository\Provider\RepositoryMainBarProvider\renderLastVisited(), ilObject\setDescription(), ilObject\setTitle(), and ilGlossaryDefinition\shortenShortText().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Ensure that the maximum word lenght within a text is not longer than $a_len.
@depends
Definition at line 241 of file class.ilStr.php.
References $i, strLen(), and subStr().
Referenced by ilNewsForContextBlockGUI\getInfoForData(), and ilCalendarEntry\getPresentationTitle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 90 of file class.ilStr.php.
References Vendor\Package\$a, Vendor\Package\$b, and strToUpper().
Referenced by ilArrayUtil\sort_func().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 54 of file class.ilStr.php.
Referenced by ilCronManagerTableFilterMediator\filteredJobs(), ilMathJax\insertLatexImages(), and ilDidacticTemplateSettingsTableFilter\isFiltered().
Here is the caller graph for this function:
|
static |
Definition at line 63 of file class.ilStr.php.
Referenced by ilMailValueObject\__construct(), ilObjQuestionPool\_getFullPathToQpl(), ilICalWriter\addLine(), ilMail\checkMail(), ilMailValueObjectJsonService\convertFromJson(), assTextQuestion\countLetters(), ilUserAutoComplete\getList(), ilMathJax\insertLatexImages(), ilSecuritySettingsChecker\isPassword(), ilMailSearchGUI\lookupRecipientAsync(), ilMailFormGUI\lookupRecipientAsync(), ilBiblFileReaderBase\parseContentToEntries(), ilObjForumAccess\prepareMessageForLists(), ilCronJobResult\setMessage(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilMailNotification\setSubject(), shortenWords(), ILIAS\Refinery\String\Transformation\LevenshteinTransformation\stringToCharacterArray(), and ilExcCriteriaText\validate().
Here is the caller graph for this function:
|
static |
Definition at line 42 of file class.ilStr.php.
Referenced by assTextQuestion\isKeywordMatching(), shortenTextExtended(), assOrderingHorizontal\splitAndTrimOrderElementText(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
Here is the caller graph for this function:
|
static |
Definition at line 72 of file class.ilStr.php.
Referenced by assClozeTest\getTextgapPoints(), ilAuthProviderSaml\importUser(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
Here is the caller graph for this function:
|
static |
Definition at line 81 of file class.ilStr.php.
Referenced by ilUserDefinedFieldsPlaceholderDescription\__construct(), ilObjectCustomUserFieldsPlaceholderValues\getPlaceholderValuesForPreview(), ilUserDefinedFieldsPlaceholderValues\getPlaceholderValuesForPreview(), ilObjectCustomUserFieldsPlaceholderDescription\initPlaceholders(), and strCmp().
Here is the caller graph for this function:
|
static |
Definition at line 24 of file class.ilStr.php.
Referenced by ilMailSearchObjectMembershipsTableGUI\__construct(), ilObjQuestionPool\_getFullPathToQpl(), ilICalWriter\addLine(), ilCertificateSettingsScormFormRepository\createForm(), ilForumAuthorInformation\init(), ilUserAvatarResolver\init(), ilMathJax\insertLatexImages(), ilBiblFileReaderBase\parseContentToEntries(), ilObjForumAccess\prepareMessageForLists(), ilCronManagerImpl\runJob(), ilSurveyParticipantsGUI\sendCodesMailObject(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilMailNotification\setSubject(), shortenTextExtended(), shortenWords(), ILIAS\Refinery\String\Transformation\LevenshteinTransformation\stringToCharacterArray(), and ilObject\update().
Here is the caller graph for this function: