summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php b/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php
new file mode 100644
index 00000000..1b5b638a
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php
@@ -0,0 +1,31 @@
+<?php
+
+class Ticket703 extends TPage {
+ public function onLoad ($param)
+ {
+ parent::onLoad($param);
+ if (!$this->isPostBack && !$this->isCallback)
+ {
+ $this->refreshLog();
+ }
+ }
+
+ public function refreshLog ()
+ {
+ $this->logBox->Text=file_get_contents(prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt'));
+ }
+
+ public function clearLog ($sender, $param)
+ {
+ $file=prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt');
+ $f=fopen($file,"w");
+ fclose($f);
+ $this->refreshLog();
+ }
+
+ public function addLog($sender,$param)
+ {
+ prado::log($this->logMessage->getText(), TLogger::DEBUG, "Tickets");
+ }
+}
+?> \ No newline at end of file