AbstractModel.class.php
521 Bytes
<?php
/**
* AbstractModel.class.php
* Model 层基类
* @author: zhuxun37
* @version: $Id$
* @copyright: vchangyi.com
*/
namespace Common\Model;
abstract class AbstractModel extends \Com\AbstractSettingModel
{
/**
* 封装基础SQL where条件
* @return array
*/
public function getBaseWhere()
{
$where = ' WHERE `status`<? AND `domain`=?';
$params = array(
self::ST_DELETE,
QY_DOMAIN,
);
return array($where, $params);
}
}