/* SVN FILE: $Id$ */
/**
 * <?php echo $this->_vars['extends']; ?> Controller
 *
 * PHP versions 5
 *
 *      Hitsuji : Social Network Service <http://rakuto.net/rktSNS/>
 *      Copyright (c) 2007 Yujiro Takahashi
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @package         Hitsuji
 * @copyright       Copyright (c) 2007 Yujiro Takahashi
 * @link            http://rakuto.net/
 * @author          Yujiro Takahashi <yujiro@rakuto.net>
 * @version         $Revision$
 * @modifiedby      $LastChangedBy$
 * @lastmodified    $Date$
 * @license         http://opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Controllerクラス
 *
 * @category        Hitsuji : Controller
 * @package         Hitsuji
 * @copyright       Copyright (c) 2007 Yujiro Takahashi
 * @link            http://rakuto.net/rktSNS/
 * @author          Yujiro Takahashi <yujiro@rakuto.net>
 * @version         $Revision$
 * @modifiedby      $LastChangedBy$
 * @lastmodified    $Date$
 * @license         http://opensource.org/licenses/mit-license.php The MIT License
 */
class Controller extends <?php echo $this->_vars['Controller']; ?> 
{
    /**
     * 使用モデル名
     * @var array
     */
    var $models = array(
        'manip'=> array(
<?php if (!empty($this->_vars['is_manip'])):?>
            '<?php echo $this->_vars['tbl_name']; ?>',
<?php endif; ?>
        ),
        'view'=> array(
<?php if (!empty($this->_vars['is_view'])):?>
            '<?php echo $this->_vars['tbl_name']; ?>',
<?php endif; ?>
        ),            
    );

    /**
     * <?php echo $this->_vars['tbl_name']; ?> モデルオブジェクト
     * @var object 
     */
<?php if (!empty($this->_vars['is_manip'])):?>
    var $<?php echo $this->_vars['tbl_name']; ?> = null;
<?php endif; ?>
<?php if (!empty($this->_vars['is_view'])):?>
    var $v_<?php echo $this->_vars['tbl_name']; ?> = null;
<?php endif; ?>


    /**
     * 変数の初期化
     *
     * @abstract
     * @access protected
     * @return void
     */
    function initValue()
    {
    }

    /**
     * 実行処理
     *
     * @access public
     * @return void
     **/
    function action()
    {
    }
} // class Controller