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 Provincia
23: *
24: * La clase Provincia.php gestiona las propiedades de Provincias. Define la
25: * propiedad $provincia. Instanciamos un objeto Provincia por cada clase extendida
26: * que llama a su constructor. De esta forma tenemos dos clases, Latitud y
27: * Radiacion que extienden de la clase Provincia, cuyos constructores invocan al
28: * constructor esta clase: Provincia::__construct($row);
29: * Dicho constructor toma como parametros de entrada la fila $row para instanciar
30: * cada objeto: $this->provincia = $row['Provincia'];
31: *
32: * @author antonio horrillo horrillo
33: */
34: class Provincia {
35:
36: ////////////////////////////////////////////////////////////////////////////////
37: // Propiedades de Provincia
38: ////////////////////////////////////////////////////////////////////////////////
39:
40: protected $provincia;
41:
42: ////////////////////////////////////////////////////////////////////////////////
43: // Método Get
44: ////////////////////////////////////////////////////////////////////////////////
45:
46: public function getProvincia() {
47: return $this->provincia;
48: }
49:
50: ////////////////////////////////////////////////////////////////////////////////
51: // Método Set
52: ////////////////////////////////////////////////////////////////////////////////
53:
54: public function setProvincia($provincia) {
55: $this->provincia = $provincia;
56: }
57:
58: ////////////////////////////////////////////////////////////////////////////////
59: // Constructor de Clase Provincia
60: ////////////////////////////////////////////////////////////////////////////////
61:
62: public function __construct($row) {
63: $this->provincia = $row['Provincia'];
64: }
65: }