Открытые члены | |
__construct ($componentName, $templateName='', $params=[], $additionalResponseParams=[], $parentComponent=[], $functionParams=[], $status=self::STATUS_SUCCESS, ErrorCollection $errorCollection=null) | |
getErrors () | |
getErrorByCode ($code) | |
Открытые члены унаследованные от Json | |
__construct ($data=null, $options=0) | |
setData ($data) | |
send () | |
Открытые члены унаследованные от HttpResponse | |
__construct () | |
flush ($text='') | |
addHeader ($name, $value='') | |
setHeaders (Web\HttpHeaders $headers) | |
addCookie (Web\Cookie $cookie, $replace=true, $checkExpires=true) | |
allowPersistentCookies ($mode) | |
getCookies () | |
getHeaders () | |
setStatus ($status) | |
getStatus () | |
setLastModified (Type\DateTime $time) | |
redirectTo ($url) | |
copyHeadersTo (HttpResponse $response) | |
Открытые члены унаследованные от Response | |
clear () | |
setContent ($content) | |
appendContent ($content) | |
getContent () | |
Открытые атрибуты | |
const | STATUS_SUCCESS = 'success' |
const | STATUS_DENIED = 'denied' |
const | STATUS_ERROR = 'error' |
Открытые атрибуты унаследованные от HttpResponse | |
const | STORE_COOKIE_NAME = 'STORE_COOKIES' |
Дополнительные унаследованные члены | |
Защищенные члены унаследованные от HttpResponse | |
flushStatus () | |
flushHeader ($header) | |
setCookie (Web\Cookie $cookie) | |
getServerProtocol () | |
Защищенные члены унаследованные от Response | |
checkContent ($content) | |
writeBody ($text) | |
Защищенные данные унаследованные от Json | |
$data | |
$jsonEncodingOptions = 0 | |
Защищенные данные унаследованные от HttpResponse | |
$cookies = [] | |
$headers | |
$lastModified | |
Защищенные данные унаследованные от Response | |
$content | |
См. определение в файле component.php строка 16
__construct | ( | $componentName, | |
$templateName = '', | |||
$params = [], | |||
$additionalResponseParams = [], | |||
$parentComponent = [], | |||
$functionParams = [], | |||
$status = self::STATUS_SUCCESS, | |||
ErrorCollection | $errorCollection = null ) |
Component constructor.
string | $componentName | |
string | $templateName | |
array | $params | |
array | $parentComponent | |
array | $functionParams | |
array | $additionalResponseParams | |
string | $status | |
ErrorCollection | null | $errorCollection |
См. определение в файле component.php строка 47
getErrorByCode | ( | $code | ) |
Getting once error with the necessary code.
string | $code | Code of error. |
Замещает Errorable.
См. определение в файле component.php строка 192
getErrors | ( | ) |
Getting array of errors.
Замещает Errorable.
См. определение в файле component.php строка 182
const STATUS_DENIED = 'denied' |
См. определение в файле component.php строка 19
const STATUS_ERROR = 'error' |
См. определение в файле component.php строка 20
const STATUS_SUCCESS = 'success' |
См. определение в файле component.php строка 18