Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 60 lines (51 sloc) 1.815 kb
b2b5308 Goteo Models
authored
1 <?php
2 /*
3 * Copyright (C) 2012 Platoniq y Fundación Fuentes Abiertas (see README for details)
4 * This file is part of Goteo.
5 *
6 * Goteo is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Goteo is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with Goteo. If not, see <http://www.gnu.org/licenses/agpl.txt>.
18 *
19 */
20
21
22 /*
23 * Este modelo es para la geo localizacion
24 */
25
26 namespace Goteo\Model {
27
28 class Location extends \Goteo\Core\Model {
29
30 /**
31 * Obtener datos de una localizacion (longitud, latitud, nombbre completo )
32 * @param type mixed $id Identificador
33 * @return type object Objeto
34 */
35 static public function get ($id) {
36 return new stdClass();
37 }
38
39 /**
40 * Guardar.
41 * @param type array $errors Errores devueltos pasados por referencia.
42 * @return type bool true|false
43 */
44 public function save (&$errors = array()) {
45 if (!$this->validate()) return false;
46
47 return true;
48 }
49
50 /**
51 * Validar.
52 * @param type array $errors Errores devueltos pasados por referencia.
53 * @return type bool true|false
54 */
55 public function validate (&$errors = array()) {
56 return true;
57 }
58
59 }
60 }
Something went wrong with that request. Please try again.