Documentation

ToMemory extends Atom
in package
implements Loggingable

Basic Class of EasePHP

Interfaces, Classes, Traits and Enums

Loggingable

Table of Contents

$debug  : bool
Debug mode flag.
$logPrefix  : string
Adresář do kterého se zapisují logy.
$logStyles  : array<string|int, mixed>
Hodnoty pro obarvování logu.
$logType  : string
Předvolená metoda logování.
$parentObject  : Sand
Odkaz na vlastnící objekt.
$statusMessages  : array<string|int, mixed>
Messages live here
$instance  : mixed
Saves obejct instace (singleton...).
$messageID  : int
ID naposledy ulozene zpravy.
__toString()  : string
Magical function for all descendants (childern).
addToLog()  : int
Zapise zapravu do logu.
draw()  : string
Default draw method.
getLogStyle()  : string
Vrací styl logování.
getObjectName()  : string
Returns object name
singleton()  : mixed
Pri vytvareni objektu pomoci funkce singleton (ma stejne parametry, jako konstruktor) se bude v ramci behu programu pouzivat pouze jedna jeho instance (ta prvni).

Properties

$debug

Debug mode flag.

public bool $debug = false

$logPrefix

Adresář do kterého se zapisují logy.

public string $logPrefix = null

dirpath

$logStyles

Hodnoty pro obarvování logu.

public array<string|int, mixed> $logStyles = ['notice' => 'color: black;', 'success' => 'color: #2C5F23;', 'message' => 'color: #2C5F23;', 'warning' => 'color: #AB250E;', 'error' => 'color: red;', 'debug' => 'font-style: italic;', 'report' => 'font-wight: bold;', 'info' => 'color: blue;']

$logType

Předvolená metoda logování.

public string $logType = 'memory'

$parentObject

Odkaz na vlastnící objekt.

public Sand $parentObject = null

$statusMessages

Messages live here

public static array<string|int, mixed> $statusMessages = []

$instance

Saves obejct instace (singleton...).

private static mixed $instance = null

$messageID

ID naposledy ulozene zpravy.

private int $messageID = 0

unsigned

Methods

__toString()

Magical function for all descendants (childern).

public __toString() : string
Return values
string

addToLog()

Zapise zapravu do logu.

public addToLog(string|object $caller, string $message[, string $type = 'message' ]) : int
Parameters
$caller : string|object

název volajícího objektu

$message : string

zpráva

$type : string = 'message'

typ zprávy (success|info|error|warning|*)

Return values
int

logged message length

draw()

Default draw method.

public draw() : string
Return values
string

getLogStyle()

Vrací styl logování.

public getLogStyle([string $logType = 'notice' ]) : string
Parameters
$logType : string = 'notice'

typ logu warning|info|success|error|notice|*

Return values
string

getObjectName()

Returns object name

public getObjectName() : string
Return values
string

singleton()

Pri vytvareni objektu pomoci funkce singleton (ma stejne parametry, jako konstruktor) se bude v ramci behu programu pouzivat pouze jedna jeho instance (ta prvni).

public static singleton() : mixed
Tags
link

Dokumentace a priklad

Return values
mixed

Search results