Back to index

php5  5.3.10
Functions
msgformat.h File Reference
#include <php.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 PHP_FUNCTION (msgfmt_create)
 PHP_FUNCTION (msgfmt_get_error_code)
 PHP_FUNCTION (msgfmt_get_error_message)
 PHP_METHOD (MessageFormatter, __construct)

Function Documentation

Definition at line 90 of file msgformat.c.

Here is the call graph for this function:

Definition at line 112 of file msgformat.c.

{
       zval*                    object  = NULL;
       MessageFormatter_object*  mfo     = NULL;

       /* Parse parameters. */
       if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O",
              &object, MessageFormatter_ce_ptr ) == FAILURE )
       {
              intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
                     "msgfmt_get_error_code: unable to parse input params", 0 TSRMLS_CC );

              RETURN_FALSE;
       }

       mfo = (MessageFormatter_object *) zend_object_store_get_object( object TSRMLS_CC );

       /* Return formatter's last error code. */
       RETURN_LONG( INTL_DATA_ERROR_CODE(mfo) );
}

Here is the call graph for this function:

Definition at line 139 of file msgformat.c.

{
       char*                    message = NULL;
       zval*                    object  = NULL;
       MessageFormatter_object*  mfo     = NULL;

       /* Parse parameters. */
       if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O",
              &object, MessageFormatter_ce_ptr ) == FAILURE )
       {
              intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
                     "msgfmt_get_error_message: unable to parse input params", 0 TSRMLS_CC );

              RETURN_FALSE;
       }

       mfo = (MessageFormatter_object *) zend_object_store_get_object( object TSRMLS_CC );

       /* Return last error message. */
       message = intl_error_get_message( &mfo->mf_data.error TSRMLS_CC );
       RETURN_STRING( message, 0);
}

Here is the call graph for this function:

PHP_METHOD ( MessageFormatter  ,
__construct   
)

Definition at line 100 of file msgformat.c.

Here is the call graph for this function: