Documentation

PresenterInterface
in

Base interface for all presenters

Table of Contents

getErrorCode()  : int
Method returns code of the last error
getErrorMessage()  : string
Method return last error description
getPresenterName()  : string
Method returns presenter's name
getViewParameter()  : mixed
Method gets view's var
run()  : mixed
Method runs presenter
setErrorCode()  : void
Method sets code of the last error
setErrorMessage()  : void
Method sets last error description
setPresenterName()  : void
Method sets presenter's name
setViewParameter()  : void
Method sets view's var

Methods

getErrorCode()

Method returns code of the last error

public getErrorCode() : int
Return values
int

code of the last error

getErrorMessage()

Method return last error description

public getErrorMessage() : string
Return values
string

last error description

getPresenterName()

Method returns presenter's name

public getPresenterName() : string
Return values
string

presenter's name

getViewParameter()

Method gets view's var

public getViewParameter(string $name) : mixed
Parameters
$name : string

var name

Return values
mixed

view's variable

run()

Method runs presenter

public run([string $presenterName = '' ]) : mixed
Parameters
$presenterName : string = ''

Presenter name to be run

Return values
mixed

Presenter execution result

setErrorCode()

Method sets code of the last error

public setErrorCode(int $errorCode) : void
Parameters
$errorCode : int
Tags
codeCoverageIgnore
Return values
void

setErrorMessage()

Method sets last error description

public setErrorMessage(string $errorMessage) : void
Parameters
$errorMessage : string
Tags
codeCoverageIgnore
Return values
void

setPresenterName()

Method sets presenter's name

public setPresenterName(string $presenterName) : void
Parameters
$presenterName : string
Return values
void

setViewParameter()

Method sets view's var

public setViewParameter(string $name, mixed $value, bool $setTemplateVar) : void
Parameters
$name : string

var name

$value : mixed

var value

$setTemplateVar : bool

do we need to set template parameter

Return values
void

Search results

    Яндекс.Метрика