public static function constants($context) {
        if ($context['flags']['standalone'] == 0) {
            return 'array()';
        }

        $class = new \ReflectionClass($context['runtime']);
        $constants = $class->getConstants();
        $ret = " array(\n";
        foreach($constants as $name => $value) {
            $ret .= "            '$name' => ".  (is_string($value) ? "'$value'" : $value ) . ",\n";
        }
        $ret .= "        )";
        return $ret;
    }
public static function constants($context) {
        if ($context['flags']['standalone'] == 0) {
            return 'array()';
        }

        $class = new \ReflectionClass($context['runtime']);
        $constants = $class->getConstants();
        $ret = " array(\n";
        foreach($constants as $name => $value) {
            $ret .= "            '$name' => ".  (is_string($value) ? "'$value'" : $value ) . ",\n";
        }
        $ret .= "        )";
        return $ret;
    }
public static function constants ( $ context ) { if ( $ context [ 'flags' ] [ 'standalone' ] == 0 ) { return 'array()' ; } $ class = new \ ReflectionClass ( $ context [ 'runtime' ] ) ; $ constants = $ class -> getConstants ( ) ; $ ret = " array(\n" ; foreach ( $ constants as $ name => $ value ) { $ ret .= "            '$name' => " . ( is_string ( $ value ) ? "'$value'" : $ value ) . ",\n" ; } $ ret .= "        )" ; return $ ret ; }
Export Runtime constants

@param array<string,array|string|integer> $context current compile context

@return string
Export Runtime constants