<?php
/**
 * DBクラス
 *
 * PHP versions 5
 *
 * LICENSE: This source file is licensed under the terms of the GNU General Public License.
 *
 * @package    Magic3 Framework
 * @author     平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
 * @copyright  Copyright 2006-2008 Magic3 Project.
 * @license    http://www.gnu.org/copyleft/gpl.html  GPL License
 * @version    SVN: $Id: templateChangerDb.php 421 2008-03-21 04:19:21Z fishbone $
 * @link       http://www.magic3.org
 */
require_once($gEnvManager->getDbPath() . '/baseDb.php');

class templateChangerDb extends BaseDb
{
	// すべてのテンプレートを取得
	function getTemplates($callback, $param)
	{
		$queryStr = 'select * from _templates ';
		$queryStr .=   'where tm_deleted = false ';
		$queryStr .=     'and tm_mobile = false ';		// 携帯用ウィジェット以外
		$queryStr .=   'order by tm_id';
		$this->selectLoop($queryStr, null, $callback, $param);
	}
}
?>
