PHP_METHOD(Phalcon_Logger_Formatter_Firephp, enableLabels) { zval **enable; phalcon_fetch_params_ex(1, 0, &enable); PHALCON_ENSURE_IS_BOOL(enable); phalcon_update_property_this(getThis(), SL("_enableLabels"), *enable TSRMLS_CC); }
PHP_METHOD(Phalcon_Logger_Formatter_Firephp, setShowBacktrace) { zval **show; phalcon_fetch_params_ex(1, 0, &show); PHALCON_ENSURE_IS_BOOL(show); phalcon_update_property_this(getThis(), SL("_showBacktrace"), *show TSRMLS_CC); }
/** * Phalcon\DI\Service * * @param string $name * @param mixed $definition * @param boolean $shared */ PHP_METHOD(Phalcon_DI_Service, __construct){ zval *name, *definition, *shared = NULL; phalcon_fetch_params(0, 2, 1, &name, &definition, &shared); PHALCON_ENSURE_IS_STRING(name); phalcon_update_property_zval(getThis(), SL("_name"), name); phalcon_update_property_zval(getThis(), SL("_definition"), definition); if (shared) { PHALCON_ENSURE_IS_BOOL(shared); phalcon_update_property_zval(getThis(), SL("_shared"), shared); } }