Agreement
Class Agreement
Table of Contents
Constants
- ACTIVE = 'Y'
- NOT_ACTIVE = 'N'
- TYPE_CUSTOM = 'C'
- TYPE_STANDARD = 'S'
Methods
- __construct() : mixed
- Construct.
- getActiveList() : array<string|int, mixed>
- Get active agreement list.
- getData() : array<string|int, mixed>
- Get agreement data.
- getErrors() : array<string|int, Error>
- Get errors.
- getFields() : array<string|int, mixed>
- Return fields.
- getFieldValues() : array<string|int, mixed>
- Return field values.
- getHtml() : string
- Get html.
- getId() : int
- Get agreement ID.
- getLabel() : string
- Get label with synbols '%' for link in label text.
- getLabelText() : string
- Get label text.
- getText() : string
- Get text.
- getTitle() : string
- Get title.
- getTypeNames() : array<string|int, mixed>
- Get types.
- getUrl() : string
- Get url.
- hasErrors() : bool
- Has errors.
- isActive() : string
- Return true if is active.
- isAgreementTextHtml() : bool
- isExist() : bool
- Return true if is exist.
- load() : string
- Return true if is used.
- mergeData() : void
- Merge agreement data.
- save() : void
- Save agreement data.
- setData() : void
- Set agreement data.
- setReplace() : $this
- Set replace.
Constants
ACTIVE
public
mixed
ACTIVE
= 'Y'
NOT_ACTIVE
public
mixed
NOT_ACTIVE
= 'N'
TYPE_CUSTOM
public
mixed
TYPE_CUSTOM
= 'C'
TYPE_STANDARD
public
mixed
TYPE_STANDARD
= 'S'
Methods
__construct()
Construct.
public
__construct(int $id[, array<string|int, mixed> $replace = array() ]) : mixed
Parameters
- $id : int
-
Agreement ID.
- $replace : array<string|int, mixed> = array()
-
Replace data.
getActiveList()
Get active agreement list.
public
static getActiveList() : array<string|int, mixed>
Return values
array<string|int, mixed>getData()
Get agreement data.
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>getErrors()
Get errors.
public
getErrors() : array<string|int, Error>
Return values
array<string|int, Error>getFields()
Return fields.
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getFieldValues()
Return field values.
public
getFieldValues() : array<string|int, mixed>
Return values
array<string|int, mixed>getHtml()
Get html.
public
getHtml() : string
Return values
stringgetId()
Get agreement ID.
public
getId() : int
Return values
intgetLabel()
Get label with synbols '%' for link in label text.
public
getLabel() : string
Return values
stringgetLabelText()
Get label text.
public
getLabelText() : string
Return values
stringgetText()
Get text.
public
getText([bool $cutTitle = false ]) : string
Parameters
- $cutTitle : bool = false
-
Cut title.
Return values
stringgetTitle()
Get title.
public
getTitle() : string
Return values
stringgetTypeNames()
Get types.
public
static getTypeNames() : array<string|int, mixed>
Return values
array<string|int, mixed>getUrl()
Get url.
public
getUrl() : string
Return values
stringhasErrors()
Has errors.
public
hasErrors() : bool
Return values
boolisActive()
Return true if is active.
public
isActive() : string
Return values
stringisAgreementTextHtml()
public
isAgreementTextHtml() : bool
Return values
boolisExist()
Return true if is exist.
public
isExist() : bool
Return values
boolload()
Return true if is used.
public
load(int $id) : string
Parameters
- $id : int
-
Agreement ID.
Return values
stringmergeData()
Merge agreement data.
public
mergeData(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
-
Data.
save()
Save agreement data.
public
save() : void
setData()
Set agreement data.
public
setData(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
-
Data.
setReplace()
Set replace.
public
setReplace(array<string|int, mixed> $replace) : $this
Parameters
- $replace : array<string|int, mixed>
-
Replace data.