Exemplo n.º 1
0
 public static function getListByKeyword($keyword, $start, $limit)
 {
     return self::getDB()->table(self::TABLE_NAME)->whereOr(array(self::TABLE_UNIONKEY => array('LIKE' => $keyword), self::TABLE_REALNAME => array('LIKE' => $keyword)))->order(array(self::TABLE_REGTIME => 'DESC'))->limit(control_coreControl::makeLimit($start, $limit))->getList();
 }
Exemplo n.º 2
0
 public static function getListByParam($param, $order, $start, $limit)
 {
     return self::getDB()->where($param)->order($order)->limit(control_coreControl::makeLimit($start, $limit))->getList();
 }
Exemplo n.º 3
0
 public static function getLogList($baseId, $start, $limit)
 {
     return self::getDB()->table(self::TABLE_NAME_LOG)->where(array(self::TABLE_KEY => $baseId))->order(array(self::TABLE_UPDATETIME => 'DESC'))->limit(control_coreControl::makeLimit($start, $limit))->getList();
 }