Documentation

ToEmail extends ToMemory
in package
implements Loggingable

Log to Email

Tags
author

Vitex vitex@hippy.cz

copyright

2009-2022 Vitex@hippy.cz (G)

Interfaces, Classes, Traits and Enums

Loggingable

Table of Contents

$debug  : bool
Debug mode flag.
$easeShared  : Shared
Obecné konfigurace frameworku.
$flushed  : array<string|int, mixed>
List of allready flushed messages.
$logLevel  : string
úroveň logování.
$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í.
$mailer  : Mailer
Handle to mailer.
$parentObject  : Sand
Odkaz na vlastnící objekt.
$recipient  : string
Recipient
$statusMessages  : array<string|int, mixed>
Messages live here
$subject  : string
Log Subject
$instance  : mixed
Saves obejct instace (singleton...).
$messageID  : int
ID naposledy ulozene zpravy.
__construct()  : mixed
Logger to mail Class
__destruct()  : mixed
Send collected messages.
__toString()  : string
Magical function for all descendants (childern).
addToLog()  : int
Write message into log
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

$easeShared

Obecné konfigurace frameworku.

public Shared $easeShared = null

$flushed

List of allready flushed messages.

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

$logLevel

úroveň logování.

public string $logLevel = 'debug'
  • silent,debug

$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 = 'email'

$parentObject

Odkaz na vlastnící objekt.

public Sand $parentObject = null

$recipient

Recipient

public string $recipient = null

$statusMessages

Messages live here

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

$subject

Log Subject

public string $subject = null

$instance

Saves obejct instace (singleton...).

private static mixed $instance = null

$messageID

ID naposledy ulozene zpravy.

private int $messageID = 0

unsigned

Methods

__construct()

Logger to mail Class

public __construct([string $recipient = '' ][, string $subject = null ]) : mixed
Parameters
$recipient : string = ''
$subject : string = null

of message

Return values
mixed

__destruct()

Send collected messages.

public __destruct() : mixed
Return values
mixed

__toString()

Magical function for all descendants (childern).

public __toString() : string
Return values
string

addToLog()

Write message into log

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

name of message's source

$message : string

body

$type : string = 'notice'

of message (success|info|error|warning|*)

Return values
int

logged message size ?

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