public function __construct($e = FALSE)
 {
     parent::__construct('co_epigrafes');
     if ($e) {
         $this->idepigrafe = $this->intval($e['idepigrafe']);
         $this->idpadre = $this->intval($e['idpadre']);
         $this->codepigrafe = $e['codepigrafe'];
         $this->idgrupo = $this->intval($e['idgrupo']);
         $this->descripcion = $e['descripcion'];
         $this->codejercicio = $e['codejercicio'];
         if (!isset(self::$grupos)) {
             $ge = new grupo_epigrafes();
             self::$grupos = $ge->all_from_ejercicio($this->codejercicio);
         }
         foreach (self::$grupos as $g) {
             if ($g->idgrupo == $this->idgrupo) {
                 $this->codgrupo = $g->codgrupo;
                 break;
             }
         }
     } else {
         $this->idepigrafe = NULL;
         $this->idpadre = NULL;
         $this->codepigrafe = NULL;
         $this->idgrupo = NULL;
         $this->codgrupo = NULL;
         $this->descripcion = NULL;
         $this->codejercicio = NULL;
     }
 }