Overview

Namespaces

  • None
  • Peg
    • Cli
      • Commands
    • Config
    • Custom
      • Command
        • Action
          • Generate
          • Parse
      • CommandLine
      • Config
      • Localization
      • Utilities
    • Lib
      • Definitions
        • Element
      • Generator
      • Lexers
      • Plugins
      • Signals
        • Data
          • Definitions
          • Lexers
        • Type
  • PHP

Classes

  • Application
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Application

Holds global options and objects.

Namespace: Peg\Lib
Located at src/Application.php
Methods summary
public static
# Initialize( )

Initialize all variables used by Peg. Has to be called before any usage of peg.

Initialize all variables used by Peg. Has to be called before any usage of peg.

public static boolean
# ValidExtension( )

Check if the current directory is of a valid extension.

Check if the current directory is of a valid extension.

Returns

boolean
public static string
# GetCwd( )

Gets the current working directory.

Gets the current working directory.

Returns

string
public static string
# GetSkeletonPath( )

Retreieve the skeleton path from PEG_SKELETON_PATH or throws an exception if not exists.

Retreieve the skeleton path from PEG_SKELETON_PATH or throws an exception if not exists.

Returns

string

Throws

Exception
public static Peg\Lib\Definitions\Symbols &
# GetDefinitions( )

Loads definitions files if not yet loaded and returns a reference to a symbols object that can be used throught the application.

Loads definitions files if not yet loaded and returns a reference to a symbols object that can be used throught the application.

Returns

Peg\Lib\Definitions\Symbols
public static Peg\Lib\Plugins\Loader &
# GetPluginLoader( )

Get reference to the plugin loader currently used by peg.

Get reference to the plugin loader currently used by peg.

Returns

Peg\Lib\Plugins\Loader
PEG Api API documentation generated by ApiGen 2.8.0