/** * El contexto de ejeución permite al proyecto escribir comportamientos generales en las ventanas de inicio/fin de ejecución del pedido de página * @return toba_contexto_ejecucion */ static function contexto_ejecucion() { if (!isset(self::$contexto_ejecucion)) { $subclase = toba::proyecto()->get_parametro('contexto_ejecucion_subclase'); $archivo = toba::proyecto()->get_parametro('contexto_ejecucion_subclase_archivo'); if ($subclase && $archivo) { require_once $archivo; self::$contexto_ejecucion = new $subclase(); } else { self::$contexto_ejecucion = new toba_contexto_ejecucion(); } } return self::$contexto_ejecucion; }
function finalizar_contexto_rest() { toba::contexto_ejecucion()->conf__final(); if (isset($this->solicitud)) { $this->solicitud->guardar_cronometro(); } }