previousPEAR::getStaticProperty() (Previous) (Next) PEAR::isError()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

PEAR::registerShutdownFunc()

PEAR::registerShutdownFunc() – définie une fonction d'arrêt pour une classe statique (package developer related)

Synopsis

require_once 'PEAR.php';

void PEAR::registerShutdownFunc ( array $func , array $var = array() )

Description

La fonction indiquée est appelée, avant que l'interpréteur PHP ne soit terminé.

Parameter

  • array $func - le nom de la classe ou de la fonction à appeler.

  • array $var - paramètres éventuellement requis par la fonction. Ce paramètre est remis à la fonction dans l'ordre du tableau.

Example

Exemple avec registerShutdownFunc()

<?php

require_once 'PEAR.php';

class 
myClass {

function 
myClass() 
{
 
PEAR::registerShutdownFunc(array('myClass''shutdown'), 
                            array(
'param1''param2'));
}

function 
shutdown$param1$param2)
{
 
// faire quelque chose avant l'arr&ecirc;t
}

}

?>
previousPEAR::getStaticProperty() (Previous) (Next) PEAR::isError()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.