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

Source for file LPageTypeDropDown.php

Documentation is available at LPageTypeDropDown.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: 194 $  $Date: 2006-05-11 22:18:31 +0200 (Do, 11 Mai 2006) $
  9.  * @package Phundament.Packages
  10.  * @subpackage LVirtualNodes
  11.  */
  12.  
  13. /**
  14.  * Displays available pages. Used to map a virtual node to a .page file
  15.  *
  16.  * @package System.Web.UI.WebControls
  17.  * @subpackage Admin
  18.  */
  19.  
  20. Prado::using('System.Web.UI.WebControls.TDropDownList');
  21.  
  22.  
  23. class LPageTypeDropDown extends TDropDownList
  24. {
  25.  
  26.     /**
  27.      * @return array available pages from application.xml
  28.      */
  29.     private function getAvailablePages()
  30.     {
  31.         $param$this->Application->getParameters();
  32.         $pagesexplode(","$param->itemAt("AvailablePages"));
  33.         foreach($pages AS $page)
  34.             $return[trim($page)trim($page);
  35.         return $return;
  36.     }
  37.  
  38.     /**
  39.      * performs data-binding
  40.      */
  41.     public function onInit($param)
  42.     {
  43.         parent::onInit($param);
  44.         $this->setDataSource($this->getAvailablePages());
  45.         $this->dataBind();
  46.     }
  47. }
  48.  
  49. ?>

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