summaryrefslogtreecommitdiff
path: root/demos/composer/protected/pages
diff options
context:
space:
mode:
authorxue <>2006-01-21 17:29:40 +0000
committerxue <>2006-01-21 17:29:40 +0000
commit3fcf847e0cadfb9ede930f538c2f277483442175 (patch)
tree12534cf4b29c1d4676fd59ab47adb60e292bcb6c /demos/composer/protected/pages
parent99b56c855a597c606d349c7063d843539e65a6ed (diff)
BE AWARE: Significant change!
Changed event definition from XXX to OnXXX.
Diffstat (limited to 'demos/composer/protected/pages')
-rw-r--r--demos/composer/protected/pages/ClassDefinition.php2
-rw-r--r--demos/composer/protected/pages/Home.page8
2 files changed, 5 insertions, 5 deletions
diff --git a/demos/composer/protected/pages/ClassDefinition.php b/demos/composer/protected/pages/ClassDefinition.php
index 54e143e4..bd704b0e 100644
--- a/demos/composer/protected/pages/ClassDefinition.php
+++ b/demos/composer/protected/pages/ClassDefinition.php
@@ -173,7 +173,7 @@ class ClassDefinition extends TComponent
continue;
$comments=implode("\n\t * ",explode("\n",wordwrap($event->Comments)));
$writer->write("\n\t/**\n\t * Raises <b>$name</b> event.\n\t * $comments\n\t * @param TEventParameter event parameter\n\t */\n");
- $writer->write("\tpublic function on$name(\$param)\n\t{\n\t\t\$this->raiseEvent('$name',\$this,\$param);\n\t}\n");
+ $writer->write("\tpublic function $name(\$param)\n\t{\n\t\t\$this->raiseEvent('$name',\$this,\$param);\n\t}\n");
}
}
diff --git a/demos/composer/protected/pages/Home.page b/demos/composer/protected/pages/Home.page
index 7a0dd635..23ab2b86 100644
--- a/demos/composer/protected/pages/Home.page
+++ b/demos/composer/protected/pages/Home.page
@@ -89,12 +89,12 @@ implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/>
</com:TRepeater>
-<com:TButton Text="New Property" Command="propertyAction" CommandName="add" />
+<com:TButton Text="New Property" OnCommand="propertyAction" CommandName="add" />
</com:TPanel>
<com:TPanel GroupingText="Event Definitions">
-<com:TRepeater ID="EventList" ItemCommand="eventAction">
+<com:TRepeater ID="EventList" OnItemCommand="eventAction">
<prop:HeaderTemplate>
<table>
@@ -141,7 +141,7 @@ implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/>
</com:TRepeater>
-<com:TButton Text="New Event" Command="eventAction" CommandName="add" />
+<com:TButton Text="New Event" OnCommand="eventAction" CommandName="add" />
</com:TPanel>
@@ -161,7 +161,7 @@ Author Email
<br/>
<hr/>
-<com:TButton Text="Generate Code" Click="generateCode" />
+<com:TButton Text="Generate Code" OnClick="generateCode" />
<com:TTextHighlighter>
<com:TLiteral ID="SourceCode" />
</com:TTextHighlighter>