nyroFwk  0.2
Public Member Functions | Protected Member Functions | Protected Attributes
response_abstract Class Reference
Inheritance diagram for response_abstract:
object response_http response_http_html response_http_xul

Public Member Functions

 getProxy ()
 
 getContent ()
 
 setContent ($content)
 
 comment ($comment)
 
 canGlobalCache ()
 
 getVarsForGlobalCache ()
 
 setVarsFromGlobalCache ($vars)
 
 send ()
 
 sendText ($text)
 
 __call ($func, $prm)
 
 __toString ()
 
 getAttr ($name)
 
 setAttr ($name, $value)
 
 getCfg ()
 

Protected Member Functions

 beforeInit ()
 
 afterInit ()
 

Protected Attributes

 $content
 
 $proxy = null
 
 $cfg
 

Detailed Description

Abstract response class

Definition at line 10 of file response/abstract.class.php.

Member Function Documentation

◆ __call()

__call (   $func,
  $prm 
)

Here to avoid wrong call to the response object

Definition at line 104 of file response/abstract.class.php.

◆ __toString()

__toString ( )

Definition at line 106 of file response/abstract.class.php.

◆ afterInit()

afterInit ( )
protectedinherited

Call just after the configuration initialisation

Definition at line 40 of file object.class.php.

◆ beforeInit()

beforeInit ( )
protectedinherited

Call just before the configuration initialisation

Definition at line 35 of file object.class.php.

◆ canGlobalCache()

canGlobalCache ( )

Indicates if the global Cache is possible for the response

Returns
boolean True if enabled

Definition at line 68 of file response/abstract.class.php.

◆ comment()

comment (   $comment)

Return the content commented regarding the response type

Parameters
string$comment
Returns
string

Definition at line 59 of file response/abstract.class.php.

◆ getAttr()

getAttr (   $name)
inherited

Get an attribute

Parameters
string$nameAttribute name
Returns
mixed|null The attribute or null if not set

Definition at line 48 of file object.class.php.

◆ getCfg()

getCfg ( )
inherited

Get the configuration object

Returns
config

Definition at line 67 of file object.class.php.

◆ getContent()

getContent ( )

Get the response content

Returns
mixed

Definition at line 40 of file response/abstract.class.php.

◆ getProxy()

getProxy ( )

Get the response proxy (used in the templates)

Returns
response_proxy

Definition at line 31 of file response/abstract.class.php.

◆ getVarsForGlobalCache()

getVarsForGlobalCache ( )

Get vars needed for globalCache this response

Returns
mixed

Definition at line 77 of file response/abstract.class.php.

◆ send()

send ( )
abstract

Send The response

◆ sendText()

sendText (   $text)
abstract

Send a text response (exit the programm)

Parameters
string$text

◆ setAttr()

setAttr (   $name,
  $value 
)
inherited

Set an attribute

Parameters
string$nameAttribute name
mixed$valueAttribute value

Definition at line 58 of file object.class.php.

◆ setContent()

setContent (   $content)

set the response content

Parameters
mixed$content

Definition at line 49 of file response/abstract.class.php.

◆ setVarsFromGlobalCache()

setVarsFromGlobalCache (   $vars)

Set vars saved from a globalCache response. This function should also apply the vars

Parameters
mixed$vars

Definition at line 87 of file response/abstract.class.php.

Field Documentation

◆ $cfg

$cfg
protectedinherited

Definition at line 17 of file object.class.php.

◆ $content

$content
protected

Definition at line 17 of file response/abstract.class.php.

◆ $proxy

$proxy = null
protected

Definition at line 24 of file response/abstract.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 2017 22:25:21 for nyroFwk by doxygen 1.8.13