Functions
in package
Description of Functions.
Tags
Table of Contents
- $DateFormat : string
- Formating string for \DateTime::format() for date columns.
- $DateTimeFormat : string
- Formating string for \DateTime::format() for datetime columns.
- code() : string
- Returns code:CODE.
- companyUrlToOptions() : array<string|int, mixed>
- Convert companyUrl provided by CustomButton to options array.
- dateToFlexiDate() : mixed
- PHP Date object to AbraFlexi date format.
- dateToFlexiDateTime() : mixed
- PHP Date object to AbraFlexi date format.
- evidenceToClassName() : string
- Gives you AbraFlexi class name for Given Evidence.
- flexiDateTimeToDateTime() : DateTime|false
- AbraFlexi dateTime to PHP DateTime conversion.
- flexiDateToDateTime() : DateTime|false
- AbraFlexi date to PHP DateTime conversion.
- flexiIN() : string
- Prepare "IN" subselect.
- flexiUrl() : string
- Generuje fragment url pro filtrování.
- object2array() : array<string|int, mixed>
- Převede rekurzivně Objekt na pole.
- objectToID() : array<string|int, mixed>
- Převede rekurzivně v poli všechny objekty na jejich identifikátory.
- uncode() : string
- Returns CODE without code: prefix.
- urlEncode() : string
- convert unicode to entities for use with AbraFlexi queries.
- urlizeId() : string
- Prepare record ID to use in URL.
- xml2array() : array<string|int, mixed>
- Convert XML to array.
Properties
$DateFormat
Formating string for \DateTime::format() for date columns.
public
static string
$DateFormat
= 'Y-m-d'
Tags
$DateTimeFormat
Formating string for \DateTime::format() for datetime columns.
public
static string
$DateTimeFormat
= 'Y-m-d\\TH:i:s.u+P'
Tags
Methods
code()
Returns code:CODE.
public
static code(string $code) : string
Parameters
- $code : string
Return values
string —companyUrlToOptions()
Convert companyUrl provided by CustomButton to options array.
public
static companyUrlToOptions(string $companyUrl) : array<string|int, mixed>
Parameters
- $companyUrl : string
Return values
array<string|int, mixed> —Options
dateToFlexiDate()
PHP Date object to AbraFlexi date format.
public
static dateToFlexiDate(DateTime $date) : mixed
Parameters
- $date : DateTime
Return values
mixed —dateToFlexiDateTime()
PHP Date object to AbraFlexi date format.
public
static dateToFlexiDateTime(DateTime $dateTime) : mixed
Parameters
- $dateTime : DateTime
Return values
mixed —evidenceToClassName()
Gives you AbraFlexi class name for Given Evidence.
public
static evidenceToClassName(string $evidence) : string
Parameters
- $evidence : string
Return values
string —Class name
flexiDateTimeToDateTime()
AbraFlexi dateTime to PHP DateTime conversion.
public
static flexiDateTimeToDateTime(string $flexidatetime) : DateTime|false
Parameters
- $flexidatetime : string
-
2017-09-26T10:00:53.755+02:00 or older 2017-05-19T00:00:00+02:00
Return values
DateTime|false —flexiDateToDateTime()
AbraFlexi date to PHP DateTime conversion.
public
static flexiDateToDateTime(string $flexidate) : DateTime|false
Parameters
- $flexidate : string
-
2017-05-26 or 2017-05-26Z or 2017-05-26+02:00
Return values
DateTime|false —flexiIN()
Prepare "IN" subselect.
public
static flexiIN(array<string|int, mixed> $items, string $key) : string
Parameters
- $items : array<string|int, mixed>
- $key : string
Return values
string —"in" fragment
flexiUrl()
Generuje fragment url pro filtrování.
public
static flexiUrl(array<string|int, mixed> $data[, string $joiner = 'and' ][, string $defop = 'eq' ]) : string
Parameters
- $data : array<string|int, mixed>
-
key=>values; value can bee class DatePeriod, DateTime or Array
- $joiner : string = 'and'
-
default and/or
- $defop : string = 'eq'
-
default operator
Tags
Return values
string —object2array()
Převede rekurzivně Objekt na pole.
public
static object2array(array<string|int, mixed>|object $object) : array<string|int, mixed>
Parameters
- $object : array<string|int, mixed>|object
Return values
array<string|int, mixed> —objectToID()
Převede rekurzivně v poli všechny objekty na jejich identifikátory.
public
static objectToID(array<string|int, mixed>|object $object) : array<string|int, mixed>
Parameters
- $object : array<string|int, mixed>|object
Return values
array<string|int, mixed> —uncode()
Returns CODE without code: prefix.
public
static uncode(string $code) : string
Parameters
- $code : string
Return values
string —urlEncode()
convert unicode to entities for use with AbraFlexi queries.
public
static urlEncode(string $urlRaw) : string
Parameters
- $urlRaw : string
Return values
string —urlizeId()
Prepare record ID to use in URL.
public
static urlizeId(mixed $id) : string
Parameters
- $id : mixed
Return values
string —id ready for use in URL
xml2array()
Convert XML to array.
public
static xml2array(string $xml) : array<string|int, mixed>
Parameters
- $xml : string