Documentation

Core7
in package

FinalYes

$this->core Core7 class is included in your APIs as $this->core and it includes objects of other classes to facilitate your development:

  • $this->core->__p = new CorePerformance();
  • $this->core->is = new CoreIs();
  • $this->core->system = new CoreSystem($root_path);
  • $this->core->logs = new CoreLog();
  • $this->core->errors = new CoreLog();
  • $this->core->config = new CoreConfig($this, DIR . '/config.json');
  • $this->core->session = new CoreSession($this);
  • $this->core->security = new CoreSecurity($this);
  • $this->core->cache = new CoreCache($this);
  • $this->core->request = new CoreRequest($this);
  • $this->core->user = new CoreUser($this);
  • $this->core->localization = new CoreLocalization($this);
  • $this->core->model = new CoreModel($this);
  • $this->core->cfiLog = new CFILog($this);

Table of Contents

Properties

$__p  : CorePerformance
$_version  : mixed
$api  : RESTful
$auth  : CoreAuth
$cache  : CoreCache
$cfiLog  : CFILog
$config  : CoreConfig
$errors  : CoreLog
$gc_datastorage_client  : StorageClient
$gc_project_id  : string
$gc_project_service  : string
$is  : CoreIs
$localization  : CoreLocalization
$logs  : CoreLog
$model  : CoreModel
$request  : CoreRequest
$security  : CoreSecurity
$session  : CoreSession
$system  : CoreSystem
$user  : CoreUser
$loadedClasses  : array<string|int, mixed>

Methods

__construct()  : mixed
Core constructor.
dispatch()  : mixed
Router
jsonDecode()  : mixed
json_decode a
jsonEncode()  : false|string
json_encode an $input with JSON_UNESCAPED_UNICODE options by default. if any error iadd it
loadClass()  : mixed|null
Return an object of the Class $class. If this object has been previously called class
setAppPath()  : mixed
Assign the path to Root of the app
initDataStorage()  : mixed
Init gc_datastorage_client and registerStreamWrapper
isApiPath()  : bool
Is the current route part of the API?

Properties

$_version

public mixed $_version = '8.1.14'

$api

public RESTful $api

if we are executing an API code it will be the RESTful class

$auth

public CoreAuth $auth

$gc_datastorage_client

public StorageClient $gc_datastorage_client = \null

$gc_project_id

public string $gc_project_id

GCP Google Project assciated

$gc_project_service

public string $gc_project_service = 'default'

called

$loadedClasses

private array<string|int, mixed> $loadedClasses = []

control the classes loaded

Tags
link
Core::loadClass()

Methods

__construct()

Core constructor.

public __construct([string $root_path = '' ]) : mixed
Parameters
$root_path : string = ''

dispatch()

Router

public dispatch() : mixed

jsonDecode()

json_decode a

public jsonDecode( $input) : mixed
Parameters
$input :

jsonEncode()

json_encode an $input with JSON_UNESCAPED_UNICODE options by default. if any error iadd it

public jsonEncode( $input[, null $options = null ]) : false|string
Parameters
$input :
$options : null = null
Return values
false|string

loadClass()

Return an object of the Class $class. If this object has been previously called class

public loadClass( $class[, null $params = null ]) : mixed|null
Parameters
$class :
$params : null = null
Return values
mixed|null

setAppPath()

Assign the path to Root of the app

public setAppPath( $dir) : mixed
Parameters
$dir :

initDataStorage()

Init gc_datastorage_client and registerStreamWrapper

protected initDataStorage() : mixed

isApiPath()

Is the current route part of the API?

private isApiPath() : bool
Return values
bool

        
On this page

Search results