Source for file LApplicationStateEditor.php
Documentation is available at LApplicationStateEditor.php
* @package Phundament.Components
* @subpackage WebControls
* This component displays the Application State Editor.
* @package System.Web.UI.WebControls
private $_valEditors= array ();
private $_valChanged= array ();
private $_keys= array ();
public function onLoad($param)
//$this->clearChildState();
$as= array_keys($this->getApplication()->getApplicationStatePersister()->load());
for ($i= 0; $i < $n; $i++ )
$cellText= new TTableCell();
$cellText->Controls[]= $as[$i];
$row->Cells[]= $cellText;
$cellValue= new TTableCell();
$val= $this->getApplication()->getGlobalState($as[$i]);
$event= "OnCheckedChanged";
$this->_valEditors[]= $valueEdit;
#$valueEdit->setWidth("24em");
$valueEdit-> $setter ($val);
$ev= $valueEdit-> $event;
$cellValue->Controls[]= $valueEdit;
$row->Cells[]= $cellValue;
echo "CHANGE FOR " . get_class($sender) . "<br>";
foreach ($this->_valEditors as $key => $editor)
$this->_valChanged[$key]= $sender;
foreach ($this->_valChanged as $key => $editor)
$value= $editor->getChecked();
$value= $editor->getText();
throw new Exception("not implemented!");
echo "setting " . $this->_keys[$key] . " to ";
$this->Application->setGlobalState($this->_keys[$key], $value);
|