1: <?php
2:
3: /**
4: * Copyright 2015 AutEne.com.
5: *
6: * This work is licensed under the
7: * Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
8: * To view a copy of this license, visit
9: *
10: * http://creativecommons.org/licenses/by-nc-nd/3.0/
11: *
12: * or send a letter to Creative Commons, 444 Castro Street, Suite 900,
13: * Mountain View, California, 94041, USA.
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: */
20:
21: /**
22: * Description of Latitud
23: *
24: * La clase Latitud.php gestiona las propiedades de Latitud Geográfica de las
25: * provincias. Define la propiedad $latitud y al ser una clase extendida de la
26: * clase Provincia, también define la propiedad $provincia. Instanciamos un objeto
27: * Latitud por cada fila $row de la tabla aut_ciu_lat. El constructor de la
28: * clase toma como parametros de entrada la fila $row para instanciar cada objeto,
29: * la propiedad $provincia con una llamada al constructor de la clase Provincia:
30: * Provincia::__construct($row);
31: * y la propiedad $latitud asignandola directamente:
32: * $this->latitud = $row['Latitud'];
33: *
34: * @author antonio horrillo horrillo
35: */
36: class Latitud extends Provincia {
37:
38: ////////////////////////////////////////////////////////////////////////////////
39: // Propiedades de Latitud
40: ////////////////////////////////////////////////////////////////////////////////
41:
42: protected $latitud;
43:
44: ////////////////////////////////////////////////////////////////////////////////
45: // Método Get
46: ////////////////////////////////////////////////////////////////////////////////
47:
48: public function getLatitud() {
49: return $this->latitud;
50: }
51:
52: ////////////////////////////////////////////////////////////////////////////////
53: // Método Set
54: ////////////////////////////////////////////////////////////////////////////////
55:
56: public function setLatitud($latitud) {
57: $this->latitud=$latitud;
58: }
59:
60: ////////////////////////////////////////////////////////////////////////////////
61: // Constructor de Clase Latitud
62: ////////////////////////////////////////////////////////////////////////////////
63:
64: public function __construct($row) {
65: Provincia::__construct($row);
66: $this->latitud = $row['Latitud'];
67: }
68: }