Example #1
0
 /**
  * Get cached list of countries
  * 
  * @return type 
  */
 public function countries_list()
 {
     if (!($list = $this->cache->get('country-find'))) {
         $list = $this->country->order_by('country', 'ASC')->find();
         $list = up_array($list, 'country');
         $this->cache->save('country-find', $list, QCACHE_TIME);
     }
     $list[0] = lang('select_all');
     return $list;
 }
Example #2
0
 /**
  * Get all Shift Heads from our database
  *
  * @return array
  */
 private function shiftheads()
 {
     return up_array($this->shifthead->select('[id],[name]')->find(), 'name');
 }