From 705737294ee53b5b1a2f2a832a20ee3bd11691ab Mon Sep 17 00:00:00 2001
From: Fabio Bas
+With the addition of behaviors, a more expansive event model is needed. There +are two new event types (global and dynamic events) as well as a more comprehensive +behavior model that includes class wide behaviors. +
++A global event is defined by all events whose name starts with 'fx'. +The event name is potentially a method name and is thus case-insensitive. All 'fx' events +are valid as the whole 'fx' event/method space is global in nature. Any object may patch into +any global event by defining that event as a method. Global events have priorities +just like 'on' events; so as to be able to order the event execution. Due to the +nature of all events which start with 'fx' being valid, in effect, every object +has every 'fx' global event. It is simply an issue of tapping into the desired +global event. +
++A global event that starts with 'fx' can be called even if the object does not +implement the method of the global event. A call to a non-existing 'fx' method +will, at minimal, function and return null. If a method argument list has a first +parameter, it will be returned instead of null. This allows filtering and chaining. +'fx' methods do not automatically install and uninstall. To install and uninstall an +object's global event listeners, call the object's listen and +unlisten methods, respectively. An object may auto-install its global event +during __construct by overriding getAutoGlobalListen and returning true. +
++As of PHP version 5.3, nulled objects without code references will still continue to persist +in the global event queue because __destruct is not automatically called. In the common +__destruct method, if an object is listening to global events, then unlisten is called. +unlisten is required to be manually called before an object is +left without references if it is currently listening to any global events. This includes +class wide behaviors. +
++An object that contains a method that starts with 'fx' will have those functions +automatically receive those events of the same name after listen is called on the object. +
++An object may listen to a global event without defining an 'fx' method of the same name by +adding an object method to the global event list. For example +
++An intra-object/behavior event is defined by methods that start with 'dy'. Just as with +'fx' global events, every object has every dynamic event. Any call to a method that +starts with 'dy' will be handled, regardless of whether it is implemented. These +events are for communicating with attached behaviors. +
++Dynamic events can be used in a variety of ways. They can be used to tell behaviors +when a non-behavior method is called. Dynamic events could be used as data filters. +They could also be used to specify when a piece of code is to be run, eg. should the +loop process be performed on a particular piece of data. In this way, some control +is handed to the behaviors over the process and/or data. +
++If there are no handlers for an 'fx' or 'dy' event, it will return the first +parameter of the argument list. If there are no arguments, these events +will return null. If there are handlers an 'fx' method will be called directly +within the object. Global 'fx' events are triggered by calling raiseEvent. +For dynamic events where there are behaviors that respond to the dynamic events, a +TCallChain is developed. A call chain allows the behavior dynamic event +implementations to call further implementing behaviors within a chain. +
++If an object implements IDynamicMethods, all global and object dynamic +events will be sent to __dycall. In the case of global events, all +global events will trigger this method. In the case of behaviors, all undefined +dynamic events which are called will be passed through to this method. +
++
+There are two types of behaviors. There are individual object behaviors and +there are class wide behaviors. Class behaviors depend upon object behaviors. +
++When a new class implements IBehavior or IClassBehavior or +extends TBehavior or TClassBehavior, it may be added to an +object by calling the object's attachBehavior. The behaviors associated +name can then be used to enableBehavior or disableBehavior +the specific behavior. +
++All behaviors may be turned on and off via enableBehaviors and +disableBehaviors, respectively. To check if behaviors are on or off +a call to getBehaviorsEnabled will provide the variable. +
++Attaching and detaching whole sets of behaviors is done using +attachBehaviors and detachBehaviors. clearBehaviors +removes all of an object's behaviors. +
++asa returns a behavior of a specific name. isa is the +behavior inclusive function that acts as the PHP operator instanceof. +A behavior could provide the functionality of a specific class thus causing +the host object to act similarly to a completely different class. A behavior +would then implement IInstanceCheck to provide the identity of the +different class. +
++Class behaviors are similar to object behaviors except that the class behavior +is the implementation for all instances of the class. A class behavior +will have the object upon which is being called be prepended to the parameter +list. This way the object is known across the class behavior implementation. +
++Class behaviors are attached using attachClassBehavior and detached +using detachClassBehavior. Class behaviors are important in that +they will be applied to all new instances of a particular class. In this way +class behaviors become default behaviors to a new instances of a class in +__construct. Detaching a class behavior will remove the behavior +from the default set of behaviors created for an object when the object +is instanced. +
++Class behaviors are also added to all existing instances via the global 'fx' +event mechanism. When a new class behavior is added, the event +fxAttachClassBehavior is raised and all existing instances that are +listening to this global event (primarily after listen is called) +will have this new behavior attached. A similar process is used when +detaching class behaviors. Any objects listening to the global 'fx' event +fxDetachClassBehavior will have a class behavior removed. +
++Dynamic events start with 'dy'. This mechanism is used to allow objects +to communicate with their behaviors directly. The entire 'dy' event space +is valid. All attached, enabled behaviors that implement a dynamic event +are called when the host object calls the dynamic event. If there is no +implementation or behaviors, this returns null when no parameters are +supplied and will return the first parameter when there is at least one +parameter in the dynamic event. +
++Dynamic events can be chained together within behaviors to allow for data +filtering. Dynamic events are implemented within behaviors by defining the +event as a method. +
++This implementation of a behavior and dynamic event will flow through to the +next behavior implementing the dynamic event. The first parameter is always +return when it is supplied. Otherwise a dynamic event returns null. +
++In the case of a class behavior, the object is also prepended to the dynamic +event. +
++When calling a dynamic event, only the parameters are passed. The host object +and the call chain are built into the framework. +
+ ++Given that all global 'fx' events and dynamic 'dy' events are valid and +operational, there is a mechanism for catching events called that are not +implemented (similar to the built-in PHP method __call). When +a dynamic or global event is called but a behavior does not implement it, +yet desires to know when an undefined dynamic event is run, the behavior +implements the interface IDynamicMethods and method __dycall. +
++In the case of dynamic events, __dycall is supplied with the method +name and its parameters. When a global event is raised, via raiseEvent, +the method is the event name and the parameters are supplied. +
++When implemented, this catch-all mechanism is called for event global event event +when implemented outside of a behavior. Within a behavior, it will also be called +when the object to which the behavior is attached calls any unimplemented dynamic +event. This is the fall-back mechanism for informing a class and/or behavior +of when an global and/or undefined dynamic event is executed.
Version 3.2.2
+
Version 3.2.3
Copyright© 2004-2013 by Prado Software
All Rights Reserved.
+
With the addition of behaviors, a more expansive event model is needed. There are two new event types (global and dynamic events) as well as a more comprehensive behavior model that includes class wide behaviors.
-+
A global event is defined by all events whose name starts with 'fx'. The event name is potentially a method name and is thus case-insensitive. All 'fx' events are valid as the whole 'fx' event/method space is global in nature. Any object may patch into @@ -121,7 +121,7 @@ nature of all events which start with 'fx' being valid, in effect, every object has every 'fx' global event. It is simply an issue of tapping into the desired global event.
-+
A global event that starts with 'fx' can be called even if the object does not implement the method of the global event. A call to a non-existing 'fx' method will, at minimal, function and return null. If a method argument list has a first @@ -131,7 +131,7 @@ object's global event listeners, call the object's listen and unlisten methods, respectively. An object may auto-install its global event during __construct by overriding getAutoGlobalListen and returning true.
-+
As of PHP version 5.3, nulled objects without code references will still continue to persist in the global event queue because __destruct is not automatically called. In the common __destruct method, if an object is listening to global events, then unlisten is called. @@ -139,11 +139,11 @@ __destruct method, if an object is listening to global events, then unlisten left without references if it is currently listening to any global events. This includes class wide behaviors.
-+
An object that contains a method that starts with 'fx' will have those functions automatically receive those events of the same name after listen is called on the object.
-+
An object may listen to a global event without defining an 'fx' method of the same name by adding an object method to the global event list. For example
@@ -151,21 +151,21 @@ adding an object method to the global event list. For example $component->fxGlobalCheck=$callback; // or $component->OnClick->add($callback); $component->attachEventHandler('fxGlobalCheck',array($object, 'someMethod')); -+
An intra-object/behavior event is defined by methods that start with 'dy'. Just as with 'fx' global events, every object has every dynamic event. Any call to a method that starts with 'dy' will be handled, regardless of whether it is implemented. These events are for communicating with attached behaviors.
-+
Dynamic events can be used in a variety of ways. They can be used to tell behaviors when a non-behavior method is called. Dynamic events could be used as data filters. They could also be used to specify when a piece of code is to be run, eg. should the loop process be performed on a particular piece of data. In this way, some control is handed to the behaviors over the process and/or data.
-+
If there are no handlers for an 'fx' or 'dy' event, it will return the first parameter of the argument list. If there are no arguments, these events will return null. If there are handlers an 'fx' method will be called directly @@ -174,36 +174,36 @@ For dynamic events where there are behaviors that respond to the dynamic events, TCallChain is developed. A call chain allows the behavior dynamic event implementations to call further implementing behaviors within a chain.
-+
If an object implements IDynamicMethods, all global and object dynamic events will be sent to __dycall. In the case of global events, all global events will trigger this method. In the case of behaviors, all undefined dynamic events which are called will be passed through to this method.
--
+
+
There are two types of behaviors. There are individual object behaviors and there are class wide behaviors. Class behaviors depend upon object behaviors.
-+
When a new class implements IBehavior or IClassBehavior or extends TBehavior or TClassBehavior, it may be added to an object by calling the object's attachBehavior. The behaviors associated name can then be used to enableBehavior or disableBehavior the specific behavior.
-+
All behaviors may be turned on and off via enableBehaviors and disableBehaviors, respectively. To check if behaviors are on or off a call to getBehaviorsEnabled will provide the variable.
-+
Attaching and detaching whole sets of behaviors is done using attachBehaviors and detachBehaviors. clearBehaviors removes all of an object's behaviors.
-+
asa returns a behavior of a specific name. isa is the behavior inclusive function that acts as the PHP operator instanceof. A behavior could provide the functionality of a specific class thus causing @@ -211,13 +211,13 @@ the host object to act similarly to a completely different class. A behavior would then implement IInstanceCheck to provide the identity of the different class.
-+
Class behaviors are similar to object behaviors except that the class behavior is the implementation for all instances of the class. A class behavior will have the object upon which is being called be prepended to the parameter list. This way the object is known across the class behavior implementation.
-+
Class behaviors are attached using attachClassBehavior and detached using detachClassBehavior. Class behaviors are important in that they will be applied to all new instances of a particular class. In this way @@ -226,7 +226,7 @@ class behaviors become default behaviors to a new instances of a class in from the default set of behaviors created for an object when the object is instanced.
-+
Class behaviors are also added to all existing instances via the global 'fx' event mechanism. When a new class behavior is added, the event fxAttachClassBehavior is raised and all existing instances that are @@ -235,8 +235,8 @@ will have this new behavior attached. A similar process is used when detaching class behaviors. Any objects listening to the global 'fx' event fxDetachClassBehavior will have a class behavior removed.
-+
Dynamic events start with 'dy'. This mechanism is used to allow objects to communicate with their behaviors directly. The entire 'dy' event space is valid. All attached, enabled behaviors that implement a dynamic event @@ -249,7 +249,7 @@ parameter in the dynamic event. null == $this->dyBehaviorEvent(); 5 == $this->dyBehaviorEvent(5); //when no behaviors implement this dynamic event -
+
Dynamic events can be chained together within behaviors to allow for data filtering. Dynamic events are implemented within behaviors by defining the event as a method. @@ -262,12 +262,12 @@ class TObjectBehavior extends TBehavior { } } -
+
This implementation of a behavior and dynamic event will flow through to the next behavior implementing the dynamic event. The first parameter is always return when it is supplied. Otherwise a dynamic event returns null.
-+
In the case of a class behavior, the object is also prepended to the dynamic event.
@@ -280,14 +280,14 @@ class TObjectClassBehavior extends TClassBehavior { } -+
When calling a dynamic event, only the parameters are passed. The host object and the call chain are built into the framework.
-+
Given that all global 'fx' events and dynamic 'dy' events are valid and operational, there is a mechanism for catching events called that are not implemented (similar to the built-in PHP method __call). When @@ -295,12 +295,12 @@ a dynamic or global event is called but a behavior does not implement it, yet desires to know when an undefined dynamic event is run, the behavior implements the interface IDynamicMethods and method __dycall.
-+
In the case of dynamic events, __dycall is supplied with the method name and its parameters. When a global event is raised, via raiseEvent, the method is the event name and the parameters are supplied.
-+
When implemented, this catch-all mechanism is called for event global event event
when implemented outside of a behavior. Within a behavior, it will also be called
when the object to which the behavior is attached calls any unimplemented dynamic
diff --git a/framework/pradolite.php b/framework/pradolite.php
index 40ad7ccd..911db340 100644
--- a/framework/pradolite.php
+++ b/framework/pradolite.php
@@ -1,7 +1,7 @@
Date: Wed, 16 Oct 2013 18:04:37 +0200
Subject: jquery port
---
.../Samples/TClientSideValidator/Home.page | 7 +-
framework/Web/Javascripts/packages.php | 23 +-
.../css/base/images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 86 bytes
.../base/images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 75 bytes
.../base/images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 144 bytes
.../base/images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 99 bytes
.../base/images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 142 bytes
.../base/images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 137 bytes
.../base/images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 140 bytes
.../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 86 bytes
.../css/base/images/ui-icons_222222_256x240.png | Bin 0 -> 3800 bytes
.../css/base/images/ui-icons_2e83ff_256x240.png | Bin 0 -> 3800 bytes
.../css/base/images/ui-icons_454545_256x240.png | Bin 0 -> 3800 bytes
.../css/base/images/ui-icons_888888_256x240.png | Bin 0 -> 3800 bytes
.../css/base/images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 3800 bytes
.../source/jquery/css/base/jquery-ui.css | 10 +
.../source/jquery/css/base/jquery.ui.accordion.css | 5 +
.../jquery/css/base/jquery.ui.autocomplete.css | 5 +
.../source/jquery/css/base/jquery.ui.button.css | 5 +
.../source/jquery/css/base/jquery.ui.core.css | 5 +
.../jquery/css/base/jquery.ui.datepicker.css | 5 +
.../source/jquery/css/base/jquery.ui.dialog.css | 5 +
.../source/jquery/css/base/jquery.ui.menu.css | 5 +
.../jquery/css/base/jquery.ui.progressbar.css | 5 +
.../source/jquery/css/base/jquery.ui.resizable.css | 5 +
.../jquery/css/base/jquery.ui.selectable.css | 5 +
.../source/jquery/css/base/jquery.ui.slider.css | 5 +
.../source/jquery/css/base/jquery.ui.spinner.css | 5 +
.../source/jquery/css/base/jquery.ui.tabs.css | 5 +
.../source/jquery/css/base/jquery.ui.theme.css | 5 +
.../source/jquery/css/base/jquery.ui.tooltip.css | 5 +
.../Javascripts/source/jquery/css/jquery-ui.css | 10 +
.../source/jquery/css/jquery.ui.accordion.css | 5 +
.../source/jquery/css/jquery.ui.autocomplete.css | 5 +
.../source/jquery/css/jquery.ui.button.css | 5 +
.../source/jquery/css/jquery.ui.core.css | 5 +
.../source/jquery/css/jquery.ui.datepicker.css | 5 +
.../source/jquery/css/jquery.ui.dialog.css | 5 +
.../source/jquery/css/jquery.ui.menu.css | 5 +
.../source/jquery/css/jquery.ui.progressbar.css | 5 +
.../source/jquery/css/jquery.ui.resizable.css | 5 +
.../source/jquery/css/jquery.ui.selectable.css | 5 +
.../source/jquery/css/jquery.ui.slider.css | 5 +
.../source/jquery/css/jquery.ui.spinner.css | 5 +
.../source/jquery/css/jquery.ui.tabs.css | 5 +
.../source/jquery/css/jquery.ui.theme.css | 5 +
.../source/jquery/css/jquery.ui.tooltip.css | 5 +
.../source/jquery/jquery-ui-i18n.min.js | 5 +
.../Web/Javascripts/source/jquery/jquery-ui.min.js | 6 +
framework/Web/Javascripts/source/jquery/jquery.js | 9472 ++++++++++++++++++++
.../Web/Javascripts/source/jquery/lowpro.jquery.js | 216 +
.../source/prado/activecontrols/activecontrols3.js | 18 +-
.../prado/activecontrols/activedatepicker.js | 12 +-
.../source/prado/activecontrols/ajax3.js | 6 +-
.../source/prado/activecontrols/dragdrop.js | 2 +-
.../source/prado/activecontrols/inlineeditor.js | 2 +-
.../prado/activefileupload/activefileupload.js | 2 +-
.../source/prado/colorpicker/colorpicker.js | 8 +-
.../Javascripts/source/prado/controls/accordion.js | 4 +-
.../Javascripts/source/prado/controls/controls.js | 106 +-
.../Javascripts/source/prado/controls/htmlarea.js | 2 +-
.../Javascripts/source/prado/controls/htmlarea4.js | 2 +-
.../Javascripts/source/prado/controls/keyboard.js | 2 +-
.../Javascripts/source/prado/controls/tabpanel.js | 28 +-
.../source/prado/datepicker/datepicker.js | 34 +-
.../Web/Javascripts/source/prado/logger/logger.js | 6 +-
framework/Web/Javascripts/source/prado/prado.js | 771 +-
.../source/prado/validator/validation3.js | 192 +-
jQuery-WIP.txt | 29 +
69 files changed, 10858 insertions(+), 267 deletions(-)
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-bg_flat_0_aaaaaa_40x100.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-bg_flat_75_ffffff_40x100.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-bg_glass_55_fbf9ee_1x400.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-bg_glass_65_ffffff_1x400.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-bg_glass_75_dadada_1x400.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-bg_glass_75_e6e6e6_1x400.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-bg_glass_95_fef1ec_1x400.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-icons_222222_256x240.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-icons_2e83ff_256x240.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-icons_454545_256x240.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-icons_888888_256x240.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/images/ui-icons_cd0a0a_256x240.png
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery-ui.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.accordion.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.autocomplete.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.button.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.core.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.datepicker.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.dialog.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.menu.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.progressbar.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.resizable.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.selectable.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.slider.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.spinner.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.tabs.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.theme.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/base/jquery.ui.tooltip.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery-ui.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.accordion.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.autocomplete.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.button.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.core.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.datepicker.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.dialog.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.menu.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.progressbar.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.resizable.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.selectable.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.slider.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.spinner.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.tabs.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.theme.css
create mode 100755 framework/Web/Javascripts/source/jquery/css/jquery.ui.tooltip.css
create mode 100755 framework/Web/Javascripts/source/jquery/jquery-ui-i18n.min.js
create mode 100755 framework/Web/Javascripts/source/jquery/jquery-ui.min.js
create mode 100755 framework/Web/Javascripts/source/jquery/jquery.js
create mode 100755 framework/Web/Javascripts/source/jquery/lowpro.jquery.js
create mode 100644 jQuery-WIP.txt
(limited to 'demos/quickstart')
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page
index 06ed6295..f7d03ea2 100755
--- a/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page
@@ -1,6 +1,11 @@
Conditional Validation (client-side + server side)
+