diff options
author | wei <> | 2007-04-03 01:38:15 +0000 |
---|---|---|
committer | wei <> | 2007-04-03 01:38:15 +0000 |
commit | 03dbe16b7762cc1a9e57df4e9e34bc04f46bb57f (patch) | |
tree | 4510a10b0a9fdcf6e6612d773f2bad55b8eb0534 /framework/Data/ActiveRecord/TActiveRecordCriteria.php | |
parent | 571b069953f559edd02f89476ebe628efa63d613 (diff) |
update js onclick handler context for controls with js counterpart.
Diffstat (limited to 'framework/Data/ActiveRecord/TActiveRecordCriteria.php')
-rw-r--r-- | framework/Data/ActiveRecord/TActiveRecordCriteria.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecordCriteria.php b/framework/Data/ActiveRecord/TActiveRecordCriteria.php index 533ff50a..134632e8 100644 --- a/framework/Data/ActiveRecord/TActiveRecordCriteria.php +++ b/framework/Data/ActiveRecord/TActiveRecordCriteria.php @@ -150,6 +150,30 @@ class TActiveRecordCriteria extends TComponent }
/**
+ * This method is invoked before the object is deleted from the database.
+ * The method raises 'OnDelete' event.
+ * If you override this method, be sure to call the parent implementation
+ * so that the event handlers can be invoked.
+ * @param TActiveRecordEventParameter event parameter to be passed to the event handlers
+ */
+ public function onDelete($param)
+ {
+ $this->raiseEvent('OnDelete', $this, $param);
+ }
+
+ /**
+ * This method is invoked before any select query is executed on the database.
+ * The method raises 'OnSelect' event.
+ * If you override this method, be sure to call the parent implementation
+ * so that the event handlers can be invoked.
+ * @param TActiveRecordEventParameter event parameter to be passed to the event handlers
+ */
+ public function onSelect($param)
+ {
+ $this->raiseEvent('OnSelect', $this, $param);
+ }
+
+ /**
* @return string string representation of the criteria. Useful for debugging.
*/
public function __toString()
|