-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
789 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
============== | ||
AppScope Trait | ||
============== | ||
|
||
.. php:trait:: AppScopeTrait | ||
Introduction | ||
============ | ||
|
||
Typical software design will create the application scope. Most frameworks | ||
relies on "static" properties, methods and classes. This does puts some | ||
limitations on your implementation (you can't have multiple applications). | ||
|
||
App Scope will pass the 'app' property into all the object that you're | ||
adding, so that you know for sure which application you work with:: | ||
|
||
Properties | ||
========== | ||
|
||
.. php:attr:: app | ||
Always points to current Application object | ||
|
||
.. php:attr:: max_name_length | ||
When using mechanism for ContainerTrait, they inherit name of the | ||
parent to generate unique name for a child. In a framework it makes | ||
sense if you have a unique identifiers for all the objects because | ||
this enables you to use them as session keys, get arguments, etc. | ||
|
||
Unfortunatelly if those keys become too long it may be a problem, | ||
so ContainerTrait contains a mechanism for auto-shortening the | ||
name based around max_name_length. The mechanism does only work | ||
if AppScopeTrait is used, $app property is set and has a | ||
max_name_length defined. | ||
Minimum value is 20. | ||
|
||
.. php:attr:: unique_hashes | ||
As more names are shortened, the substituted part is being placed into | ||
this hash and the value contains the new key. This helps to avoid creating | ||
many sequential prefixes for the same character sequenece. | ||
|
||
Methods | ||
======= | ||
|
||
None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
=========== | ||
Debug Trait | ||
=========== | ||
|
||
.. php:trait:: DebugTrait | ||
Introduction | ||
============ | ||
|
||
not yet implemented | ||
|
||
Properties | ||
========== | ||
|
||
Methods | ||
======= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.