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

Source for file LGlobalizationSession.php

Documentation is available at LGlobalizationSession.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: 601 $  $Date: 2007-02-24 23:49:30 +0100 (Sat, 24 Feb 2007) $
  9.  * @package Phundament.Components
  10.  * @subpackage I18N
  11.  */
  12.  
  13. /**
  14.  * Stores culture in session
  15.  *
  16.  * @package System.I18N
  17.  */
  18. Prado::using('System.I18N.core.HTTPNegotiator');
  19. class LGlobalizationSession extends TGlobalization
  20. {
  21.     /**
  22.      * Initialization of session-based culture
  23.      *
  24.      * Sets culture according to session value.
  25.      */
  26.     public function init($xml)
  27.     {
  28.         parent::init($xml);
  29.         //set the culture according to session settings
  30.  
  31.         #echo $_SESSION['CultureA']."x";
  32.         if ($c $this->Application->Session->itemAt("Culture"))
  33.         {
  34.             $this->setCulture($c);
  35.             Prado::log("Culture set to '$cfrom session value"TLogger::DEBUG"Lithron.LGlobalization");
  36.         }
  37.     }
  38. }
  39.  
  40. ?>

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