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

Source for file LPageDropDownList.php

Documentation is available at LPageDropDownList.php

  1. <?php
  2. /**
  3.  * Class file.
  4.  *
  5.  * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
  6.  * @copyright 2005, diemeisterei GmbH. All rights reserved.
  7.  * @author $Author: schmunk $
  8.  * @version $Revision: 1 $  $Date: 2006-06-01 15:11:24 +0000 (Do, 01 Jun 2006) $
  9.  * @package Phundament.Packages
  10.  * @subpackage LVirtualNodes
  11.  */
  12.  
  13. /**
  14.  * class
  15.  *
  16.  * @package System.Web.UI.WebControls
  17.  * @subpackage Admin
  18.  */
  19.  class LPageDropDownList extends TDropDownList {
  20.  
  21.     private $_pages;
  22.  
  23.      public function setXXX($value)
  24.     {
  25.         $this->setViewState('XXX'$value);
  26.     }
  27.     public function getXXX()
  28.     {
  29.         return $this->getViewState('XXX'null);
  30.     }
  31.  
  32.     public function onPreRender($param)
  33.     {
  34.         parent::onPreRender($param);
  35.         #$this->_pages[] = Prado::localize("Select a page ...");
  36.         foreach ($this->Service->getNodesList(AS $node)
  37.         {
  38.             $this->_pages[$node->getAlias()$node->getDescriptiveName();
  39.         }
  40.         asort($this->_pages);
  41.         $this->DataSource $this->_pages;
  42.         $this->dataBind();
  43.  
  44.         try
  45.         {
  46.             $this->SelectedValue $this->Service->getServicePage(true);
  47.         }
  48.         catch (Exception $e)
  49.         {
  50.             Prado::log("Can not select page in dropdown. [".$e->getMessage()."]"2"Lithron.LVirtualNodes");
  51.         }
  52.     }
  53. }
  54.  
  55.  
  56.  
  57. ?>

Documentation generated on Sun, 25 Feb 2007 16:11:18 +0100 by phpDocumentor 1.3.1