Back to index

php5  5.3.10
Classes | Defines | Functions | Variables
formatter_class.h File Reference
#include <php.h>
#include "intl_common.h"
#include "intl_error.h"
#include "intl_data.h"
#include "formatter_data.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NumberFormatter_object

Defines

#define FORMATTER_METHOD_INIT_VARS   INTL_METHOD_INIT_VARS(NumberFormatter, nfo)
#define FORMATTER_METHOD_FETCH_OBJECT   INTL_METHOD_FETCH_OBJECT(NumberFormatter, nfo)
#define FORMATTER_OBJECT(nfo)   (nfo)->nf_data.unum

Functions

void formatter_register_class (TSRMLS_D)

Variables

zend_class_entry * NumberFormatter_ce_ptr

Class Documentation

struct NumberFormatter_object

Definition at line 27 of file formatter_class.h.

Collaboration diagram for NumberFormatter_object:
Class Members
formatter_data nf_data
zend_object zo

Define Documentation

Definition at line 38 of file formatter_class.h.

Definition at line 37 of file formatter_class.h.

#define FORMATTER_OBJECT (   nfo)    (nfo)->nf_data.unum

Definition at line 39 of file formatter_class.h.


Function Documentation

Definition at line 189 of file formatter_class.c.

{
       zend_class_entry ce;

       /* Create and register 'NumberFormatter' class. */
       INIT_CLASS_ENTRY( ce, "NumberFormatter", NumberFormatter_class_functions );
       ce.create_object = NumberFormatter_object_create;
       NumberFormatter_ce_ptr = zend_register_internal_class( &ce TSRMLS_CC );

       memcpy(&NumberFormatter_handlers, zend_get_std_object_handlers(),
              sizeof(NumberFormatter_handlers));
       NumberFormatter_handlers.clone_obj = NumberFormatter_object_clone;

       /* Declare 'NumberFormatter' class properties. */
       if( !NumberFormatter_ce_ptr )
       {
              zend_error(E_ERROR, "Failed to register NumberFormatter class");
              return;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

zend_class_entry* NumberFormatter_ce_ptr

Definition at line 27 of file formatter_class.c.