コード例 #1
0
ファイル: Music.php プロジェクト: monstergfx/pi-music
 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'];
 }
コード例 #2
0
ファイル: BaseEngine.php プロジェクト: Kirylka/Scaffold
 /**
  * Get results of query and convert to array
  *
  * @return array
  */
 public function getResults()
 {
     $this->result_object = $this->query->get();
     return $this->result_object->toArray();
 }