Пример #1
0
 /**
  * 
  * @return a list of objects.
  */
 public static function listByFullName($pais_id = '')
 {
     if ($pais_id != '') {
         $items = Pais::where('id', $pais_id)->get();
     } else {
         $items = Pais::get();
     }
     $key = 'id';
     $value = 'full_name';
     return Pais::getListFields($items, $key, $value);
 }