| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function hasProp($name, $value = null) |
||
| 16 | { |
||
| 17 | $this->joinTables(); |
||
| 18 | |||
| 19 | |||
| 20 | if(!empty($name)) |
||
| 21 | $this->getQuery() |
||
| 22 | ->andFilterWhere([ TaxonomyTerms::tableName() . '.term' => $name ]); |
||
| 23 | |||
| 24 | if(!empty($value)) |
||
| 25 | $this->getQuery() |
||
| 26 | ->andFilterWhere([ $this->taxonomy->table . '.value' => $value ]); |
||
| 27 | |||
| 28 | return $this->getQuery(); |
||
| 29 | } |
||
| 30 | } |