Skip to content

Commit

Permalink
query类增加hidden方法
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Nov 5, 2017
1 parent d02cfd7 commit 7a1a2fd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions library/think/db/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,17 @@ public function field($field, $except = false, $tableName = '', $prefix = '', $a
return $this;
}

/**
* 设置数据排除字段
* @access public
* @param mixed $field 字段名或者数据
* @return $this
*/
public function hidden($field)
{
return $this->field($field, true);
}

/**
* 设置数据
* @access public
Expand Down

0 comments on commit 7a1a2fd

Please sign in to comment.