function rowToDto($row)
 {
     $objNotas = new Notas();
     $objNotas->setId($row["nNotas_ID"]);
     $objNotas->setFecha($row["dtFecha"]);
     $objNotas->setTitulo($row["sTitulo"]);
     $objNotas->setNota($row["sNota"]);
     $objNotas->setEstado($row["sEstado"]);
     $objNotas->setCategoria($row["nCategoria_ID"]);
     return $objNotas;
 }
 function rowToDto($row)
 {
     $objNota = new Notas();
     $objNota->setId($row["id"]);
     $objNota->setNota($row["nota"]);
     $objNota->setFecha($row["fecha"]);
     $objNota->setEstado($row["estado"]);
     $objNota->setIdCategoria($row["idCategoria"]);
     $objNota->setTitulo($row["titulo"]);
     return $objNota;
 }
Exemplo n.º 3
0
					<div class="nota">
						<div class="imagen_nota"  style="background-image: url(./themes/classic/images/nota/3.png); "></div>
					<div class="texo_nota">
						<!--	Coordinar la ejecución del plan de respuesta de acuerdo a las alertas declaradas por la autoridades competentes-->
                        <?php 
echo Notas::model()->find("idNotas = 1")->Nota2;
?>
						</div>
					</div>

					<div class="nota">
						<div class="imagen_nota"  style="background-image: url(./themes/classic/images/nota/6.png); "></div>
					<div class="texo_nota">
							<!--Rehabilitación y recontrucción: acciones o solicitudes de apoyo con enfoque de desarrollo sostenible hacia la comunidad obrera/ estudiantil afectada-->
                        <?php 
echo Notas::model()->find("idNotas = 1")->Nota3;
?>
						</div>
					</div>
				</div>
				<div class="relleno"></div>

				</div>

		   </div>

		</div>			
		<div class="titulo-principal" style="width:100%;height:20px;"></div>

			
<script src="<?php 
Exemplo n.º 4
0
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return Notas the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Notas::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }