[phaux commit] r113 - in trunk: Classes/Phaux-base Classes/Phaux-render Classes/Phaux-test Configuration

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 4, 2007, 3:15:04 PM10/4/07
to phau...@googlegroups.com
Author: WHarford
Date: Thu Oct 4 12:14:09 2007
New Revision: 113

Modified:
trunk/Classes/Phaux-base/WHMainDevelopmentDecoration.php
trunk/Classes/Phaux-render/WHTag.php
trunk/Classes/Phaux-test/WHLiveTest.php
trunk/Configuration/base.ini

Log:
Simplify liveUpdate

Modified: trunk/Classes/Phaux-base/WHMainDevelopmentDecoration.php
==============================================================================
--- trunk/Classes/Phaux-base/WHMainDevelopmentDecoration.php (original)
+++ trunk/Classes/Phaux-base/WHMainDevelopmentDecoration.php Thu Oct 4
12:14:09 2007
@@ -83,10 +83,14 @@
$html->space().
$html->space().
$html->anchor()->class($this->activeIfTrue($this->showPhpErrors))->
- callback($this,'togglePhpErrors')->
+ liveUpdateWithCallbackOn('onClick',
+ $this,'renderErrorConsoleOn',array(),
+ $this,'togglePhpErrors',array())->
with('PHP Errors').
$html->anchor()->class($this->activeIfTrue($this->showUserErrors))->
- callback($this,'toggleUserErrors')->
+ liveUpdateWithCallbackOn('onClick',
+ $this,'renderErrorConsoleOn',array(),
+ $this,'toggleUserErrors',array())->
with('User Errors').
$html->div()->id('console-output')->with(
$this->errorConsoleContent()

Modified: trunk/Classes/Phaux-render/WHTag.php
==============================================================================
--- trunk/Classes/Phaux-render/WHTag.php (original)
+++ trunk/Classes/Phaux-render/WHTag.php Thu Oct 4 12:14:09 2007
@@ -76,7 +76,7 @@
public function liveUpdateOn($jsEvent,$object,$function,$arguments = ""){
$renderKey = $this->createCallback($object,$function,$arguments);
$this->setAttribute($jsEvent,
- $this->liveUpdateFunction($renderKey));
+ $this->liveUpdateFunction($renderKey,$this->callbackKey));
return $this;
}

Modified: trunk/Classes/Phaux-test/WHLiveTest.php
==============================================================================
--- trunk/Classes/Phaux-test/WHLiveTest.php (original)
+++ trunk/Classes/Phaux-test/WHLiveTest.php Thu Oct 4 12:14:09 2007
@@ -51,10 +51,15 @@
** the last line $this,"setMessage",array($message)
** tells the anchor what callback to run when the action occurs
*/
-
+
+ /* Old and still supported way
liveUpdateWithCallbackOn("onClick",
$this,"renderMessageOn",array(),
$this,"setMessage",array($message)).
+ */
+ callback($this,'setMessage',array($message))->
+ liveUpdateOn('onClick',$this,'renderMessageOn').
+
$html->br();
}

Modified: trunk/Configuration/base.ini
==============================================================================
--- trunk/Configuration/base.ini (original)
+++ trunk/Configuration/base.ini Thu Oct 4 12:14:09 2007
@@ -13,13 +13,13 @@
admin_email='f...@bar.com'

#prevents the user hitting reload and doing the same thing twice
-redirect_after_callback="1"
+redirect_after_callback="1" #State registry does not work when set to 0


[server]
script_name="phaux.php"
-server_port=80
-secure=0
+server_port=80 #Not yet used
+secure=0 #Not yet used

[includes]
RECall="../Classes/Phaux-base/phaux-base.php"

Reply all
Reply to author
Forward
0 new messages