trait Core

Trait Core

Common static methods for containers or others

Methods

static string
getShortName()

Return short name of class (Ice:Class_Name)

static Core
getClass(string|null $className = null)

Return class by base class

static string
getModuleAlias()

Get module name of object

static Resource
getResource()

Return instance of resource for self class

static Config
getConfig(null $postfix = null, bool $isRequired = false, null $ttl = null)

Return config of self class

static Data_Provider
getDataProvider(string|null $postfix = null)

Return dat provider for self class

static string
getClassName()

Return class name (without namespace)

static Core
getBaseClass()

Return base class for self class (class extends Container)

static Code_Generator
getCodeGenerator()

Return code generator for self class type

static string
getNamespace()

Return namespace by base class

static Logger
getLogger()

Return logger for self class

static Registry
getRegistry(string $index = 'default')

Return registry storage for class

static Repository
getRepository(string $index = 'default')

Return repository storage for class

static Repository
getCacher(string $index = 'default')

Return cacher storage for class

dumpDie()

No description

dump()

No description

Details

at line 45
static string getShortName()

Return short name of class (Ice:Class_Name)

Return Value

string

at line 61
static Core getClass(string|null $className = null)

Return class by base class

Parameters

string|null $className

Return Value

Core

at line 80
static string getModuleAlias()

Get module name of object

'Ice/Model/Ice/User' => 'Ice'

Return Value

string

at line 95
static Resource getResource()

Return instance of resource for self class

Return Value

Resource

at line 112
static Config getConfig(null $postfix = null, bool $isRequired = false, null $ttl = null)

Return config of self class

Parameters

null $postfix
bool $isRequired
null $ttl

Return Value

Config

at line 128
static Data_Provider getDataProvider(string|null $postfix = null)

Return dat provider for self class

Parameters

string|null $postfix

Return Value

Data_Provider

at line 147
static string getClassName()

Return class name (without namespace)

Return Value

string

at line 162
static Core getBaseClass()

Return base class for self class (class extends Container)

Return Value

Core

at line 177
static Code_Generator getCodeGenerator()

Return code generator for self class type

Return Value

Code_Generator

at line 196
static string getNamespace()

Return namespace by base class

Return Value

string

at line 211
static Logger getLogger()

Return logger for self class

Return Value

Logger

at line 227
static Registry getRegistry(string $index = 'default')

Return registry storage for class

Parameters

string $index

Return Value

Registry

at line 243
static Repository getRepository(string $index = 'default')

Return repository storage for class

Parameters

string $index

Return Value

Repository

at line 259
static Repository getCacher(string $index = 'default')

Return cacher storage for class

Parameters

string $index

Return Value

Repository

at line 264
dumpDie()

at line 270
dump()