Oroboros Core
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • None
  • oroboros
    • core
      • abstracts
        • adapters
        • bootstrap
        • controllers
        • libraries
          • auth
          • bootstrap
          • cache
          • codex
          • config
          • container
          • data
          • database
          • dns
          • entity
          • enum
          • error
          • event
          • extension
          • file
          • flags
          • hooks
          • job
          • logger
          • manager
          • message
          • prototype
          • request
          • response
          • routine
          • shell
          • startup
          • stream
          • template
          • uri
          • utility
          • validation
            • workers
          • worker
        • models
        • patterns
          • behavioral
          • creational
        • utilities
          • exception
            • cache
            • container
          • http
        • views
      • interfaces
        • adapters
          • interpreters
          • sdk
        • api
          • adapters
          • bootstrap
          • controllers
          • psr
        • contract
          • adapters
          • bootstrap
          • codex
          • components
          • controllers
          • data
          • entities
          • errors
          • events
          • extensions
          • jobs
          • libraries
            • auth
            • cache
            • config
            • container
            • enum
            • file
            • flags
            • hooks
            • module
            • promise
            • record
            • request
            • response
            • server
            • shutdown
            • site
            • stream
            • template
            • theme
            • uri
          • models
          • patterns
            • behavioral
            • concurrency
            • creational
            • structural
          • routes
          • routines
            • bootload
            • declarative
            • procedural
            • subsystem
          • services
            • consumer
              • cgi
              • rest
                • local
                • remote
                  • authenticated
                  • unauthenticated
            • provider
              • cgi
              • rest
                • local
                • remote
                  • authenticated
                  • unauthenticated
          • utilities
            • datetime
            • exception
              • cache
              • container
            • filebase
            • http
            • math
            • parser
            • regex
            • session
          • views
        • enumerated
          • environment
          • flags
          • http
          • views
        • libraries
          • manager
          • worker
      • libraries
        • api
        • codex
        • container
        • enum
          • http
        • file
        • hooks
        • logger
        • math
        • psr4
        • request
        • response
        • stream
        • uri
      • patterns
        • creational
      • traits
        • adapters
        • bootstrap
        • codex
        • components
        • controllers
        • data
        • entities
        • events
        • extensions
        • jobs
        • libraries
          • container
          • file
          • request
          • response
          • stream
          • uri
        • models
        • modules
        • patterns
          • behavioral
          • concurrency
          • creational
          • structural
        • routes
        • services
        • utilities
          • core
            • api
            • config
            • contract
              • contract
            • enum
            • environment
            • routines
          • datetime
          • error
          • exception
          • filebase
          • hooks
          • html
          • http
          • logic
          • math
          • parsers
          • regex
          • session
        • views
      • utilities
        • exception
          • cache
          • container
        • http
      • views
    • tests
      • patterns
        • creational
      • psr
        • psr7
      • utilities
        • exception
  • PasswordCompat
    • binary
  • PHP

Interfaces

  • AdapterApi
  • AuthApi
  • BaseApi
  • BehavioralPatternApi
  • BootstrapApi
  • CacheApi
  • ClassScopeApi
  • ClassTypeApi
  • CodexApi
  • CollectionApi
  • ConcurrencyPatternApi
  • ContainerApi
  • ControllerApi
  • CoreApi
  • CreationalPatternApi
  • DatabaseApi
  • DataObjectApi
  • DataObjectCollectionApi
  • DefaultApi
  • EntityApi
  • EntityCollectionApi
  • EnumApi
  • EnvironmentApi
  • EventApi
  • ExceptionApi
  • ExceptionCodeApi
  • ExceptionMessageApi
  • ExtensionrApi
  • FlagApi
  • HtmlTemplateApi
  • JobApi
  • JobCollectionApi
  • LibraryApi
  • LoggerApi
  • LogLevelApi
  • MathApi
  • ModelApi
  • ModuleApi
  • OroborosApi
  • ParserApi
  • PatternApi
  • RecordApi
  • RecordCollectionApi
  • RegexApi
  • RequestApi
  • ResponseApi
  • RouteApi
  • RouterApi
  • RoutineApi
  • ServerApi
  • ServiceApi
  • ServiceCollectionApi
  • ShellApi
  • StreamApi
  • StructuralPatternApi
  • TemplateApi
  • UtilityApi
  • ViewApi

Interface FlagApi

