Menu

## Pionia
in package

Pionia.php : 17

This is the base class for the framework

It holds the settings and the version of the framework

All classes in the framework should extend this class to have access to the core configurations

##### Tags

since
  1.1.1
  - Added the ability to change the name of the framework from the core :)
author

  Jet - ezrajet9@gmail.com

### Table of Contents

#### Properties

$name : string
$settings : array<string|int, mixed>|null
$version : string

#### Methods

__construct() : mixed
boot() : Pionia
getServerSettings() : array<string|int, mixed>
  Returns the server settings under [server] in the settings file
getSetting() : mixed
  Checks for the setting and returns it If the setting is not found, it returns null
getSettingOrDefault() : mixed
  Returns the setting or the default value if the setting is not found
getSettings() : array<string|int, mixed>|null
  Returns all the settings in the settings file
getUploadSettings() : array<string|int, mixed>
  Returns the upload settings under [uploads] in the settings file
resolveSettingsFromIni() : array<string|int, mixed>|bool|null
  Resolved the settings from all the possible sources

### Properties

#### $name

Pionia.php : 23
`public static string $name = 'Pionia'`

#### $settings

Pionia.php : 19
`public static array<string|int, mixed>|null $settings = null`

#### $version

Pionia.php : 21
`public static string $version = '1.1.7'`

### Methods

#### __construct()

Pionia.php : 30
`public __construct() : mixed`

#### boot()

Pionia.php : 25
`public static boot() : Pionia`

##### Return values

Pionia

#### getServerSettings()

Pionia.php : 67

Returns the server settings under [server] in the settings file

`public static getServerSettings() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getSetting()

Pionia.php : 58

Checks for the setting and returns it If the setting is not found, it returns null

`public static getSetting(string $key) : mixed`

Here `SERVER` and `server` are the same

##### Parameters

$key : string

#### getSettingOrDefault()

Pionia.php : 82

Returns the setting or the default value if the setting is not found

`public static getSettingOrDefault(string $key, mixed $default) : mixed`

##### Parameters

$key : string
$default : mixed

#### getSettings()

Pionia.php : 45

Returns all the settings in the settings file

`public static getSettings() : array<string|int, mixed>|null`

##### Return values

array<string|int, mixed>|null

#### getUploadSettings()

Pionia.php : 126

Returns the upload settings under [uploads] in the settings file

`public static getUploadSettings() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### resolveSettingsFromIni()

Pionia.php : 97

Resolved the settings from all the possible sources

`public static resolveSettingsFromIni() : array<string|int, mixed>|bool|null`

Possible sources are:

- The settings file -- database.ini
- The session -- if the session is active and the session settings are set
- The server settings -- Anything in $_SERVER
- The environment settings -- Anything in $_ENV

##### Return values

array<string|int, mixed>|bool|null

## Search results