/** * Translates the "query" call to DataStore * * @see \zaboy\scheduler\Callback\Factory\DataStoreAbstractFactory * @see \zaboy\rest\DataStore\Interfaces\DataStoresInterface * @param array $options * @return array | \zaboy\rest\DataStore\Interfaces\DataStoresInterface array * @throws CallbackException */ private function query(array $options = []) { $itemData = $options['item_data']; if (!isset($itemData['query'])) { throw new CallbackException("Expected necessary parameter \"query\" in the options array"); } $parser = new RqlParser(); $query = $parser->rqlDecoder($itemData['query']); return $this->dataStore->query($query); }
/** * {@inherit} * * {@inherit} */ public function query(Query $query) { $this->setStep($this->determineStep($query)); $this->determineFrom($query); return parent::query($query); }