System.I18N
[ class tree: System.I18N ] [ index: System.I18N ] [ 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: 220 $ $Date: 2006-05-19 19:50:30 +0200 (Fr, 19 Mai 2006) $
  9. * @package Lithron
  10. * @subpackage WebControls
  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. if ($c = $this->Application->Session->itemAt("Culture"))
  31. $this->setCulture($c);
  32. }
  33. }
  34.  
  35. ?>

Documentation generated on Tue, 20 Jun 2006 05:15:10 +0200 by phpDocumentor 1.3.0RC4