| 
    libSmalldb
    v0.6
    
   | 
 
Load JSON schema from file and interpret extends_file directive. 
Public Member Functions | |
| __construct ($filename) | |
| Constructor.  More... | |
| __toString () | |
| Render to JSON string, exporting fully expanded JSON schema.  More... | |
Static Public Member Functions | |
| static | loadFile ($filename) | 
| Load file and create the renderer.  More... | |
| static | parseFile ($filename, &$extendedFiles=null) | 
| Read and process file, read dependencies if exist.  More... | |
Public Attributes | |
| $filename | |
| Name of loaded file.  More... | |
| $schema | |
| Nested arrays representation of the schema.  More... | |
| $extendedFiles = [] | |
| List of extended files (parents)  More... | |
Static Protected Member Functions | |
| static | extendSchema ($orig, $ext) | 
| Recursively merge two schemas extending $orig with $ext.  More... | |
| static | annotateSchema ($schema, $annotation, $path= '') | 
| Annotate schema with an annotation.  More... | |
| __construct | ( | $filename | ) | 
Constructor.
      
  | 
  static | 
Load file and create the renderer.
      
  | 
  static | 
Read and process file, read dependencies if exist.
| [in] | $filename | Name of the file to parse and interpet. | 
| [out] | $extendedFiles | List of files additionaly loaded via extends_file directive.  | 
      
  | 
  staticprotected | 
Recursively merge two schemas extending $orig with $ext.
Like array_replace_recursive, but it concatenates lists instead of overwriting numeric keys.
| $orig | Parent config. | 
| $ext | Child config which extends the $parent. | 
      
  | 
  staticprotected | 
Annotate schema with an annotation.
| __toString | ( | ) | 
Render to JSON string, exporting fully expanded JSON schema.
| $filename | 
Name of loaded file.
| $schema | 
Nested arrays representation of the schema.
| $extendedFiles = [] | 
List of extended files (parents)
 1.8.11