Lines Matching defs:field
8 protected $field;
40 * Shorthand method: calls the appropriate getter deduced from $this->field
46 if (!$this->field) {
47 throw new \RuntimeException('Failed to build a query, no field specified');
49 return ($this->field === 'pid') ? $this->getPages() : $this->getTags();
129 * Database field to select
130 * @param string $field
132 public function setField($field)
134 $this->field = $field;
171 $sql = "SELECT $this->field AS item, COUNT(*) AS cnt