<?php
class MyClassLoader extends UserClassLoader implements IClassLoader
{
	/*
	 *    コンストラクタ
	 */
	public function __construct( String $name = NULL )
	{
		parent::__construct(s($name));
	}

	/*
	 * クラスをロード
	 */
	public static function loadClass( String $class_name )
	{
		$class_path = array(

			// model classes

				"ShouhinTableModel"			=> "table_models/ShouhinTableModel.class.php",
				"ManufacturerTableModel"	=> "table_models/ManufacturerTableModel.class.php",

			// task classes

				"DBConnectCheckTask"		=> "tasks/DBConnectCheckTask.class.php",
				"DBInstanceCheckTask"		=> "tasks/DBInstanceCheckTask.class.php",
				"DBInstanceCreateTask"		=> "tasks/DBInstanceCreateTask.class.php",
				"DBTableCheckTask"			=> "tasks/DBTableCheckTask.class.php",
				"DBTableCreateTask"			=> "tasks/DBTableCreateTask.class.php",
				"DBConfigUpdateTask"		=> "tasks/DBConfigUpdateTask.class.php",
				"ShouhinListTask"			=> "tasks/ShouhinListTask.class.php",
				"ShouhinAddTask"			=> "tasks/ShouhinAddTask.class.php",
				"ShouhinDelTask"			=> "tasks/ShouhinDelTask.class.php",
				"ShouhinEditTask"			=> "tasks/ShouhinEditTask.class.php",
				"ShouhinUpdateTask"			=> "tasks/ShouhinUpdateTask.class.php",
				"ManufacturerListTask"		=> "tasks/ManufacturerListTask.class.php",

			// page selector classes

				"MyPageSelector"			=> "page_selectors/MyPageSelector.class.php",

			);

		return parent::_loadClass( $class_name, v($class_path) );;
	}
}
