Yaf_Response_Abstract
abstract class Yaf_Response_Abstract (View source)
Constants
DEFAULT_BODY |
|
Properties
protected string | $_header | ||
protected string | $_body | ||
protected bool | $_sendheader |
Methods
__construct()
No description
__destruct()
No description
__toString()
No description
void
response()
Send response
bool
setHeader(string $name, string $value, bool $rep = false)
Set response header
bool
setBody(string $body, string $name = self::DEFAULT_BODY)
Set content to response
bool
appendBody(string $body, string $name = self::DEFAULT_BODY)
append a content to a exists content block
bool
prependBody(string $body, string $name = self::DEFAULT_BODY)
prepend a content to a exists content block
bool
clearBody(string $name = self::DEFAULT_BODY)
Clear existing content
mixed
getBody(string|null $name = self::DEFAULT_BODY)
Retrieve an existing content
Details
__construct()
No description
__destruct()
No description
__toString()
No description
void
response()
Send response
bool
setHeader(string $name, string $value, bool $rep = false)
Set response header
bool
setBody(string $body, string $name = self::DEFAULT_BODY)
Set content to response
bool
appendBody(string $body, string $name = self::DEFAULT_BODY)
append a content to a exists content block
bool
prependBody(string $body, string $name = self::DEFAULT_BODY)
prepend a content to a exists content block
bool
clearBody(string $name = self::DEFAULT_BODY)
Clear existing content
mixed
getBody(string|null $name = self::DEFAULT_BODY)
Retrieve an existing content