Changeset 8190

Show
Ignore:
Timestamp:
07/18/05 11:18:20 (3 years ago)
Author:
jlz
Message:

Issue #54: Added method name aliases to match the correct naming conventions. The old method names are kept for backwards compatiblity but should be considered obsolete.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/apis/php4/query_builder.c

    r8152 r8190  
    233233                module_number);                /* resource owner module */ 
    234234 
     235        /* NOTE: The query builder methods are named both as 
     236         * "addConstraint" and "add_constraint". The former is the 
     237         * original naming convention and kept for compatibility, while 
     238         * the latter follows the current naming conventions. 
     239         */ 
    235240        static function_entry builder_methods[] = { 
    236241                ZEND_STATIC_FE("midgardquerybuilder", _constructor,   NULL) 
    237242                ZEND_STATIC_FE("addconstraint",       _addConstraint, NULL) 
     243                ZEND_STATIC_FE("add_constraint",      _addConstraint, NULL) 
    238244                ZEND_STATIC_FE("begingroup",          _beginGroup,    NULL)   
     245                ZEND_STATIC_FE("begin_group",         _beginGroup,    NULL)   
    239246                ZEND_STATIC_FE("endgroup",            _endGroup,      NULL)   
     247                ZEND_STATIC_FE("end_group",           _endGroup,      NULL)   
    240248                ZEND_STATIC_FE("execute",             _execute,       NULL) 
    241249                ZEND_STATIC_FE("setlimit",            _setLimit,      NULL) 
     250                ZEND_STATIC_FE("set_limit",           _setLimit,      NULL) 
    242251                ZEND_STATIC_FE("setoffset",           _setOffset,     NULL)   
     252                ZEND_STATIC_FE("set_offset",          _setOffset,     NULL)   
    243253                {NULL, NULL, NULL} 
    244254        };