| 1985 | |
| 1986 | |
| 1987 | void mapscript_create_layer(layerObj *layer, parent_object parent, zval *return_value TSRMLS_DC) |
| 1988 | { |
| 1989 | php_layer_object * php_layer; |
| 1990 | object_init_ex(return_value, mapscript_ce_layer); |
| 1991 | php_layer = (php_layer_object *)zend_object_store_get_object(return_value TSRMLS_CC); |
| 1992 | php_layer->layer = layer; |
| 1993 | |
| 1994 | if (layer->connectiontype != MS_GRATICULE || layer->layerinfo == NULL) |
| 1995 | { |
| 1996 | MAKE_STD_ZVAL(php_layer->grid); |
| 1997 | ZVAL_NULL(php_layer->grid); |
| 1998 | } |
| 1999 | |
| 2000 | if (parent.val) |
| 2001 | php_layer->is_ref = 1; |
| 2002 | |
| 2003 | php_layer->parent = parent; |
| 2004 | MAPSCRIPT_ADDREF(parent.val); |
| 2005 | } |
| 2006 | |
| 2007 | static void mapscript_layer_object_destroy(void *object TSRMLS_DC) |
| 2008 | { |
no outgoing calls
no test coverage detected