Bånder

OWNE extends Frame
in package

OWNE frame - Ownership frame.

The 'Ownership' frame contains information about the owner of the file. It includes a price paid, date of purchase, and the seller name.

Table of Contents

Properties

$date  : string
$encoding  : int
$frameId  : string
$price  : string
$seller  : string

Methods

__construct()  : mixed
Constructs the OWNE frame with given parameters.
getDate()  : string
Returns the date of purchase.
getEncoding()  : int
Returns the text encoding.
getPrice()  : string
Returns the price paid.
getSeller()  : string
Returns the seller name.
parse()  : self
Parses the frame data.
setDate()  : self
Sets the date of purchase.
setEncoding()  : self
Sets the text encoding.
setPrice()  : self
Sets the price paid.
setSeller()  : self
Sets the seller name.
toBytes()  : string
Converts the frame to binary data.

Properties

$date

protected string $date = ''

$encoding

protected int $encoding = Encoding::UTF8

$frameId

protected string $frameId
Hooks
protected string get

$price

protected string $price = ''

$seller

protected string $seller = ''

Methods

__construct()

Constructs the OWNE frame with given parameters.

public __construct([string $price = '' ][, string $date = '' ][, string $seller = '' ][, int $encoding = Encoding::UTF8 ]) : mixed
Parameters
$price : string = ''
$date : string = ''
$seller : string = ''
$encoding : int = Encoding::UTF8

getDate()

Returns the date of purchase.

public getDate() : string
Return values
string

getEncoding()

Returns the text encoding.

public getEncoding() : int
Return values
int

getPrice()

Returns the price paid.

public getPrice() : string
Return values
string

getSeller()

Returns the seller name.

public getSeller() : string
Return values
string

parse()

Parses the frame data.

public parse(string $frameData) : self
Parameters
$frameData : string
Return values
self

setDate()

Sets the date of purchase.

public setDate(string $date) : self
Parameters
$date : string
Return values
self

setEncoding()

Sets the text encoding.

public setEncoding(int $encoding) : self
Parameters
$encoding : int
Return values
self

setPrice()

Sets the price paid.

public setPrice(string $price) : self
Parameters
$price : string
Return values
self

setSeller()

Sets the seller name.

public setSeller(string $seller) : self
Parameters
$seller : string
Return values
self

toBytes()

Converts the frame to binary data.

public toBytes() : string
Return values
string

        
On this page

Search results