Documentation

API Documentation

Table of Contents

Namespaces

karmabunny
Sprout

Classes

BootstrapConfig
Methods for determining the details of the very initial environment, prior to the rest of the system coming up
PHPUnit_Framework_TestCase
Event
Process queuing/execution class. Allows an unlimited number of callbacks to be added to 'events'. Events can be run multiple times, and can also process event-specific data. By default, Kohana has several system events.
Kohana
Provides Kohana-specific helper functions. This is where the magic happens!
Kohana_Exception
Creates a generic i18n exception.
Kohana_User_Exception
Creates a custom exception.
Kohana_404_Exception
Creates a Page Not Found exception.
utf8
UTF-8 helper class.

Constants

APPPATH  : mixed = \COREPATH . 'sprout' . \DIRECTORY_SEPARATOR
COREPATH  : mixed = __DIR__ . \DIRECTORY_SEPARATOR
DOCROOT  : mixed = \BASE_PATH . 'src' . \DIRECTORY_SEPARATOR
E_DATABASE_ERROR  : mixed = 44
E_KOHANA  : mixed = 42
E_PAGE_NOT_FOUND  : mixed = 43
ENVIRONMENT  : mixed = \getenv('SITES_ENVIRONMENT') ?: 'dev'
IN_PRODUCTION  : mixed = \ENVIRONMENT === 'prod'
KOHANA  : mixed = 'index.php'
PHPUNIT  : mixed = 0
SERVER_ONLINE  : mixed = \true
SITES_ENVIRONMENT  : mixed = \ENVIRONMENT
SPROUT_REQUEST_TAG  : mixed = Uuid::uuid4()
SPROUT_REQUEST_TIME  : mixed = microtime(TRUE)
STORAGE_PATH  : mixed = \BASE_PATH . 'storage' . \DIRECTORY_SEPARATOR
VENDOR_PATH  : mixed = \BASE_PATH . 'vendor' . \DIRECTORY_SEPARATOR
WEBROOT  : mixed = \BASE_PATH . 'web' . \DIRECTORY_SEPARATOR
WORKER_PHP_BIN  : mixed = \getenv('SITES_PHP_BIN')

Functions

arrayMapRecursive()  : mixed
Recursive version of array_map function I would imagine would be much slower than the original. Only use if necessary

Constants

APPPATH

public mixed APPPATH = \COREPATH . 'sprout' . \DIRECTORY_SEPARATOR

COREPATH

public mixed COREPATH = __DIR__ . \DIRECTORY_SEPARATOR

DOCROOT

public mixed DOCROOT = \BASE_PATH . 'src' . \DIRECTORY_SEPARATOR

E_DATABASE_ERROR

public mixed E_DATABASE_ERROR = 44

E_KOHANA

public mixed E_KOHANA = 42

E_PAGE_NOT_FOUND

public mixed E_PAGE_NOT_FOUND = 43

ENVIRONMENT

public mixed ENVIRONMENT = \getenv('SITES_ENVIRONMENT') ?: 'dev'

IN_PRODUCTION

public mixed IN_PRODUCTION = \ENVIRONMENT === 'prod'

SERVER_ONLINE

public mixed SERVER_ONLINE = \true

SITES_ENVIRONMENT

use ENVIRONMENT

public mixed SITES_ENVIRONMENT = \ENVIRONMENT

SPROUT_REQUEST_TAG

public mixed SPROUT_REQUEST_TAG = Uuid::uuid4()

SPROUT_REQUEST_TIME

public mixed SPROUT_REQUEST_TIME = microtime(TRUE)

STORAGE_PATH

public mixed STORAGE_PATH = \BASE_PATH . 'storage' . \DIRECTORY_SEPARATOR

VENDOR_PATH

public mixed VENDOR_PATH = \BASE_PATH . 'vendor' . \DIRECTORY_SEPARATOR

WEBROOT

public mixed WEBROOT = \BASE_PATH . 'web' . \DIRECTORY_SEPARATOR

WORKER_PHP_BIN

public mixed WORKER_PHP_BIN = \getenv('SITES_PHP_BIN')

Functions

arrayMapRecursive()

Recursive version of array_map function I would imagine would be much slower than the original. Only use if necessary

arrayMapRecursive(mixed $callback, array<string|int, mixed> $array) : mixed
Parameters
$callback : mixed

Callback function, can be string, array or in PHP 5.3, a function

$array : array<string|int, mixed>

The array to process

On this page

Search results