1
0

venue_type.php 413 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Class VenueType
  4. *
  5. * @property int $id
  6. * @property string $name
  7. */
  8. class VenueType extends Model {
  9. protected static $table = "venue_type";
  10. protected static $id_field = "id";
  11. protected static $fillable_fields = ["name"];
  12. // Static methods
  13. /**
  14. * @return VenueType[]
  15. * @throws Exception
  16. */
  17. public static function getAll(): array {
  18. return self::query([], ["sort" => "name"]);
  19. }
  20. }