*/ class gvHidraCleaner extends gvHidraForm { /** * Crea una instancia de gvHidraCleaner. */ public function __construct() { parent::__construct(); } //Fin del constructor /** * {@inheritDoc} * @see gvHidraForm::accionesParticulares() */ public function accionesParticulares( $str_accion, $objDatos ) { $this->errorDebugger = ''; switch( $str_accion ) { case 'cleaner': //Modo tradicional include_once('igep/include_class.php'); session_start(); include_once ('igep/include_all.php'); /** @global Smarty_Phrame $s */ global $s; $s = new Smarty_Phrame(); $error = ( $s->clearCompiledTemplate() ? 0 : -1 ); $exec = $s->getCompileDir(); //Si todo fue bien, mostrar mensaje if($error==0){ IgepDebug::setDebug(DEBUG_USER,"LimpiarPlantillas Success"); $mensaje= new IgepMensaje('GVH-CleanerSuccess',array($exec)); IgepSession::guardaVariable('principal','obj_mensaje',$mensaje); $actionForward = $objDatos->getForward('gvCleaner'); return $actionForward; } IgepDebug::setDebug(DEBUG_USER,"LimpiarPlantillas Error"); $mensaje= new IgepMensaje('GVH-CleanerError',array($exec)); IgepSession::guardaVariable('principal','obj_mensaje',$mensaje); $actionForward = $objDatos->getForward('gvCleaner'); return $actionForward; break; default: break; } die; } //Fin de accionesParticulares } // End gvHidraCleaner