Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Component
+ Граф наследования:Component:

Открытые члены

 __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()

__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()

getErrorByCode ( $code)

Getting once error with the necessary code.

Аргументы
string$codeCode of error.
Возвращает
Error

Замещает Errorable.

См. определение в файле component.php строка 192

◆ getErrors()

getErrors ( )

Getting array of errors.

Возвращает
Error[]

Замещает Errorable.

См. определение в файле component.php строка 182

Данные класса

◆ STATUS_DENIED

const STATUS_DENIED = 'denied'

См. определение в файле component.php строка 19

◆ STATUS_ERROR

const STATUS_ERROR = 'error'

См. определение в файле component.php строка 20

◆ STATUS_SUCCESS

const STATUS_SUCCESS = 'success'

См. определение в файле component.php строка 18