Documentation is available at change.act.php
- <?php
- /**
- * @since 7/21/05
- * @package polyphony.language
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: change.act.php,v 1.10 2007/09/19 14:04:56 adamfranco Exp $
- */
- require_once(POLYPHONY."/main/library/AbstractActions/Action.class.php");
- /**
- * Change the language to the one specified by the user
- *
- * @since 7/21/05
- * @package polyphony.language
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: change.act.php,v 1.10 2007/09/19 14:04:56 adamfranco Exp $
- */
- class changeAction
- extends Action
- {
- /**
- * Check Authorizations
- *
- * @return boolean
- * @access public
- * @since 4/26/05
- */
- function isAuthorizedToExecute () {
- return TRUE;
- }
- /**
- * Execute this action.
- *
- * @param object Harmoni $harmoni
- * @return mixed
- * @access public
- * @since 4/25/05
- */
- function execute ( $harmoni ) {
- // Set the new language
- $langLoc = Services::getService('Lang');
- $harmoni->request->startNamespace("polyphony");
- $langLoc->setLanguage($harmoni->request->get("language"));
- $harmoni->request->endNamespace();
- debug::output("Setting the language to ".$harmoni->request->get("polyphony/language"));
- debug::output("SESSION: ".printpre($_SESSION, TRUE));
- $harmoni->history->goBack("polyphony/language/change");
- $null = null;
- return $null;
- }
- }
- ?>
Documentation generated on Wed, 19 Sep 2007 10:22:00 -0400 by phpDocumentor 1.3.0RC3