Defines the base level system flags, and the standard methods for interacting with flags.

oroboros\core\interfaces\api\FlagApi implements oroboros\OroborosInterface

Direct known implementers

oroboros\core\abstracts\libraries\flags\AbstractFlag, oroboros\core\interfaces\api\OroborosApi, oroboros\core\interfaces\BaseAbstractInterface, oroboros\core\libraries\api\FlagTypes

Indirect known implementers

oroboros\core\abstracts\adapters\AbstractAdapter, oroboros\core\abstracts\adapters\AbstractBrowserAdapter, oroboros\core\abstracts\controllers\AbstractCgiController, oroboros\core\abstracts\controllers\AbstractController, oroboros\core\abstracts\controllers\AbstractFrontController, oroboros\core\abstracts\controllers\AbstractHttpController, oroboros\core\abstracts\controllers\AbstractRoutineController, oroboros\core\abstracts\libraries\AbstractLibrary, oroboros\core\abstracts\libraries\auth\AbstractAuth, oroboros\core\abstracts\libraries\bootstrap\AbstractBootstrap, oroboros\core\abstracts\libraries\cache\AbstractCache, oroboros\core\abstracts\libraries\data\AbstractDataObject, oroboros\core\abstracts\adapters\AbstractDatabaseAdapter, oroboros\core\abstracts\libraries\database\AbstractDatabaseManager, oroboros\core\abstracts\libraries\dns\AbstractRoute, oroboros\core\abstracts\libraries\dns\AbstractRouter, oroboros\core\abstracts\libraries\entity\AbstractEntity, oroboros\core\abstracts\libraries\error\AbstractErrorEvent, oroboros\core\abstracts\libraries\event\AbstractEvent, oroboros\core\abstracts\libraries\event\AbstractServerEvent, oroboros\core\abstracts\libraries\extension\AbstractExtension, oroboros\core\abstracts\libraries\hooks\AbstractHook, oroboros\core\abstracts\libraries\hooks\AbstractHookParser, oroboros\core\abstracts\adapters\AbstractLibraryAdapter, oroboros\core\abstracts\libraries\job\AbstractJob, oroboros\core\abstracts\libraries\logger\AbstractLogger, oroboros\core\abstracts\libraries\routine\AbstractRoutine, oroboros\core\abstracts\libraries\shell\AbstractShell, oroboros\core\abstracts\libraries\startup\AbstractBootstrap, oroboros\core\abstracts\libraries\template\AbstractTemplate, oroboros\core\abstracts\libraries\utility\AbstractUtility, oroboros\core\abstracts\OroborosBaseAbstract, oroboros\core\abstracts\patterns\behavioral\AbstractDirector, oroboros\core\abstracts\patterns\creational\AbstractFactory, oroboros\core\abstracts\adapters\AbstractProxyAdapter, oroboros\core\abstracts\patterns\creational\AbstractPrototypical, oroboros\core\libraries\codex\Codex, oroboros\core\libraries\hooks\SimpleHook, oroboros\core\libraries\logger\FileLogger, oroboros\core\libraries\logger\NullLogger, oroboros\core\patterns\creational\AdapterFactory, oroboros\core\patterns\creational\AppFactory, oroboros\core\patterns\creational\ControllerFactory, oroboros\core\patterns\creational\FactoryFactory, oroboros\core\patterns\creational\LibraryFactory, oroboros\core\abstracts\adapters\AbstractSdkAdapter, oroboros\core\patterns\creational\ModelFactory, oroboros\core\patterns\creational\ModuleFactory, oroboros\core\patterns\creational\TemplateFactory, oroboros\core\patterns\creational\ViewFactory, oroboros\core\abstracts\adapters\AbstractServiceAdapter, oroboros\core\abstracts\adapters\AbstractShellAdapter, oroboros\core\abstracts\adapters\AbstractSocketAdapter, oroboros\core\abstracts\controllers\AbstractAjaxController

Namespace: oroboros\core\interfaces\api
Author: Brian Dayhoff brian@mopsyd.me
Located at core/interfaces/api/FlagApi.php

Constants summary

string FLAG_UNIT_TEST

Designates that the runtime process is a test, and only relevant resources should be loaded.

Designates that the runtime process is a test, and only relevant resources should be loaded.

# '::unit_test::'
string FLAG_DEBUG

Designates that additional debugging information should be shown and/or collected.

