private function LoadEnumerationsFromJson()
    {
        $enumerations_def = Json::Decode(
            file_get_contents($this->definitions_path . "enumerations.json")
        );

        foreach($enumerations_def as $header => $namespaces)
        {
            $this->symbols->AddHeader($header);
            
            foreach($namespaces as $namespace => $enumerations)
            {
                foreach($enumerations as $enumeration_name => $enumeration_data)
                {
                    if(!isset($enumeration_data["description"]))
                        $enumeration_data["description"] = "";
                    
                    $enumeration = new Element\Enumeration(
                        $enumeration_name,
                        $enumeration_data["options"],
                        $enumeration_data["description"]
                    );

                    $this->symbols->headers[$header]->AddEnumeration(
                        $enumeration,
                        $namespace
                    );
                }
            }
        }

        unset($enumerations_def);
    }
private function LoadEnumerationsFromJson()
    {
        $enumerations_def = Json::Decode(
            file_get_contents($this->definitions_path . "enumerations.json")
        );

        foreach($enumerations_def as $header => $namespaces)
        {
            $this->symbols->AddHeader($header);
            
            foreach($namespaces as $namespace => $enumerations)
            {
                foreach($enumerations as $enumeration_name => $enumeration_data)
                {
                    if(!isset($enumeration_data["description"]))
                        $enumeration_data["description"] = "";
                    
                    $enumeration = new Element\Enumeration(
                        $enumeration_name,
                        $enumeration_data["options"],
                        $enumeration_data["description"]
                    );

                    $this->symbols->headers[$header]->AddEnumeration(
                        $enumeration,
                        $namespace
                    );
                }
            }
        }

        unset($enumerations_def);
    }
private function LoadEnumerationsFromJson ( ) { $ enumerations_def = Json :: Decode ( file_get_contents ( $ this -> definitions_path . "enumerations.json" ) ) ; foreach ( $ enumerations_def as $ header => $ namespaces ) { $ this -> symbols -> AddHeader ( $ header ) ; foreach ( $ namespaces as $ namespace => $ enumerations ) { foreach ( $ enumerations as $ enumeration_name => $ enumeration_data ) { if ( ! isset ( $ enumeration_data [ "description" ] ) ) $ enumeration_data [ "description" ] = "" ; $ enumeration = new Element \ Enumeration ( $ enumeration_name , $ enumeration_data [ "options" ] , $ enumeration_data [ "description" ] ) ; $ this -> symbols -> headers [ $ header ] -> AddEnumeration ( $ enumeration , $ namespace ) ; } } } unset ( $ enumerations_def ) ; }
Load all enumeration symbols from enumerations.json
Load all enumeration symbols from enumerations . json