ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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=0) |
static | strIPos (string $a_haystack, string $a_needle, int $a_offset=0) |
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 19 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 168 of file class.ilStr.php.
Referenced by ilAbstractBuddySystemRelationStateButtonRenderer\__construct(), ilMailSearchObjectGUI\cancel(), ilContactUserActionProvider\collectActionsForTargetUser(), ilAbstractBuddySystemRelationState\getSnakeName(), ilAbstractBuddySystemRelationStateButtonRenderer\renderStateButton(), and ilAbstractBuddySystemRelationStateButtonRenderer\renderTargetState().
|
static |
Check whether string is utf-8.
Definition at line 114 of file class.ilStr.php.
References Vendor\Package\$b, and $c.
Referenced by ilObjLanguage\check().
|
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 99 of file class.ilStr.php.
Referenced by ilDBGenerator\shortenText(), and ilPageObject\truncateHTML().
|
static |
Definition at line 182 of file class.ilStr.php.
References strLen(), strPos(), and subStr().
Referenced by ilObjSystemFolder\_getHeaderTitleDescription(), ilObject\_writeDescription(), ilExcel\addSheet(), ilObjSystemFolder\delete(), ilObjWikiGUI\editImportantPagesObject(), ilTree\fetchNodeData(), ilNewsForContextTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilECSNodeMappingCmsExplorer\formatObject(), ilECSNodeMappingLocalExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilExplorer\formatObject(), SurveyMatrixQuestionEvaluation\getChart(), ILIAS\UI\Component\Legacy\Content\ItemSetManager\getCompleteDescriptions(), ilContainer\getCompleteDescriptions(), ILIAS\components\ILIAS\Glossary\Table\TermListTable\getDataRetrieval(), ilObjLinkResourceListGUI\getDescription(), ilPDSelectedItemsBlockSelectedItemsProvider\getItems(), ilPDSelectedItemsBlockMembershipsProvider\getObjectsByMembership(), ilMailNotification\getObjectTitle(), ilCalendarEntry\getPresentationTitle(), ilPresentationTableGUI\getShortTextForTerm(), ILIAS\Wiki\Settings\SettingsManager\getStartPageOptions(), ilLMPresentationGUI\ilLocator(), ilDashboardRecommendedContentGUI\initData(), LDAPRoleMappingTable\initRecords(), ilSCORMExplorer\insertObject(), ilWikiPageTemplateGUI\listTemplates(), ilChartDataSpider\parseGlobalOptions(), ilLMNavigationRendererGUI\render(), ILIAS\Repository\Provider\RepositoryMainBarProvider\renderLastVisited(), ilMembershipCronNotifications\run(), ilObject\setTitle(), and ilGlossaryTerm\shortenShortText().
|
static |
Ensure that the maximum word lenght within a text is not longer than $a_len.
Definition at line 238 of file class.ilStr.php.
References strLen(), and subStr().
Referenced by ilNewsForContextBlockGUI\getInfoForData(), and ilCalendarEntry\getPresentationTitle().
|
static |
Definition at line 87 of file class.ilStr.php.
References strToUpper().
Referenced by ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\__construct(), ILIAS\Mail\Attachments\MailAttachmentTableGUI\getRecords(), ilSamlIdpTableGUI\getRecords(), ilBadgePersonalTableGUI\getRows(), ilMailTemplateTable\orderRecords(), LDAPRoleMappingTable\orderRecords(), LDAPRoleAssignmentTable\orderRecords(), ILIAS\Forum\Notification\ForumNotificationTable\orderRecords(), ilArrayUtil\sort_func(), and ILIAS\Forum\Statistics\ForumStatisticsTable\sortedRecords().
|
static |
Definition at line 51 of file class.ilStr.php.
Referenced by ILIAS\BackgroundTasks\Task\Job\Manager\UI\JobTableFilterMediator\filteredJobs(), ilDidacticTemplateSettingsTableFilter\isFiltered(), ilPCParagraph\linkTermsInDom(), and ilRTE\replaceLatexSpan().
|
static |
Definition at line 60 of file class.ilStr.php.
Referenced by ilMailValueObject\__construct(), ilICalWriter\addLine(), ilWikiPage\afterUpdate(), ilMail\checkMail(), SurveyTextQuestion\checkUserInput(), ilMailValueObjectJsonService\convertFromJson(), assTextQuestion\countLetters(), ilForumMailEventNotificationSender\createMailValueObjectsWithAttachments(), ilForumMailEventNotificationSender\createMailValueObjectWithoutAttachments(), ilMail\delegateExternalEmails(), ilUserAutoComplete\getList(), ilObjWikiGUI\gotoPageObject(), ilSecuritySettingsChecker\isPassword(), ilPCParagraph\linkTermsInDom(), ilMailSearchGUI\lookupRecipientAsync(), ilMailFormGUI\lookupRecipientAsync(), ilBiblFileReaderBase\parseContentToEntries(), ilObjForumAccess\prepareMessageForLists(), ilRTE\replaceLatexSpan(), ILIAS\BackgroundTasks\Task\Job\JobResult\setMessage(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilMailNotification\setSubject(), shortenTextExtended(), shortenWords(), ILIAS\Refinery\String\Transformation\LevenshteinTransformation\stringToCharacterArray(), and ilExcCriteriaText\validate().
|
static |
Definition at line 39 of file class.ilStr.php.
Referenced by assTextQuestion\isKeywordMatching(), ilPCParagraph\linkTermsInDom(), shortenTextExtended(), assOrderingHorizontal\splitAndTrimOrderElementText(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
|
static |
Definition at line 69 of file class.ilStr.php.
Referenced by assClozeTest\getTextgapPoints(), ilAuthProviderSaml\importUser(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
|
static |
Definition at line 78 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 21 of file class.ilStr.php.
References null.
Referenced by ilMailSearchObjectMembershipsTableGUI\__construct(), ilICalWriter\addLine(), ilLMObject\clipboardCopy(), ilCertificateSettingsScormFormRepository\createForm(), ilObjStyleSheet\createFromXMLFile(), ilForumAuthorInformation\getUserImagePath(), ilForumAuthorInformation\init(), ilPCParagraph\linkTermsInDom(), ilChatroomViewGUI\lostConnection(), ilBiblFileReaderBase\parseContentToEntries(), ilObjForumAccess\prepareMessageForLists(), ilUserAvatarResolver\readUserSettings(), ilRTE\replaceLatexSpan(), ilCertificateCron\run(), ILIAS\BackgroundTasks\Task\Job\Manager\JobManagerImpl\runJob(), ILIAS\Style\StyleManager\saveStyleUsage(), SurveyTextQuestion\saveUserInput(), ilSurveyParticipantsGUI\sendCodesMailObject(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilMailNotification\setSubject(), shortenTextExtended(), shortenWords(), ILIAS\Refinery\String\Transformation\LevenshteinTransformation\stringToCharacterArray(), and ilChatroomViewGUI\userEntry().