function __construct($molde = null, $dr_molde = null) { if (isset($molde)) { $this->id_molde_proyecto = $molde['molde']['proyecto']; $this->id_molde = $molde['molde']['molde']; //Cargo el molde foreach (array_keys($molde) as $parte) { $this->{$parte} = $molde[$parte]; } } if (isset($dr_molde)) { $this->dr_molde = $dr_molde; } if (!isset($this->id_molde_proyecto)) { $this->id_molde_proyecto = toba_contexto_info::get_proyecto(); } $this->valores_predefinidos = toba_info_editores::get_opciones_predefinidas_molde(); }