26 lines
389 B
PHP
26 lines
389 B
PHP
<?php
|
|
|
|
class Trips extends Model
|
|
{
|
|
|
|
const STATUS_PRIVATE = 'PRIVATE';
|
|
const STATUS_PUBLIC = 'PUBLIC';
|
|
const STATUS_DELETED = 'DELETED';
|
|
|
|
function __construct($fromArray = array())
|
|
{
|
|
$this->_tableName_ = 'trips';
|
|
parent::__construct($fromArray);
|
|
}
|
|
|
|
static function model()
|
|
{
|
|
return new self();
|
|
}
|
|
|
|
function distance()
|
|
{
|
|
return Geo::formatedDistance($this->distance);
|
|
}
|
|
}
|