4 * Entity class for MapBox.js map presets
6 class MapboxjsPreset
extends Entity
{
16 public
function __construct(array $values = array()) {
17 parent
::__construct($values, 'mapboxjs_preset');
20 public
function save() {
21 $this->updated
= REQUEST_TIME
;
22 if (isset($this->is_new
) && $this->is_new
) {
23 $this->created
= REQUEST_TIME
;
25 return parent
::save();
28 protected
function defaultUri() {
29 return array('path' => 'admin/structure/mapboxjs/presets/manage/' .
$this->identifier());