| 1234567891011121314151617 |
- <?php
- class LocationFile extends Model {
- protected static $table = "location_file";
- protected static $id_field = "id";
- protected static $fillable_fields = ["location_id", "type", "dts_uploaded"];
- const TYPE_PHOTO = 1;
- // Object methods
- public function getLocation() {
- return Location::get($location_id);
- }
- }
- ?>
|