- <?php
- /**
- * class file.
- *
- * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
- * @copyright 2005, diemeisterei GmbH. All rights reserved.
- * @author $Author: schmunk $
- * @version $Revision: 194 $ $Date: 2006-05-11 22:18:31 +0200 (Do, 11 Mai 2006) $
- * @package Lithron.LVirtualNodes
- * @subpackage WebControls
- */
-
- /**
- * Displays available pages. Used to map a virtual node to a .page file
- *
- * @package System.Web.UI.WebControls
- * @subpackage Admin
- */
-
- Prado::using('System.Web.UI.WebControls.TDropDownList');
-
-
- class LPageTypeDropDown extends TDropDownList
- {
-
- /**
- * @return array available pages from application.xml
- */
- private function getAvailablePages()
- {
- $param= $this->Application->getParameters();
- $pages= explode(",", $param->itemAt("AvailablePages"));
- foreach($pages AS $page)
- $return[trim($page)] = trim($page);
- return $return;
- }
-
- /**
- * performs data-binding
- */
- public function onInit($param)
- {
- parent::onInit($param);
- $this->setDataSource($this->getAvailablePages());
- $this->dataBind();
- }
- }
-
- ?>