summaryrefslogtreecommitdiff
path: root/lib/xajax_0.2.4/tests/myExternalFunction.php
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2008-02-03 23:23:24 +0000
committerNathan Kinkade <nath@nkinka.de>2008-02-03 23:23:24 +0000
commitd895b852a6e160496ffc760d46d3719a3d62ff86 (patch)
tree52230bb04148197e8312e09b5c5273417e7a3be9 /lib/xajax_0.2.4/tests/myExternalFunction.php
Initial checkin of nutridb.org and basic subversion directory structure
Diffstat (limited to 'lib/xajax_0.2.4/tests/myExternalFunction.php')
-rw-r--r--lib/xajax_0.2.4/tests/myExternalFunction.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/xajax_0.2.4/tests/myExternalFunction.php b/lib/xajax_0.2.4/tests/myExternalFunction.php
new file mode 100644
index 0000000..6d465e2
--- /dev/null
+++ b/lib/xajax_0.2.4/tests/myExternalFunction.php
@@ -0,0 +1,20 @@
+<?php
+function myExternalFunction()
+{
+ $objResponse = new xajaxResponse();
+ $objResponse->addAlert('External function successfully included and executed');
+ return $objResponse;
+}
+
+class myExternalClass
+{
+ function myMethod() // static (can't hardwire that in because of PHP 4)
+ {
+ $objResponse = new xajaxResponse();
+ $objResponse->addAlert('External class successfully included and method executed');
+ return $objResponse;
+ }
+}
+?>
+<p> This is some content that should be ignored by an asynchronous request
+ through xajax, but will show up if the file is otherwise included into the script. </p> \ No newline at end of file