wikipoints/models/Tracks.php

22 lines
287 B
PHP

<?php
class Tracks extends Model
{
function __construct($fromArray = array())
{
$this->_tableName_ = 'tracks';
parent::__construct($fromArray);
}
static function model()
{
return new self();
}
function distance()
{
return Geo::formatedDistance($this->distance);
}
}