Пример #1
0
 public function __construct()
 {
     // Cargando los Valores fijos
     $criteria = new Criteria();
     $criteria->add(HojasPeer::NOMBRE, "BrMujer");
     $hoja = HojasPeer::doSelectOne($criteria);
     $valores = $hoja->getValoress();
     foreach ($valores as $valor) {
         //            $valor = new Valores();
         $this->hoja[$valor->getCelda()] = $valor->getValor();
     }
     //Cargando
     parent::__construct();
 }
Пример #2
0
 public function __construct($resultadosParciales)
 {
     $respuestas = array();
     foreach ($resultadosParciales as $resultado) {
         //            $resultado = new Resultadosparciales();
         $preguntas_id = $resultado->getPreguntasId();
         $opciones_id = $resultado->getOpcionesId();
         $criteria = new Criteria();
         $criteria->add(RespuestasPeer::PREGUNTAS_ID, $preguntas_id);
         $criteria->add(RespuestasPeer::OPCIONES_ID, $opciones_id);
         $respuesta = RespuestasPeer::doSelectOne($criteria);
         $celda = $respuesta->getCelda();
         $respuestas[$celda] = 1;
     }
     $this->hoja = $respuestas;
     parent::__construct();
 }
Пример #3
0
 public function __construct(Aspirantes $aspirante)
 {
     // como no tiene nada calculado, entonces lo inicializamos aca y dejamos el getValor por defecto
     $this->hoja = array();
     //Inicializando F12
     //tengo que obtener de la base datos el sexo del aspirante
     $this->hoja["F12"] = $aspirante->getSexo();
     //Inicializando F14
     //Obtener la edad
     $this->hoja["F14"] = $aspirante->getEdad();
     //Inicializando F17 y F18
     $this->hoja["F17"] = null;
     $this->hoja["F18"] = null;
     //Inicializando F19
     $this->hoja["F19"] = "X";
     parent::__construct();
 }