Phundament-Components
[ class tree: Phundament-Components ] [ index: Phundament-Components ] [ all elements ]

Source for file LActiveSessionPage.php

Documentation is available at LActiveSessionPage.php

  1. <?php
  2.  
  3. /**
  4.  * class file.
  5.  *
  6.  * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
  7.  * @copyright 2005, diemeisterei GmbH. All rights reserved.
  8.  * @author $Author: schmunk $
  9.  * @version $Revision: 313 $  $Date: 2006-07-30 21:04:58 +0000 (So, 30 Jul 2006) $
  10.  * @package Phundament.Components
  11.  * @subpackage ActiveControls
  12.  */
  13.  
  14. /**
  15.  * Stores pagestate information in session for active controls
  16.  *
  17.  * @package System.Web.UI.ActiveControls
  18.  */
  19. class LActiveSessionPage extends TPage
  20. {
  21.     public function onLoad($param)
  22.     {
  23.         parent :: onLoad($param);
  24.  
  25.         $this->ensureChildControls();
  26.         if ($this->Session['popPanelControls' $this->ID&& $this->Page->IsCallBack)
  27.         {
  28.             $popPanelControlsTPropertyValue :: ensureArray($this->Session['popPanelControls' $this->ID]);
  29.             foreach ($popPanelControls as $id => $cl)
  30.             {
  31.                 Prado :: Trace('initing page hierarchy ' $cl"Lithron.LActiveControls");
  32.                 $cnew $cl;
  33.                 $c->ID$id;
  34.                 $this->popPanel->Controls->add($c);
  35.             }
  36.         }
  37.  
  38.     }
  39.  
  40.     public function saveState()
  41.     {
  42.         parent :: saveState();
  43.         $sarray ();
  44.         foreach ($this->popPanel->Controls as $control)
  45.         {
  46.             if (!$control instanceof TControl)
  47.             {
  48.                 Prado :: Trace('omitting ' $control"Lithron.LActiveControls");
  49.                 continue;
  50.  
  51.             }
  52.             $id$control->getID(false);
  53.             $classget_class($control);
  54.             $s[$id]$class;
  55.             Prado :: Trace('saving page hierarchy ' $class ' ' $id"Lithron.LActiveControls");
  56.         }
  57.         $this->Session['popPanelControls' $this->ID]TPropertyValue :: ensureArray($s);
  58.     }
  59.  
  60. }
  61. ?>

Documentation generated on Sun, 25 Feb 2007 16:09:36 +0100 by phpDocumentor 1.3.1