ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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(), 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 ilPageObject\truncateHTML().
|
static |
Definition at line 182 of file class.ilStr.php.
References strPos(), and subStr().
Referenced by ilObjSystemFolder\_getHeaderTitleDescription(), ilObject\_writeDescription(), ilObjWikiGUI\editImportantPagesObject(), ilTree\fetchNodeData(), ilBookingReservationsTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilNewsForContextTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilECSNodeMappingCmsExplorer\formatObject(), ilECSNodeMappingLocalExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), SurveyMatrixQuestionEvaluation\getChart(), ILIAS\Container\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(), ilObject\setTitle(), and ilGlossaryTerm\shortenShortText().
|
static |
Ensure that the maximum word lenght within a text is not longer than $a_len.
@depends
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 Vendor\Package\$a, Vendor\Package\$b, and strToUpper().
Referenced by ILIAS\Cron\Job\Collection\OrderedJobEntities\__construct(), ILIAS\Mail\Attachments\MailAttachmentTableGUI\getRecords(), ilSamlIdpTableGUI\getRecords(), ilBadgePersonalTableGUI\getRows(), ILIAS\Forum\Notification\ForumNotificationTable\orderRecords(), LDAPRoleAssignmentTable\orderRecords(), LDAPRoleMappingTable\orderRecords(), ilMailTemplateTable\orderRecords(), ilArrayUtil\sort_func(), and ILIAS\Forum\Statistics\ForumStatisticsTable\sortedRecords().
|
static |
Definition at line 51 of file class.ilStr.php.
Referenced by ILIAS\Cron\Job\Manager\UI\JobTableFilterMediator\filteredJobs(), ilDidacticTemplateSettingsTableFilter\isFiltered(), and ilRTE\replaceLatexSpan().
|
static |
Definition at line 60 of file class.ilStr.php.
Referenced by ilMailValueObject\__construct(), ilICalWriter\addLine(), ilMail\checkMail(), ilMailValueObjectJsonService\convertFromJson(), assTextQuestion\countLetters(), ilUserAutoComplete\getList(), ilSecuritySettingsChecker\isPassword(), ilMailSearchGUI\lookupRecipientAsync(), ilMailFormGUI\lookupRecipientAsync(), ilBiblFileReaderBase\parseContentToEntries(), ilObjForumAccess\prepareMessageForLists(), ilRTE\replaceLatexSpan(), ILIAS\Cron\Job\JobResult\setMessage(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilMailNotification\setSubject(), shortenWords(), ILIAS\Refinery\String\Transformation\LevenshteinTransformation\stringToCharacterArray(), and ilExcCriteriaText\validate().
|
static |
Definition at line 39 of file class.ilStr.php.
Referenced by assTextQuestion\isKeywordMatching(), 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 ilObjectCustomUserFieldsPlaceholderValues\getPlaceholderValuesForPreview(), ilUserDefinedFieldsPlaceholderValues\getPlaceholderValuesForPreview(), ilObjectCustomUserFieldsPlaceholderDescription\initPlaceholders(), and strCmp().
|
static |
Definition at line 21 of file class.ilStr.php.
Referenced by ilMailSearchObjectMembershipsTableGUI\__construct(), ilICalWriter\addLine(), ilCertificateSettingsScormFormRepository\createForm(), ilForumAuthorInformation\init(), ilBiblFileReaderBase\parseContentToEntries(), ilObjForumAccess\prepareMessageForLists(), ilUserAvatarResolver\readUserSettings(), ilRTE\replaceLatexSpan(), ilCertificateCron\run(), ilSurveyParticipantsGUI\sendCodesMailObject(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilMailNotification\setSubject(), shortenTextExtended(), shortenWords(), ILIAS\Refinery\String\Transformation\LevenshteinTransformation\stringToCharacterArray(), and ilChatroomViewGUI\userEntry().