<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * 初期表示の設定
 *
 * @package     NetCommons
 * @author      Noriko Arai,Ryuji Masukawa
 * @copyright   2006-2007 NetCommons Project
 * @license     http://www.netcommons.org/license.txt  NetCommons License
 * @project     NetCommons Project, supported by National Institute of Informatics
 * @access      public
 */
class Mobile_Action_Admin_Emulator extends Action
{
    // リクエストパラメータを受け取るため
	var $allow_emulator = null;
	var $module_id = null;

    // 使用コンポーネントを受け取るため
	var $configAction = null;

    /**
     * execute実行
     *
     * @access  public
     */
    function execute()
    {
    	$result = $this->configAction->updConfigValue($this->module_id, "allow_emulator", intval($this->allow_emulator));
    	if ($result === false) {
    		return 'error';
    	}
		return 'success';
    }
}
?>