public function __construct() { $this->id = Constrain::pk($this); $this->enunciado = Input::create_text('enunciado'); $this->tipo = Input::create_select('tipo', array(self::CERRADA => 'Cerrada', self::ABIERTA => 'Abierta')); $this->formulario_id = Constrain::fk('formulario_id', 'package1.formulario'); }
public function __construct() { $this->id = Constrain::pk($this); $this->nombre = Input::create_text('nombre'); $this->fecha_creacion = Input::create_datetime('fecha_creacion'); $this->encuestador_id = Constrain::fk('encuestador_id', 'package1.encuestador'); $this->fecha_creacion->set(date("Y-m-d H:i:s")); }
public function __construct() { $this->id = Constrain::pk($this); $this->valor = Input::create_text('valor'); $this->user_id = Constrain::fk('user_id', 'package1.usuario'); $this->cerradura = Input::create_text('cerradura'); $this->pregunta_abierta_id = Constrain::fk('pregunta_abierta_id', 'package1.pregunta_abierta'); }
function __construct() { $this->id = Constrain::pk($this); $this->username = Input::create_text('username'); $this->password = Input::create_password('password'); $this->hashtype = Input::create_hidden('hashtype'); $this->hashtype->set($this->hash_type()); $this->super = false; }
public function __construct() { $this->id = Constrain::pk($this); $this->sexo = Input::create_text('sexo'); $this->institucion = Input::create_text('institucion'); $this->labor = Input::create_text('labor'); $this->oficio = Input::create_text('oficio'); $this->user_id = Constrain::fk('user_id', 'package1.Usuario'); }
public function __construct() { $this->id = Constrain::pk($this); $this->identificacion = Input::create_text('identificacion'); $this->nombres = Input::create_text('nombres'); $this->apellidos = Input::create_text('apellidos'); $this->telefono = Input::create_text('telefono'); $this->email = Input::create_text('email'); $this->direccion = Input::create_text('direccion'); }
public function __construct() { $this->id = Constrain::pk($this); $this->valor = Input::create_text("valor"); $this->pregunta_cerrada_id = Constrain::fk('pregunta_cerrada_id', 'package1.pregunta_cerrada'); }