コード例 #1
0
 public static function load_notes($columns = null, $filter = null, $sortby = null, $sortdir = null, $limit = null, $start = null)
 {
     global $DB;
     $result = $DB->make_select('Notes', $columns, $filter, $sortby, $sortdir, $limit, $start);
     $dbo_array = array();
     while ($data = $DB->row($result)) {
         $dbo = new note();
         $dbo->load($data);
         $dbo_array[] = $dbo;
     }
     return $dbo_array;
 }