Kotchasan

Kotchasan extends KBase
in package

The main class of the Kotchasan framework.

Tags
see
https://www.kotchasan.com/

Table of Contents

$char_set  : string
Default charset (recommended utf-8).
$debugger  : array<string|int, mixed>
Stores DEBUG information.
$defaultController  : string
The main controller.
$defaultRouter  : string
The main router.
$cfg  : object
Config class instance.
$request  : Request
Server request class instance.
$instance  : Singleton
Singleton instance of the class.
createWebApplication()  : static
Creates a web application instance. Can only be called once.
run()  : mixed
Runs the web page.
__construct()  : mixed
Class constructor (private, Singleton).

Properties

$char_set

Default charset (recommended utf-8).

public string $char_set = 'utf-8'

$debugger

Stores DEBUG information.

public static array<string|int, mixed> $debugger = ull

$defaultController

The main controller.

public string $defaultController = 'Index\Index\Controller'

$defaultRouter

The main router.

public string $defaultRouter = 'Kotchasan\Router'

$cfg

Config class instance.

protected static object $cfg

$request

Server request class instance.

protected static Request $request

$instance

Singleton instance of the class.

private static Singleton $instance = ull

Methods

createWebApplication()

Creates a web application instance. Can only be called once.

public static createWebApplication([mixed $cfg = null ]) : static
Parameters
$cfg : mixed = null

Name of the class or an object of the Config class. If not specified, \Kotchasan\Config will be used.

Return values
static

run()

Runs the web page.

public run() : mixed
Return values
mixed

__construct()

Class constructor (private, Singleton).

private __construct(mixed $cfg) : mixed
Parameters
$cfg : mixed

Name of the class or an object of the Config class. If not specified, \Kotchasan\Config will be used.

Return values
mixed

Search results