[phaux commit] r116 - in trunk: Classes/Phaux-base Classes/Phaux-render Classes/REServe-Phaux Configuration Html...

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 7, 2007, 1:12:25 PM10/7/07
to phau...@googlegroups.com
Author: WHarford
Date: Sun Oct 7 10:11:27 2007
New Revision: 116

Removed:
trunk/Classes/Phaux-render/WHLiveResponceCanvas.php
Modified:
trunk/Classes/Phaux-base/WHInspector.php
trunk/Classes/Phaux-base/WHPath.php
trunk/Classes/Phaux-render/WHHtmlCanvas.php
trunk/Classes/Phaux-render/phaux-render.php
trunk/Classes/REServe-Phaux/WHREServeSession.php
trunk/Configuration/base.ini
trunk/HtmlRoot/phaux.php

Log:
Can now specify your render class on a per application basis

Modified: trunk/Classes/Phaux-base/WHInspector.php
==============================================================================
--- trunk/Classes/Phaux-base/WHInspector.php (original)
+++ trunk/Classes/Phaux-base/WHInspector.php Sun Oct 7 10:11:27 2007
@@ -28,8 +28,9 @@
ob_end_clean();
return $contents;
*/
-
+ $return ='';
if(is_array($memberValue)){
+
if(TRUE || sizeof($memberValue) < 10){
foreach($memberValue as $key=>$value){
$return .= $key.
@@ -57,6 +58,7 @@
**This method is to long and should be cleaned up
*/
public function renderMembersOn($html){
+ $return = '';
foreach($this->object()->objectVars() as $var => $value){
$return .= $html->tableData()->with($var);
$return .= $html->tableData()->with($this->renderMemberValueOn($html,$value));

Modified: trunk/Classes/Phaux-base/WHPath.php
==============================================================================
--- trunk/Classes/Phaux-base/WHPath.php (original)
+++ trunk/Classes/Phaux-base/WHPath.php Sun Oct 7 10:11:27 2007
@@ -43,6 +43,7 @@
}

public function renderContentOn($html){
+ $return = '';
foreach($this->stack as $position => $association){
$segment = $association[1];
$name = $association[0];

Modified: trunk/Classes/Phaux-render/WHHtmlCanvas.php
==============================================================================
--- trunk/Classes/Phaux-render/WHHtmlCanvas.php (original)
+++ trunk/Classes/Phaux-render/WHHtmlCanvas.php Sun Oct 7 10:11:27 2007
@@ -190,6 +190,13 @@
return Object::construct($aTagName)->setHtmlCanvas($this);
}

+ public function makeLiveResponce(){
+ $this->setDocType('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+ <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>');
+ $this->setMimeType("text/xml");
+ return $this;
+ }
+
function __toString(){
header("Content-type: ".$this->mimeType());
return $this->docType.

Modified: trunk/Classes/Phaux-render/phaux-render.php
==============================================================================
--- trunk/Classes/Phaux-render/phaux-render.php (original)
+++ trunk/Classes/Phaux-render/phaux-render.php Sun Oct 7 10:11:27 2007
@@ -29,7 +29,6 @@
include("WHDivTag.php");
include("WHLinkTag.php");
include("WHScriptTag.php");
-include("WHLiveResponceCanvas.php");
include("WHImageTag.php");
include('WHTextAreaTag.php');
include('WHStyleTag.php');

Modified: trunk/Classes/REServe-Phaux/WHREServeSession.php
==============================================================================
--- trunk/Classes/REServe-Phaux/WHREServeSession.php (original)
+++ trunk/Classes/REServe-Phaux/WHREServeSession.php Sun Oct 7
10:11:27 2007
@@ -8,7 +8,9 @@
$this->db = Object::construct($this->
configuration()->
configValueBySubjectAndKey("REServe","type"));
- $this->db->setAutomaticTableCreation($automatic_table_creation);
+ $this->db->setAutomaticTableCreation(
+ $this->configuration()->
+ configValueBySubjectAndKey("REServe","automatic_table_creation"));

$this->connect();
return $this;

Modified: trunk/Configuration/base.ini
==============================================================================
--- trunk/Configuration/base.ini (original)
+++ trunk/Configuration/base.ini Sun Oct 7 10:11:27 2007
@@ -2,6 +2,7 @@
session_class="WHSession"
main_class="WHComponent"
configuration_class="WHConfiguration"
+render_class="WHHtmlCanvas"
use_cookie="0"

#If set to 0 the website users will not see tracebacks

Modified: trunk/HtmlRoot/phaux.php
==============================================================================
--- trunk/HtmlRoot/phaux.php (original)
+++ trunk/HtmlRoot/phaux.php Sun Oct 7 10:11:27 2007
@@ -192,9 +192,10 @@
}
}

+$html = WHHtmlCanvas::construct($app_configurations[$app]['general']['render_class']);

if(!isset($_REQUEST['_lu']) || $_REQUEST['_lu'] == ""){
- $html = WHHtmlCanvas::construct("WHHtmlCanvas");
+
$html->html()->with(
$html->head()->with(
$htmlRoot->renderHeadContentsOn($html).
@@ -221,7 +222,7 @@
** and prepare a new one
*/
$_SESSION[$app]['session']->currentRegistry()->saveState();
- $html = WHHtmlCanvas::construct("WHLiveResponceCanvas");
+ $html->makeLiveResponce();
if(is_object($_SESSION[$app]['session']->callbackByKey($_REQUEST['_lu']))){
$html->html()->with(
$_SESSION[$app]['session']->

Reply all
Reply to author
Forward
0 new messages