Skip to content

Commit

Permalink
Comments on classes
Browse files Browse the repository at this point in the history
  • Loading branch information
phalcon committed Aug 31, 2012
1 parent dca54ee commit 0f10939
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reference/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,21 @@ Each class has its own file .c file, in the case of Phalcon\\Auth file would be

.. code-block:: c
//PHP_METHOD(class_name, method_name)
PHP_METHOD(Phalcon_Auth, __construct){
zval *adapter_name, *options = NULL;
//Start a memory frame
PHALCON_MM_GROW();
//Receive the method parameters
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &adapter_name, &options) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
//Release the memory used
PHALCON_MM_RESTORE();
}
Expand Down

0 comments on commit 0f10939

Please sign in to comment.