MCPcopy Create free account
hub / github.com/MapServer/MapServer / mapscript_style_object_new_ex

Function mapscript_style_object_new_ex

mapscript/php/style.c:666–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666static zend_object_value mapscript_style_object_new_ex(zend_class_entry *ce, php_style_object **ptr TSRMLS_DC)
667{
668 zend_object_value retval;
669 php_style_object *php_style;
670
671 MAPSCRIPT_ALLOC_OBJECT(php_style, php_style_object);
672
673 retval = mapscript_object_new_ex(&php_style->std, ce,
674 &mapscript_style_object_destroy,
675 &mapscript_style_object_handlers TSRMLS_CC);
676
677 if (ptr)
678 *ptr = php_style;
679
680 MAPSCRIPT_INIT_PARENT(php_style->parent);
681 php_style->color = NULL;
682 php_style->outlinecolor = NULL;
683 php_style->backgroundcolor = NULL;
684
685 return retval;
686}
687
688static zend_object_value mapscript_style_object_new(zend_class_entry *ce TSRMLS_DC)
689{

Callers 2

Calls 1

mapscript_object_new_exFunction · 0.85

Tested by

no test coverage detected