Download???????????? TObject
????? ? ??????? ???????? ???????????? ??? ???????? ?? ????? ??? ?????? TObject, ??? ??????????? ?????? ??? Ascoos OS.
? TObject ??????? ??????? ??????????? ??? ?????????? ?????????, versioning, ?????????? ?? cache ??? ?????????????, ??????????? ?? ???? ??? ???? ??? ????? ???????.
??????
?? ???????????? ???? ????????????? ??? ?? ??????????????? ??? ???????? ??? TObject ?? ?????????? ???????, ????:
- ?????????? ????????? ???????????? (?.?., setProperty, getProperty).
- ?????? ? ???????? ????????? (?.?., freezeObject, isFreezed, isLocked).
- ??????????? ???????????? ??? ?????????? ?????????????.
????
?? ???????????? ????? ?????????? ?? ???? ?? namespace ASCOOS\OS\Kernel\Core\TObject ??? ???????? ?? ??? ????????????? ??? Ascoos OS:
- ???? ?????????? ????? ??? ???????? PHP ??????, ?? ????? ??? ??????????????? ?? ?????? ??? ??????????? (?.?., freezeObject.php).
- ? ?????????? ??? ?????? TObject ????????? ??? /docs/kernel/core/TObject/README-GR.md.
????????? ????????????
| ?????? ????????????? | ??????? | ????????? |
|----------------------|---------|-----------|
| batchUpdateProperties.php | batchUpdateProperties | ??????????? ??? ?????? ????????? ????????? ?? ?????????.
| cacheProperties.php | cacheProperties | ??????????? ??? ?????????? ????????? ???????????? ???? cache
| cloneObject.php | cloneObject | ??????????? ?? ?????????? ???? ???? ?????? ???? instance ??? TObject
| cloneProperties.php | cloneProperties | ??????????? ??? ??????????? ?????????
| compareProperties.php | compareProperties | ??????????? ?? ???????? ?????????
| executeBatchOperations.php | executeBatchOperations | ??????????? ??? ???????? ???? ?????? ???????????
| exportToJson.php | exportToJson | ??????????? ??? ??????? ???? instance ??? TObject ?? JSON
| Free.php | Free | ??????????? ??? ???????????? ??? ???????????? ??? ??? ????? ??? ????????????
| FreeProperties.php | FreeProperties | ???????????? ??? ???????????? ???? ??? ????????? ??? ????????????
| freezeObject.php | freezeObject | ??????????? ?? ?????? ???? ????????????
| getChildren.php | getChildren | ??????????? ??? ???????? ???????? ???????.
| getClassDeprecated.php | getClassDeprecated | ??????????? ??? ?????? ?????????? ??????
| getClassMetadata.php | getClassMetadata | ??????????? ??? ???????? ?????????????
| getClassVersion.php | getClassVersion | ??????????? ??? ???????? ??????? ??????
| getDeepProperty.php | getDeepProperty | ??????????? ??? ???????? ???? ??????? ?????????
| getDescendantsTree.php | getDescendantsTree | ??????????? ??? ???????? ???? ?????????? ??????? ???????? ???????
| getParents.php | getParents | ??????????? ??? ???????? ??????? ???????
| getProperty.php | getProperty | ??????????? ??? ???????? ???? ?????????
| getPropertyMetadata.php | getPropertyMetadata | ??????????? ??? ???????? ????????????? ?????????
| getPropertySnapshot.php | getPropertySnapshot | ??????????? ?? ???????? ???????????? ?????????
| hasProperty.php | hasProperty | ??????????? ??? ?????? ??????? ?????????
| hasRequiredProperties.php | hasRequiredProperties | ??????????? ??? ?????? ???????????? ?????????
| invalidateCache.php | invalidateCache | ??????????? ??? ??????? cached ?????????
| invokeMethod.php | invokeMethod | ??????????? ??? ???????? ????? ???? ???????
| isCallableMethod.php | isCallableMethod | ??????? ??? ??? ??????? ?????? ?? ??????
| isExecutable.php | isExecutable | ??????? ??? ? ????? ????? ??????????
| isFreezed.php | isFreezed | ??????? ?? ?? ????????? ???? ???????????? ????? ?????????. |
| isLocked.php | isLocked | ??????? ?? ?? ????????? ???? ???????????? ????? ???????????. |
| isPropertyModified.php | isPropertyModified | ??????? ?? ??? ???????? ???? ????????????
| lockProperties.php | lockProperties | ??????????? ?? ???????? ??? ????????? ??? ????????????
| mergeProperties.php | mergeProperties | ??????????? ?? ?????????? ????????? ?? ???????????? ??????????? overwrite, merge ? append.
| Properties.php | setProperty, getProperty | ??????????? ??? ???????? ??? ???????? ?????????
| PropertySnapshot.php | getPropertySnapshot, setPropertySnapshot | ??????????? ?? ?????????? ??? ???????? ???? ???????????? ?????????
| propertyValidation.php | propertyValidation | ??????? ?? ?? ?????? ???? ????????? ????? ???????????? ? ????????
| resetProperties.php | resetProperties | ??????????? ??? ????????? ???? ?????? ????????? ??? ????????? ????????????
| restoreFromCache.php | restoreFromCache | ??????????? ??? ????????? ????????? ???????????? ??? ?? cache
| serializeToArray.php | serializeToArray | ??????????? ?? ???????????? ???? instance ??? TObject ?? ??????
| setDeepProperty.php | setDeepProperty | ??????????? ??? ???????? ???? ??????? ?????????
| setProjectVersion.php | setProjectVersion | ??????????? ??? ???????? ??????? ?????
| setProperty.php | setProperty | ??????????? ??? ???????? ???? ???? ?????????
| trackPropertyChanges.php | trackPropertyChanges | ??????????? ??? ????????????? ??????? ?????????
| unfreezeObject.php | unfreezeObject | ??????????? ??? ??????? ???? ????????????
| unlockProperties.php | unlockProperties | ??????????? ?? ?????????? ??? ????????? ??? ????????????
| validatePropertyConstraints.php | validatePropertyConstraints | ??????????? ??? ????????? ??????????? ?????????
| (??????????? ???????????? ?? ??????????) | | |
??????????
-
??????????? ??? ?? Ascoos OS ????? ????????????? (????? ?? ????? ??????????). ??? ??????????????? ??? ?????? ?????????
ASCOOS Web Extended Studio (AWES) ???? ??? ?????????? ?? ????????????? ?? `Ascoos OS` ????? ????? ?????????? ?? ?????????????.
-
??????????? ??? ?????? ????????????? ??? `/examples/kernel/core/TObject/`.
-
????????? ?? PHP ?????? (?.?., `https://localhost/aos/examples/kernel/core/TObject/freezeObject.php`) ??? ?? ????? ?? ??????????.
?????????? ??????
use ASCOOS\OS\Kernel\Core\TObject;
$object = new TObject(['name' => 'TestObject']);
$object->freezeObject();
echo $object->isFreezed() ? "?? ??????????? ????? ????????\n" : "?? ??????????? ??? ????? ????????\n";
?????
??????????
?????? ?? ?????????? ??????????? ????????????; ????? fork ?? ??????????, ???????????? ??? ??? ?????? ????????????? ??? ????????? pull request. ????? ?? CONTRIBUTING.md ??? ???????.
????? ??????
?? ???????????? ???? ?????????? ???? Ascoos General License (AGL). ????? ?? LICENSE.
|