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

Traits

  • ControlApi
  • Lockable

Trait ControlApi

Provides an easy means of creating self documenting control apis. This trait affects instantiated objects. For static control methods, use StaticControl. This functionality is separated into two traits to maintain object organization.

Direct Known Users

oroboros\core\traits\adapters\AdapterTrait

Namespace: oroboros\core\traits\patterns\structural
Author: Brian Dayhoff mopsyd@me.com
See: \oroboros\traits\patterns\structural\StaticControlApi
Located at core/traits/patterns/structural/ControlApi.php

Methods summary

public array|false
# api( string $index = null, string $action = null )

Provides an api of control methods for quick useage documentation.

Provides an api of control methods for quick useage documentation.

Parameters

$index
(optional) If provided, returns the api within the scope of the specified control method. Otherwise returns an array of all registered control methods and their individual apis
$action
$method (optional) If provided, constrains the scope of the specified control method to the specific action. If not provided, returns the default action. Has no effect if [$index] is not provided

Returns

array|false
Returns false if no api exists as specified, otherwise returns an array of information
public mixed
# __call( string $name, string $args = array() )

Provides the control method api when methods are called directly.

Provides the control method api when methods are called directly.

Parameters

$name
$args

Returns

mixed

Throws

oroboros\lib\exception\LibraryException
if no control method is found to handle the request
protected
# _registerControlMethodSet( $method )
private
# _loadMethod( $name, $method = null, $args = null, $flags = null )
private
# _constructControlWorkerMethodName( $control, $method = null )
private
# _runControlMethod( $method, $command, $arguments, $flags, $args, $arg_count )
private
# _getControlMethodApi( $method )
private
# _reverseParseControlMethodName( $index, $method = null )
private
# _splitAtUpperCase( $s )

Properties summary

private array $_control_methods
# array()
private array $_api
# array()
Oroboros Core API documentation generated by ApiGen