venue_type.php 271 B

1234567891011121314
  1. <?php
  2. class VenueType extends Model {
  3. protected static $table = "venue_type";
  4. protected static $id_field = "id";
  5. protected static $fillable_fields = ["name"];
  6. // Static methods
  7. public static function getAll() {
  8. return self::query([], ["sort" => "name"]);
  9. }
  10. }