1
0

location_file.php 324 B

1234567891011121314151617
  1. <?php
  2. class LocationFile extends Model {
  3. protected static $table = "location_file";
  4. protected static $id_field = "id";
  5. protected static $fillable_fields = ["location_id", "type", "dts_uploaded"];
  6. const TYPE_PHOTO = 1;
  7. // Object methods
  8. public function getLocation() {
  9. return Location::get($location_id);
  10. }
  11. }
  12. ?>