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 Panel
23: *
24: * La clase Panel.php gestiona las propiedades de los Módulos Solares.
25: * Las propiedades $Modelo, $Pmax, $Tolerancia, $Vmpp, $Impp, $Configuracion,
26: * $Peso, $Icc y $Voc se obtienen de una consulta a la base de datos, donde
27: * instanciamos un objeto Panel por cada fila $row de la tabla aut_dat_pan. El
28: * constructor de la clase toma como parametros de entrada la fila $row para
29: * instanciar cada objeto.
30: *
31: * @author antonio horrillo horrillo
32: */
33: class Panel {
34:
35: ////////////////////////////////////////////////////////////////////////////////
36: // Propiedades de Panel
37: ////////////////////////////////////////////////////////////////////////////////
38:
39: protected $Modelo;
40: protected $Pmax;
41: protected $Tolerancia;
42: protected $Vmpp;
43: protected $Impp;
44: protected $Configuracion;
45: protected $Peso;
46: protected $Icc;
47: protected $Voc;
48:
49: ////////////////////////////////////////////////////////////////////////////////
50: // Métodos Get
51: ////////////////////////////////////////////////////////////////////////////////
52:
53: public function getModelo() {
54: return $this->Modelo;
55: }
56:
57: public function getPmax() {
58: return $this->Pmax;
59: }
60:
61: public function getTolerancia() {
62: return $this->Tolerancia;
63: }
64:
65: public function getVmpp() {
66: return $this->Vmpp;
67: }
68:
69: public function getImpp() {
70: return $this->Impp;
71: }
72:
73: public function getConfiguracion() {
74: return $this->Configuracion;
75: }
76:
77: public function getPeso() {
78: return $this->Peso;
79: }
80:
81: public function getIcc() {
82: return $this->Icc;
83: }
84:
85: public function getVoc() {
86: return $this->Voc;
87: }
88:
89: ////////////////////////////////////////////////////////////////////////////////
90: // Métodos Set
91: ////////////////////////////////////////////////////////////////////////////////
92:
93: public function setModelo($Modelo) {
94: $this->Modelo = $Modelo;
95: }
96:
97: public function setPmax($Pmax) {
98: $this->Pmax = $Pmax;
99: }
100:
101: public function setTolerancia($Tolerancia) {
102: $this->Tolerancia = $Tolerancia;
103: }
104:
105: public function setVmpp($Vmpp) {
106: $this->Vmpp = $Vmpp;
107: }
108:
109: public function setImpp($Impp) {
110: $this->Impp = $Impp;
111: }
112:
113: public function setConfiguracion($Configuracion) {
114: $this->Configuracion = $Configuracion;
115: }
116:
117: public function setPeso($Peso) {
118: $this->Peso = $Peso;
119: }
120:
121: public function setIcc($Icc) {
122: $this->Icc = $Icc;
123: }
124:
125: public function setVoc($Voc) {
126: $this->Voc = $Voc;
127: }
128:
129: ////////////////////////////////////////////////////////////////////////////////
130: // Constructor de Clase Panel
131: ////////////////////////////////////////////////////////////////////////////////
132:
133: function __construct($row) {
134: $this->Modelo = $row['Modelo'];
135: $this->Pmax = $row['Pmax'];
136: $this->Tolerancia = $row['Tolerancia'];
137: $this->Vmpp = $row['Vmpp'];
138: $this->Impp = $row['Impp'];
139: $this->Configuracion = $row['Configuracion'];
140: $this->Peso = $row['Peso'];
141: $this->Icc = $row['Icc'];
142: $this->Voc = $row['Voc'];
143: }
144: }
145: ?>