\Erdiko

Erdiko Class

Summary

Methods
Properties
Constants
getTemplate()
getView()
getConfigFile()
getConfig()
getRoutes()
sendEmail()
log()
getCache()
No public properties found
No constants found
No protected methods found
$_logObject
N/A
No private methods found
No private properties found
N/A

Properties

$_logObject

$_logObject : 

Log Object

Type

Methods

getTemplate()

getTemplate(string $filename, mixed $data)

Load a template file from a module

Parameters

string $filename
mixed $data

, data to expose to template

getView()

getView(string $viewName, array $data)

Load a view from the current theme with the given data

Parameters

string $viewName
array $data

getConfigFile()

getConfigFile(string $file) : array

Read JSON config file and return array

Parameters

string $file

Returns

array —

$config

getConfig()

getConfig( $name)

Get configuration

Parameters

$name

getRoutes()

getRoutes()

Get the compiled application routes from the config files

sendEmail()

sendEmail( $toEmail,  $subject,  $body,  $fromEmail)

Send email

Parameters

$toEmail
$subject
$body
$fromEmail

log()

log( $logString,  $logLevel,  $logKey) : boolean

log

Parameters

$logString
$logLevel
$logKey

Returns

boolean —

$sucess

getCache()

getCache( $cacheType) : \cache

Get the configured cache instance using name

Parameters

$cacheType

Returns

\cache —

$cache returns the instance of the cache type