|
@@ 43-46 (lines=4) @@
|
| 40 |
|
|
| 41 |
|
public function getVocabIds() |
| 42 |
|
{ |
| 43 |
|
if ($this->rest) { |
| 44 |
|
$vocabs = $this->request->getQueryParam('vocab'); |
| 45 |
|
return ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : null; |
| 46 |
|
} |
| 47 |
|
if ($this->request->getQueryParam('vocabs')) { |
| 48 |
|
$vocabs = $this->request->getQueryParam('vocabs'); |
| 49 |
|
return ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : null; |
|
@@ 47-50 (lines=4) @@
|
| 44 |
|
$vocabs = $this->request->getQueryParam('vocab'); |
| 45 |
|
return ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : null; |
| 46 |
|
} |
| 47 |
|
if ($this->request->getQueryParam('vocabs')) { |
| 48 |
|
$vocabs = $this->request->getQueryParam('vocabs'); |
| 49 |
|
return ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : null; |
| 50 |
|
} |
| 51 |
|
return array(reset($this->getVocabs())->getId()); |
| 52 |
|
} |
| 53 |
|
|