|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Tracks per overlay entry whether the current value still matches the value of the shipped .po (the distinction of lng_data.local_change), carried on the entry itself.
More...
Collaboration diagram for ILIAS\Language\ComponentTranslation\LocalChangeComments:Static Public Member Functions | |
| static | setOriginal (TranslationEntry $entry, string $value, ?int $form=null) |
| Does not touch "local_change": refresh() recomputes it right after. More... | |
| static | removeOriginal (TranslationEntry $entry, ?int $form=null) |
With $form null the "original" of a singular message, otherwise the one of that plural form. More... | |
| static | removeFormOriginals (TranslationEntry $entry) |
Removes the "original" of every plural form (original[<form>]:) - e.g. More... | |
| static | getOriginal (TranslationEntry $entry, ?int $form=null) |
| The decoded "original" value as passed to setOriginal(). More... | |
| static | setRemark (TranslationEntry $entry, ?string $remark) |
Sets the remark of $entry - null or '' removes it; cut to MAX_REMARK_LENGTH characters. More... | |
| static | setMergedIntoShipped (TranslationEntry $entry, bool $merged) |
Marks $entry as taken over into the shipped .po by "merge" (see ShippedPoMerger) - or removes the mark. More... | |
| static | isMergedIntoShipped (TranslationEntry $entry) |
| static | getRemark (TranslationEntry $entry) |
The decoded remark of $entry, exactly as it was passed to setRemark(), null without one. More... | |
| static | getLocalChange (TranslationEntry $entry) |
| static | getLocalChangeAsDatabaseTimestamp (TranslationEntry $entry) |
| getLocalChange() in the database's "Y-m-d H:i:s" (UTC) format, as used by lng_data.local_change, or null if unmodified or unparsable. More... | |
| static | refresh (TranslationEntry $entry, string $previous_value, string $value, DateTimeImmutable $now) |
| Called by MigratedLanguageFileSync::sync() for every entry it writes, after the new value was set. More... | |
| static | refreshForms (TranslationEntry $entry, array $previous_forms, array $forms, DateTimeImmutable $now) |
| refresh() for a plural message: $forms are its new forms, $previous_forms the ones before this write. More... | |
Data Fields | |
| const int | MAX_REMARK_LENGTH = 250 |
| How many characters of a remark are kept - like lng_data.remarks. More... | |
Static Private Member Functions | |
| static | originalPrefix (bool $escaped, ?int $form) |
| The comment prefix of an "original": "original: "/"original_escaped: " of a singular message, "original[<form>]: "/"original_escaped[<form>]: " of a plural form. More... | |
| static | setEscapable (TranslationEntry $entry, string $prefix, string $escaped_prefix, string $value) |
| Stores $value under $prefix, or under $escaped_prefix if it needs escaping (see needsEscaping()) - used by setOriginal() and setRemark(), which only differ in their prefixes. More... | |
| static | getEscapable (TranslationEntry $entry, string $prefix, string $escaped_prefix) |
The value stored under $escaped_prefix (decoded) or $prefix, null if neither is present - the read side of setEscapable(). More... | |
| static | find (TranslationEntry $entry, string $prefix) |
| static | replace (TranslationEntry $entry, string $prefix, ?string $value) |
| static | needsEscaping (string $value) |
| static | escape (string $value) |
| Reversible single-line encoding: a backslash is doubled, a line feed becomes backslash + "n" and a carriage return becomes backslash + "r". More... | |
| static | unescape (string $value) |
Private Attributes | |
| const string | ORIGINAL_PREFIX = 'original: ' |
| const string | ESCAPED_ORIGINAL_PREFIX = 'original_escaped: ' |
| const string | LOCAL_CHANGE_PREFIX = 'local_change: ' |
| const string | REMARK_PREFIX = 'remark: ' |
| const string | ESCAPED_REMARK_PREFIX = 'remark_escaped: ' |
| const string | MERGED_COMMENT = 'merged_into_shipped' |
Tracks per overlay entry whether the current value still matches the value of the shipped .po (the distinction of lng_data.local_change), carried on the entry itself.
Stored as gettext translator comments (# ...): the compiled .mo has no comment section, so this metadata is .po-only (like lng_data has metadata and lng_modules has none).
.po value of that moment. Ordinary writes never touch it, so an admin edit cannot move the baseline - except via sync()'s $refresh_original_from_shipped, for callers that vouch that $entries reflect the current shipped content: it is updated if the shipped value changed.original[<form>]:, or original_escaped[<form>]:) and one "local_change" for the whole message, present if any form differs (see refreshForms()).remark:, or encoded as remark_escaped: if it contains a line break or a backslash. Definition at line 47 of file LocalChangeComments.php.
|
staticprivate |
Reversible single-line encoding: a backslash is doubled, a line feed becomes backslash + "n" and a carriage return becomes backslash + "r".
Definition at line 304 of file LocalChangeComments.php.
|
staticprivate |
Definition at line 276 of file LocalChangeComments.php.
References $comment, and ILIAS\Language\ComponentTranslation\Catalog\TranslationEntry\getTranslatorComments().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeComments\getLocalChange().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
The value stored under $escaped_prefix (decoded) or $prefix, null if neither is present - the read side of setEscapable().
Definition at line 266 of file LocalChangeComments.php.
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeComments\getOriginal(), and ILIAS\Language\ComponentTranslation\LocalChangeComments\getRemark().
Here is the caller graph for this function:
|
static |
Definition at line 154 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\LocalChangeComments\find().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeComments\getLocalChangeAsDatabaseTimestamp(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testALegacyCommentWithABackslashIsMigratedToTheEscapedPrefixWithoutALocalChange(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testAnEmptyOriginalIsDistinctFromNoOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testANewlyMigratedEntryHasNoLocalChangeRightAfterOriginalIsSet(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testGetLocalChangeAsDatabaseTimestampIsNullForAnUnparsableTimestamp(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testOriginalKeepsLeadingAndTrailingWhitespaceExactly(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshClearsTheLocalChangeWhenTheValueIsSetBackToTheOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshComparesAMultiLineValueAgainstTheDecodedOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshDoesNotBumpAnAlreadyCurrentTimestampOnAnIdempotentResave(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshSetsALocalChangeTimestampWhenTheValueDiffersFromTheOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshTreatsAMissingOriginalAsAlwaysLocallyChanged(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshUpdatesAnExistingTimestampWhenTheValueChangesAgain(), and ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithOriginalAndLocalChangeOnTheSameEntry().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
getLocalChange() in the database's "Y-m-d H:i:s" (UTC) format, as used by lng_data.local_change, or null if unmodified or unparsable.
Definition at line 163 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\LocalChangeComments\getLocalChange().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testGetLocalChangeAsDatabaseTimestampConvertsTheIsoFormat(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testGetLocalChangeAsDatabaseTimestampIsNullForAnUnparsableTimestamp(), and ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testGetLocalChangeAsDatabaseTimestampIsNullWithoutALocalChange().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
The decoded "original" value as passed to setOriginal().
One written by an earlier version that flattened line breaks into spaces is returned as stored (the loss is permanent); the next reconciling sync rewrites it from the shipped value.
Definition at line 95 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\LocalChangeComments\getEscapable().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testALegacyCommentWithABackslashIsMigratedToTheEscapedPrefixWithoutALocalChange(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testALegacyOriginalCommentIsReadVerbatim(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testAnEmptyOriginalIsDistinctFromNoOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testANewlyMigratedEntryHasNoLocalChangeRightAfterOriginalIsSet(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testOriginalKeepsLeadingAndTrailingWhitespaceExactly(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshClearsTheLocalChangeWhenTheValueIsSetBackToTheOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshTreatsAMissingOriginalAsAlwaysLocallyChanged(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithOriginalAndLocalChangeOnTheSameEntry(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithPerFormOriginalsOfAPluralMessage(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemoveOriginalLeavesOtherCommentsAlone(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemoveOriginalRemovesBothTheLegacyAndTheEscapedPrefix(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetOriginalRemovesAStaleCommentOfTheOtherPrefix(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetOriginalWithADifferentValueReplacesTheOldOriginalInsteadOfAddingASecondOne(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSwitchingBetweenEscapedAndVerbatimValuesKeepsExactlyOneOriginalComment(), and ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testTheOriginalSurvivesAPoFileRoundTrip().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
The decoded remark of $entry, exactly as it was passed to setRemark(), null without one.
Definition at line 146 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\LocalChangeComments\getEscapable().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testGetRemarkIsNullWithoutOneSet(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithOriginalAndLocalChangeOnTheSameEntry(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithPerFormOriginalsOfAPluralMessage(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkAndGetRemarkRoundTripAPlainValueVerbatim(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkAtExactlyMaxRemarkLengthIsNotCut(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkEscapesALineBreakOrBackslashLikeSetOriginalDoes(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkIsCutToMaxRemarkLengthCharactersNotBytes(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkKeepsLeadingAndTrailingWhitespaceExactly(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkSwitchingBetweenEscapedAndPlainKeepsExactlyOneComment(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkWithAnEmptyStringRemovesIt(), and ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkWithNullRemovesAnExistingOne().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 138 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\Catalog\TranslationEntry\getTranslatorComments().
Here is the call graph for this function:
|
staticprivate |
Definition at line 295 of file LocalChangeComments.php.
|
staticprivate |
The comment prefix of an "original": "original: "/"original_escaped: " of a singular message, "original[<form>]: "/"original_escaped[<form>]: " of a plural form.
Definition at line 237 of file LocalChangeComments.php.
|
static |
Called by MigratedLanguageFileSync::sync() for every entry it writes, after the new value was set.
$previous_value avoids bumping the timestamp on an idempotent re-save of an already changed value.
Definition at line 178 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\LocalChangeComments\replace().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testALegacyCommentWithABackslashIsMigratedToTheEscapedPrefixWithoutALocalChange(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testAnEmptyOriginalIsDistinctFromNoOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testGetLocalChangeAsDatabaseTimestampConvertsTheIsoFormat(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testOriginalKeepsLeadingAndTrailingWhitespaceExactly(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshClearsTheLocalChangeWhenTheValueIsSetBackToTheOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshComparesAMultiLineValueAgainstTheDecodedOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshDoesNotBumpAnAlreadyCurrentTimestampOnAnIdempotentResave(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshNeverLeavesMoreThanOneLocalChangeCommentBehind(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshSetsALocalChangeTimestampWhenTheValueDiffersFromTheOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshTreatsAMissingOriginalAsAlwaysLocallyChanged(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshUpdatesAnExistingTimestampWhenTheValueChangesAgain(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithOriginalAndLocalChangeOnTheSameEntry(), and ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemoveOriginalLeavesOtherCommentsAlone().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
refresh() for a plural message: $forms are its new forms, $previous_forms the ones before this write.
"local_change" is present whenever any form differs from its "original" (or has none).
| list<string> | $previous_forms |
| list<string> | $forms |
Definition at line 206 of file LocalChangeComments.php.
|
static |
Removes the "original" of every plural form (original[<form>]:) - e.g.
when a plural message becomes a singular one.
Definition at line 81 of file LocalChangeComments.php.
References $comment, ILIAS\Language\ComponentTranslation\Catalog\TranslationEntry\getTranslatorComments(), and ILIAS\Language\ComponentTranslation\Catalog\TranslationEntry\removeTranslatorCommentsStartingWith().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithPerFormOriginalsOfAPluralMessage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
With $form null the "original" of a singular message, otherwise the one of that plural form.
Definition at line 71 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\LocalChangeComments\replace().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemoveOriginalLeavesOtherCommentsAlone(), and ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemoveOriginalRemovesBothTheLegacyAndTheEscapedPrefix().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 287 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\Catalog\TranslationEntry\addTranslatorComment(), and ILIAS\Language\ComponentTranslation\Catalog\TranslationEntry\removeTranslatorCommentsStartingWith().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeComments\refresh(), ILIAS\Language\ComponentTranslation\LocalChangeComments\removeOriginal(), and ILIAS\Language\ComponentTranslation\LocalChangeComments\setRemark().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Stores $value under $prefix, or under $escaped_prefix if it needs escaping (see needsEscaping()) - used by setOriginal() and setRemark(), which only differ in their prefixes.
Definition at line 248 of file LocalChangeComments.php.
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeComments\setOriginal(), and ILIAS\Language\ComponentTranslation\LocalChangeComments\setRemark().
Here is the caller graph for this function:
|
static |
Marks $entry as taken over into the shipped .po by "merge" (see ShippedPoMerger) - or removes the mark.
While the build does not serve that .po yet, MigratedLanguageFileSync::sync() keeps a marked entry in the overlay even though its value equals the shipped one.
Definition at line 130 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\Catalog\TranslationEntry\addTranslatorComment(), and ILIAS\Language\ComponentTranslation\Catalog\TranslationEntry\removeTranslatorCommentsStartingWith().
Here is the call graph for this function:
|
static |
Does not touch "local_change": refresh() recomputes it right after.
A comment is one PO line, so a value with a line break or a backslash is stored escaped ("original_escaped: ", see escape()); every other value verbatim under "original: ", as earlier versions wrote it.
Definition at line 63 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\LocalChangeComments\setEscapable().
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testALegacyCommentWithABackslashIsMigratedToTheEscapedPrefixWithoutALocalChange(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testAnEmptyOriginalIsDistinctFromNoOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testANewlyMigratedEntryHasNoLocalChangeRightAfterOriginalIsSet(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testAValueWithoutLineBreakOrBackslashIsStoredVerbatimUnderTheLegacyPrefix(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testGetLocalChangeAsDatabaseTimestampIsNullWithoutALocalChange(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testOriginalKeepsLeadingAndTrailingWhitespaceExactly(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshClearsTheLocalChangeWhenTheValueIsSetBackToTheOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshComparesAMultiLineValueAgainstTheDecodedOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshDoesNotBumpAnAlreadyCurrentTimestampOnAnIdempotentResave(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshNeverLeavesMoreThanOneLocalChangeCommentBehind(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshSetsALocalChangeTimestampWhenTheValueDiffersFromTheOriginal(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRefreshUpdatesAnExistingTimestampWhenTheValueChangesAgain(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithOriginalAndLocalChangeOnTheSameEntry(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithPerFormOriginalsOfAPluralMessage(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemoveOriginalLeavesOtherCommentsAlone(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetOriginalRemovesAStaleCommentOfTheOtherPrefix(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetOriginalWithADifferentValueReplacesTheOldOriginalInsteadOfAddingASecondOne(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetOriginalWithTheSameEscapedValueKeepsTheCommentOrderStable(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetOriginalWithTheSameValueKeepsTheCommentOrderStable(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSwitchingBetweenEscapedAndVerbatimValuesKeepsExactlyOneOriginalComment(), and ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testTheOriginalSurvivesAPoFileRoundTrip().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Sets the remark of $entry - null or '' removes it; cut to MAX_REMARK_LENGTH characters.
InvalidArgumentException for a remark that is not valid UTF-8 (the overlay would become unreadable)
Definition at line 111 of file LocalChangeComments.php.
References ILIAS\Language\ComponentTranslation\Catalog\TranslationEntry\getId(), ILIAS\Language\ComponentTranslation\LocalChangeComments\replace(), and ILIAS\Language\ComponentTranslation\LocalChangeComments\setEscapable().
Referenced by ImportUsesShippedValuesOfMigratedModulesTest\testAnEmptyRemarkRemovesTheLocalRemarkAndOtherwiseWritesNothing(), ImportUsesShippedValuesOfMigratedModulesTest\testDeleteModeImportDropsTheFormerOverlayRemarksAndKeepsTheImportedOnes(), ImportUsesShippedValuesOfMigratedModulesTest\testDeleteModeImportReplacesTheOverlayRemarkOfAPluralMessage(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithOriginalAndLocalChangeOnTheSameEntry(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testRemarkCoexistsWithPerFormOriginalsOfAPluralMessage(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkAndGetRemarkRoundTripAPlainValueVerbatim(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkAtExactlyMaxRemarkLengthIsNotCut(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkEscapesALineBreakOrBackslashLikeSetOriginalDoes(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkIsCutToMaxRemarkLengthCharactersNotBytes(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkKeepsLeadingAndTrailingWhitespaceExactly(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkSwitchingBetweenEscapedAndPlainKeepsExactlyOneComment(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkThrowsForInvalidUtf8(), ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkWithAnEmptyStringRemovesIt(), and ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkWithNullRemovesAnExistingOne().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 309 of file LocalChangeComments.php.
|
private |
Definition at line 50 of file LocalChangeComments.php.
|
private |
Definition at line 53 of file LocalChangeComments.php.
|
private |
Definition at line 51 of file LocalChangeComments.php.
| const int ILIAS\Language\ComponentTranslation\LocalChangeComments::MAX_REMARK_LENGTH = 250 |
How many characters of a remark are kept - like lng_data.remarks.
Definition at line 103 of file LocalChangeComments.php.
Referenced by ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkAtExactlyMaxRemarkLengthIsNotCut(), and ILIAS\Language\ComponentTranslation\LocalChangeCommentsTest\testSetRemarkIsCutToMaxRemarkLengthCharactersNotBytes().
|
private |
Definition at line 54 of file LocalChangeComments.php.
|
private |
Definition at line 49 of file LocalChangeComments.php.
|
private |
Definition at line 52 of file LocalChangeComments.php.