Bitrix API

ResizedImage extends BFile

Table of Contents

Constants

STORE_COOKIE_NAME  = 'STORE_COOKIES'

Methods

__construct()  : mixed
addCookie()  : $this
Adds a cookie to the response.
addHeader()  : $this
Adds an HTTP header field to the response.
allowPersistentCookies()  : mixed
Remembers user's choice about storing persistent cookies.
appendContent()  : $this
Appends content.
clear()  : mixed
copyHeadersTo()  : HttpResponse
createByFileData()  : mixed
createByFileId()  : mixed
createByImageData()  : mixed
createByImageId()  : mixed
flush()  : mixed
Flushes the content to the output buffer. All following output will be ignored.
getCacheTime()  : int
getContent()  : string
Returns content of response.
getContentType()  : string
getCookies()  : array<string|int, Cookie>
getFile()  : array<string|int, mixed>
getFilters()  : mixed
getHeaders()  : HttpHeaders
getHeight()  : mixed
getImage()  : array<string|int, mixed>
getName()  : null
getPath()  : mixed
getResizeType()  : int
getStatus()  : int
Returns the HTTP status of the response.
getWidth()  : mixed
isShowInline()  : bool
redirectTo()  : Redirect
send()  : void
Sends content to the output.
setCacheTime()  : File
setContent()  : $this
Sets content.
setContentType()  : File
setFilters()  : ResizedImage
setHeaders()  : $this
Sets a collection of HTTP headers.
setHeight()  : ResizedImage
setLastModified()  : $this
Sets the latest time for the Last-Modified header field.
setName()  : File
setPath()  : File
setResizeType()  : ResizedImage
setStatus()  : $this
Sets the HTTP status of the response.
setWidth()  : ResizedImage
showInline()  : File
writeHeaders()  : mixed
Flushes all headers and cookies

Constants

public mixed STORE_COOKIE_NAME = 'STORE_COOKIES'

Methods

__construct()

public __construct(array<string|int, mixed> $file, mixed $width, mixed $height[, mixed $name = null ]) : mixed
Parameters
$file : array<string|int, mixed>
$width : mixed
$height : mixed
$name : mixed = null

addCookie()

Adds a cookie to the response.

public addCookie(Cookie $cookie[, bool $replace = true ][, bool $checkExpires = true ]) : $this
Parameters
$cookie : Cookie

The cookie.

$replace : bool = true

Replace an existing cookie or not.

$checkExpires : bool = true

Check expires value of the cookie or not.

Return values
$this

addHeader()

Adds an HTTP header field to the response.

public addHeader(string $name[, string $value = '' ]) : $this
Parameters
$name : string

Header field name

$value : string = ''

Header field value

Tags
throws
ArgumentNullException
Return values
$this

allowPersistentCookies()

Remembers user's choice about storing persistent cookies.

public allowPersistentCookies(bool $mode) : mixed
Parameters
$mode : bool

appendContent()

Appends content.

public appendContent(mixed $content) : $this

Valid types are strings, numbers, null, and objects that implement a __toString() method.

Parameters
$content : mixed

Content that can be cast to string.

Tags
throws
ArgumentTypeException
Return values
$this

createByFileData()

public static createByFileData(array<string|int, mixed> $file[, mixed $name = null ]) : mixed
Parameters
$file : array<string|int, mixed>
$name : mixed = null

createByFileId()

public static createByFileId(mixed $fileId[, mixed $name = null ]) : mixed
Parameters
$fileId : mixed
$name : mixed = null

createByImageData()

public static createByImageData(array<string|int, mixed> $imageData, mixed $width, mixed $height[, mixed $name = null ]) : mixed
Parameters
$imageData : array<string|int, mixed>
$width : mixed
$height : mixed
$name : mixed = null

createByImageId()

public static createByImageId(mixed $imageId, mixed $width, mixed $height[, mixed $name = null ]) : mixed
Parameters
$imageId : mixed
$width : mixed
$height : mixed
$name : mixed = null

flush()

Flushes the content to the output buffer. All following output will be ignored.

public flush([string $text = '' ]) : mixed
Parameters
$text : string = ''

getCacheTime()

public getCacheTime() : int
Return values
int

getContent()

Returns content of response.

public getContent() : string
Return values
string

getContentType()

public getContentType() : string
Return values
string

getFile()

public getFile() : array<string|int, mixed>
Return values
array<string|int, mixed>

getImage()

public getImage() : array<string|int, mixed>
Return values
array<string|int, mixed>

getName()

public getName() : null
Return values
null

getPath()

public getPath() : mixed

getResizeType()

public getResizeType() : int
Return values
int

getStatus()

Returns the HTTP status of the response.

public getStatus() : int
Return values
int

isShowInline()

public isShowInline() : bool
Return values
bool

send()

Sends content to the output.

public send() : void

setCacheTime()

public setCacheTime(int $cacheTime) : File
Parameters
$cacheTime : int
Return values
File

setContent()

Sets content.

public setContent(mixed $content) : $this

Valid types are strings, numbers, null, and objects that implement a __toString() method.

Parameters
$content : mixed

Content that can be cast to string.

Tags
throws
ArgumentTypeException
Return values
$this

setContentType()

public setContentType(string $contentType) : File
Parameters
$contentType : string
Return values
File

setHeaders()

Sets a collection of HTTP headers.

public setHeaders(HttpHeaders $headers) : $this
Parameters
$headers : HttpHeaders

Headers collection.

Return values
$this

setLastModified()

Sets the latest time for the Last-Modified header field.

public setLastModified(DateTime $time) : $this
Parameters
$time : DateTime
Return values
$this

setName()

public setName(null $name) : File
Parameters
$name : null
Return values
File

setPath()

public setPath(mixed $path) : File
Parameters
$path : mixed
Return values
File

setStatus()

Sets the HTTP status of the response.

public setStatus(string|int $status) : $this
Parameters
$status : string|int
Return values
$this

showInline()

public showInline(bool $enabled) : File
Parameters
$enabled : bool
Return values
File

writeHeaders()

Flushes all headers and cookies

public writeHeaders() : mixed

        
On this page

Search results