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

Source for file LCultureChooser.php

Documentation is available at LCultureChooser.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.Components
  10.  * @subpackage WebControls
  11.  */
  12.  
  13. /**
  14.  * class
  15.  *
  16.  * @package System.Web.UI.WebControls
  17.  * @subpackage Configuration
  18.  */
  19.  class LCultureChooser extends TTemplateControl{
  20.  
  21.  
  22.      public function setCultures($value)
  23.     {
  24.         $this->setViewState('Cultures'$value);
  25.     }
  26.  
  27.     public function getCultures()
  28.     {
  29.         return $this->getViewState('Cultures'null);
  30.     }
  31.  
  32.     function updateCulture($sender$param)
  33.     {
  34.         $c $sender->getText();
  35.         $this->Application->Session->add("Culture"$c);
  36.         $this->getApplication()->getGlobalization()->Culture $c;
  37.  
  38.         Prado::trace("Culture set to ".$c"Lithron.Main");
  39.         $this->Service->reload();
  40.     }
  41.  
  42.  
  43.     public function onInit($param)
  44.     {
  45.         parent::onInit($param);
  46.         $array explode(",",$this->Cultures);
  47.         $this->Repeater->DataSource $array;
  48.         $this->Repeater->dataBind();
  49.     }
  50.  
  51. }
  52.  
  53. ?>

Documentation generated on Sun, 25 Feb 2007 16:10:15 +0100 by phpDocumentor 1.3.1