diff options
author | javalizard@gmail.com <> | 2012-10-31 02:35:01 +0000 |
---|---|---|
committer | javalizard@gmail.com <> | 2012-10-31 02:35:01 +0000 |
commit | 9ed8e2fff531f9188dc55a99e3006f94edc59a5e (patch) | |
tree | 8218e8929c49a550c4031705b748760e469df735 /framework/Exceptions | |
parent | cd88852b2f67529a9071622988d7c4a76429a670 (diff) |
MAJOR UPGRADE to TComponent
This adds global 'fx' events, behaviors, class-wide behaviors, intra-object/behavior 'dy' events, and tweaks the raiseEvent to be more advanced (yet backward compatible). A large amount of documentation is in here too. Slight changes to the TApplication object is made to provide events with priorities. TComponent has a massive amount of test cases as well… There are now 512 assertions. Test cases have been added for testing the GetJS and SetJS and ensure functionality of these new getters and setters.
The Behaviors are all tested and fully integrated into the TComponent Object. Behaviors are more transparently and widely integrated into TComponent.
Class Behaviors rely on the global events to add behaviors to instanced objects. Class behaviors also allow for behaviors to be added during the instancing of new objects of the class.
Dynamic events enable the object to send events directly to behaviors as intra-object events. Dynamic events can be chained as multiple behaviors may implement the event. This allows for parameter filtering.
RaiseEvent allows for raising global events, capturing results, and feeding results forward into the next handlers parameters should the need arise. This is a forward thinking feature to enable new processes to be designed into the code for PRADO version 3.3 and future version 4.0. This functionality is transparent when unused.
We are hoping this is fully backward compatible with the existing code base. It was designed for maximum backward compatibility while expanding the functional base exponentially.
This clears the way for a new way of thinking about how objects relate.
Diffstat (limited to 'framework/Exceptions')
-rw-r--r-- | framework/Exceptions/messages/messages.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/Exceptions/messages/messages.txt b/framework/Exceptions/messages/messages.txt index 69fd89fc..468ea4e1 100644 --- a/framework/Exceptions/messages/messages.txt +++ b/framework/Exceptions/messages/messages.txt @@ -11,6 +11,10 @@ component_event_undefined = Component event '{0}.{1}' is not defined. component_eventhandler_invalid = Component event '{0}.{1}' is attached with an invalid event handler '{2}'. component_expression_invalid = Component '{0}' is evaluating an invalid expression '{1}' : {2}. component_statements_invalid = Component '{0}' is evaluating invalid PHP statements '{1}' : {2}. +component_class_behavior_defined = Component '{0}' already has a class behavior of '{1}'. +component_not_a_behavior = Component '{0}' is being added as behavior is not a TBaseBehavior. +component_no_tcomponent_class_behaviors = TComponent cannot have class behaviors attached due to recursion. +component_no_class_provided_nor_late_binding = Adding or Removing Class Behaviors must have PHP feature Late Static Binding or a class provided as a parameter propertyvalue_enumvalue_invalid = Value '{0}' is a not valid enumeration value ({1}). |