Singleton.c File Reference

#include "onphp.h"
#include "onphp_core.h"
#include "zend_globals.h"
#include "zend_exceptions.h"
#include "core/Base/Singleton.h"
#include "core/Exceptions.h"

Include dependency graph for Singleton.c:

Go to the source code of this file.

Functions

 ONPHP_METHOD (Singleton, __construct)
 ONPHP_METHOD (Singleton, __clone)
 ONPHP_METHOD (Singleton, __sleep)
 ONPHP_METHOD (Singleton, getInstance)
 ONPHP_METHOD (Singleton, getAllInstances)
 PHP_RINIT_FUNCTION (Singleton)
 PHP_RSHUTDOWN_FUNCTION (Singleton)

Variables

static zval * instances = NULL
static ONPHP_ARGINFO_ONE
zend_function_entry onphp_funcs_Singleton []


Function Documentation

ONPHP_METHOD ( Singleton  ,
getAllInstances   
)

Definition at line 174 of file Singleton.c.

References instances.

ONPHP_METHOD ( Singleton  ,
getInstance   
)

Definition at line 28 of file Singleton.c.

References instances, onphp_ce_BaseException, onphp_ce_Singleton, and onphp_ce_WrongArgumentException.

ONPHP_METHOD ( Singleton  ,
__sleep   
)

Definition at line 26 of file Singleton.c.

ONPHP_METHOD ( Singleton  ,
__clone   
)

Definition at line 25 of file Singleton.c.

ONPHP_METHOD ( Singleton  ,
__construct   
)

Definition at line 24 of file Singleton.c.

PHP_RINIT_FUNCTION ( Singleton   ) 

Definition at line 179 of file Singleton.c.

References instances.

PHP_RSHUTDOWN_FUNCTION ( Singleton   ) 

Definition at line 187 of file Singleton.c.

References instances.


Variable Documentation

zval* instances = NULL [static]

Definition at line 22 of file Singleton.c.

Referenced by ONPHP_METHOD(), PHP_RINIT_FUNCTION(), and PHP_RSHUTDOWN_FUNCTION().

ONPHP_ARGINFO_ONE [static]

Definition at line 194 of file Singleton.c.

zend_function_entry onphp_funcs_Singleton[]

Initial value:

 {




    ONPHP_ME(Singleton, __sleep,            NULL, ZEND_ACC_FINAL | ZEND_ACC_PRIVATE)
    {NULL, NULL, NULL}
}

Definition at line 196 of file Singleton.c.


Generated on Sun Dec 9 21:56:35 2007 for onPHP by  doxygen 1.5.4