/* 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) 2008 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) 2008 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
     */
    protected $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'])):?>
    protected $<?php echo $this->_vars['tbl_name']; ?> = null;
<?php endif; ?>
<?php if (!empty($this->_vars['is_view'])):?>
    protected $v_<?php echo $this->_vars['tbl_name']; ?> = null;
<?php endif; ?>


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

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