Skip to content

Commit 0f10939

Browse files
author
phalcon
committed
Comments on classes
1 parent dca54ee commit 0f10939

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/classes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,21 @@ Each class has its own file .c file, in the case of Phalcon\\Auth file would be
4646

4747
.. code-block:: c
4848
49+
//PHP_METHOD(class_name, method_name)
4950
PHP_METHOD(Phalcon_Auth, __construct){
5051
5152
zval *adapter_name, *options = NULL;
5253
54+
//Start a memory frame
5355
PHALCON_MM_GROW();
5456
57+
//Receive the method parameters
5558
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &adapter_name, &options) == FAILURE) {
5659
PHALCON_MM_RESTORE();
5760
RETURN_NULL();
5861
}
5962
63+
//Release the memory used
6064
PHALCON_MM_RESTORE();
6165
}
6266

0 commit comments

Comments
 (0)