Advertisement
Guest User

People.php

a guest
Mar 27th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Model;
  4.  
  5. use App\Util as Util;
  6.  
  7. class People extends Model {
  8.  
  9.     // Returns an array of people objects simply with an ID.
  10.     public function getPeople() {
  11.         return $this->app->db->from("person")->distinct()->select('id')->many();
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement