private static function getSongList($args) { // discard the last item in the args, since that's the actual song ID array_pop($args); // get the list of songs $query = QueryBuilder::get($args); return $query['items']; }
/** * Get results of query and convert to array * * @return array */ public function getResults() { $this->result_object = $this->query->get(); return $this->result_object->toArray(); }