/* {{{ proto int referencemap.free() Free the object. */ PHP_METHOD(referenceMapObj, free) { zval *zobj = getThis(); php_referencemap_object *php_referencemap; PHP_MAPSCRIPT_ERROR_HANDLING(TRUE); if (zend_parse_parameters_none() == FAILURE) { PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); return; } PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); php_referencemap = (php_referencemap_object *) zend_object_store_get_object(zobj TSRMLS_CC); MAPSCRIPT_DELREF(php_referencemap->extent); MAPSCRIPT_DELREF(php_referencemap->color); MAPSCRIPT_DELREF(php_referencemap->outlinecolor); }
/* {{{ proto int label.free() Free the object */ PHP_METHOD(labelObj, free) { zval *zobj = getThis(); php_label_object *php_label; PHP_MAPSCRIPT_ERROR_HANDLING(TRUE); if (zend_parse_parameters_none() == FAILURE) { PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); return; } PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); php_label = MAPSCRIPT_OBJ_P(php_label_object, zobj); MAPSCRIPT_DELREF(php_label->color); MAPSCRIPT_DELREF(php_label->outlinecolor); MAPSCRIPT_DELREF(php_label->shadowcolor); }
/* proto void free() Free the object */ PHP_METHOD(labelCacheMemberObj, free) { zval *zobj = getThis(); php_labelcachemember_object *php_labelcachemember; PHP_MAPSCRIPT_ERROR_HANDLING(TRUE); if (zend_parse_parameters_none() == FAILURE) { PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); return; } PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); php_labelcachemember = (php_labelcachemember_object *) zend_object_store_get_object(zobj TSRMLS_CC); MAPSCRIPT_DELREF(php_labelcachemember->point); MAPSCRIPT_DELREF(php_labelcachemember->label); MAPSCRIPT_DELREF(php_labelcachemember->styles); MAPSCRIPT_DELREF(php_labelcachemember->poly); }
/* {{{ proto int scalebar.free() Free the object */ PHP_METHOD(scalebarObj, free) { zval *zobj = getThis(); php_scalebar_object *php_scalebar; PHP_MAPSCRIPT_ERROR_HANDLING(TRUE); if (zend_parse_parameters_none() == FAILURE) { PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); return; } PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); php_scalebar = (php_scalebar_object *) zend_object_store_get_object(zobj TSRMLS_CC); MAPSCRIPT_DELREF(php_scalebar->color); MAPSCRIPT_DELREF(php_scalebar->backgroundcolor); MAPSCRIPT_DELREF(php_scalebar->outlinecolor); MAPSCRIPT_DELREF(php_scalebar->imagecolor); MAPSCRIPT_DELREF(php_scalebar->label); }
/* {{{ proto void shapefile.free() Free the object */ PHP_METHOD(shapeFileObj, free) { zval *zobj = getThis(); php_shapefile_object *php_shapefile; PHP_MAPSCRIPT_ERROR_HANDLING(TRUE); if (zend_parse_parameters_none() == FAILURE) { PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); return; } PHP_MAPSCRIPT_RESTORE_ERRORS(TRUE); php_shapefile = (php_shapefile_object *) zend_object_store_get_object(zobj TSRMLS_CC); MAPSCRIPT_DELREF(php_shapefile->bounds); }