1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /**
- * [WeEngine System] Copyright (c) 2014 WE7.CC
- * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
- */
- namespace We7\Table\Users;
- class OperateHistory extends \We7Table {
- protected $tableName = 'users_operate_history';
- protected $primaryKey = 'id';
- protected $field = array(
- 'createtime',
- 'module_name',
- 'type',
- 'uid',
- 'uniacid',
- );
- protected $default = array(
- 'createtime' => '',
- 'module_name' => '',
- 'type' => '',
- 'uid' => '',
- 'uniacid' => '',
- );
- public function getALlByUid($uid) {
- return $this->query->where('uid', $uid)->orderby('createtime', 'DESC')->getall();
- }
- public function deleteByUidTypeOperate($data) {
- return $this->query->where($data)->delete();
- }
- public function searchWithLimit($limit_num) {
- return $this->query->limit($limit_num);
- }
- }
|