Location: PHPKode > projects > Mivec Framework > mivec/demo/actions/ChangeLocale.action.class.php
<?php

require_once MIVEC_HOME . "action/WebAction.class.php";
require_once MIVEC_HOME . "util/LocaleUtil.class.php";

class ChangeLocale extends WebAction
{
	var $locale;

	function setLocale($locale)
	{
		$this->locale = $locale;
	}
	
	function execute()
	{
		LocaleUtil::setLocale($this->locale);
		return SUCCESS;
	}
}

?>
Return current item: Mivec Framework