Designates that additional debugging information should be shown and/or collected.

# '::debug::'
string FLAG_SANDBOX

Designates that destructive processes should be emulated.

Designates that destructive processes should be emulated.

# '::sandbox::'
string FLAG_PRODUCTION

Production server, all errors and server details should be opaque to the client. Typically, this designates the following behavior:

Production server, all errors and server details should be opaque to the client. Typically, this designates the following behavior:

Note

Errors are not displayed on screen.
Alpha features are disabled.
Beta features may be disabled, depending on app settings.
Errors with level ALERT or EMERGENCY alert the maintainer immediately.
# '::production::'
string FLAG_DEVELOPMENT

Development server, additional statistics and information displayed about performance and errors is ok.

Development server, additional statistics and information displayed about performance and errors is ok.

# '::development::'
string FLAG_RECOVERY

Designates that the application is in recovery, and only whitelisted users should have access whatsoever. Also that static resources should be used to bootstrap the application instead of the standard data sources. This flag typically gets tripped when the database is down, or some mission critical resource is not responding. This allows the whitelisted admins to log in and diagnose at least enough information to get the problem corrected with minimal downtime, instead of hunting through logs for nebulous error messages.

Designates that the application is in recovery, and only whitelisted users should have access whatsoever. Also that static resources should be used to bootstrap the application instead of the standard data sources. This flag typically gets tripped when the database is down, or some mission critical resource is not responding. This allows the whitelisted admins to log in and diagnose at least enough information to get the problem corrected with minimal downtime, instead of hunting through logs for nebulous error messages.

# '::recovery::'
string FLAG_MAINTENANCE

Designates that the application is in maintenance mode, and only authorized users should have access.

Designates that the application is in maintenance mode, and only authorized users should have access.

# '::maintenance::'
string FLAG_BETA

A feature in development, may be unsafe in production.

A feature in development, may be unsafe in production.

# '::beta::'
string FLAG_ALPHA

An experimental feature, should not be used in production.

An experimental feature, should not be used in production.

# '::alpha::'
string FLAG_MODE_AJAX

Output Mode Flag. ajax request. Check the headers for the request data type.

Output Mode Flag. ajax request. Check the headers for the request data type.

# '::mode-ajax::'
string FLAG_MODE_CLI

Output Mode Flag. command line interface, do not use server variables or set headers, output should be plaintext.

Output Mode Flag. command line interface, do not use server variables or set headers, output should be plaintext.

# '::mode-cli::'
string FLAG_TYPE_GET

HTTP Response Flag. GET HTTP or GET REST API request.

HTTP Response Flag. GET HTTP or GET REST API request.

# '::type-get::'
string FLAG_TYPE_POST

HTTP Response Flag. POST HTTP or POST REST API request.

HTTP Response Flag. POST HTTP or POST REST API request.

# '::type-post::'
string FLAG_TYPE_PUT

HTTP Response Flag. PUT REST API request.

HTTP Response Flag. PUT REST API request.

# '::type-put::'
string FLAG_TYPE_DELETE

HTTP Response Flag. DELETE REST API request.

HTTP Response Flag. DELETE REST API request.

# '::type-delete::'
string FLAG_TYPE_OPTIONS

HTTP Response Flag. Respond with options headers.

HTTP Response Flag. Respond with options headers.

# '::type-options::'
string FLAG_TYPE_HEAD

HTTP Response Flag. Respond with only http headers.

HTTP Response Flag. Respond with only http headers.

# '::type-head::'
string FLAG_READONLY

Designates that an object is read-only, and may only provide already defined data to other sources.

Designates that an object is read-only, and may only provide already defined data to other sources.

# '::read-only::'
string FLAG_LOCK_WRITE

Designates that an object should not be writeable, but may be readable or executeable.

Designates that an object should not be writeable, but may be readable or executeable.

# '::lock-write::'
string FLAG_LOCK_READ

Designates that an object should not be readable, but may still be writeable or executeable.

Designates that an object should not be readable, but may still be writeable or executeable.

# '::lock-read::'
string FLAG_LOCK_EXECUTE

Designates that an object should be locked, and prevent method execution.

Designates that an object should be locked, and prevent method execution.

# '::lock-execute::'

Constants inherited from oroboros\OroborosInterface

OROBOROS_VENDOR_NAMESPACE, OROBOROS_VERSION

Oroboros Core API documentation generated by ApiGen