diff --git a/.gitignore b/.gitignore index 5ee5d3c..8ee3f8d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ vendor node_modules .phpdoc .phive +/.phpunit.cache +/.vscode diff --git a/changelog.md b/CHANGELOG.md similarity index 99% rename from changelog.md rename to CHANGELOG.md index f44f7fb..3028d0c 100644 --- a/changelog.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ### All notable changes to `CRM CLient V4` will be documented in this file. # version 4.0.0 -CRM bump with php 8 +- Changed: CRM is now php 8.2 only # version 3.0.6 - Added: SingleOptin::unsetStatusWithHashcode to allow customers to unsubscribe using a hashcode, now single optins do have hashcodes diff --git a/license.md b/LICENCE.md similarity index 96% rename from license.md rename to LICENCE.md index 8ee145e..7e9e75d 100644 --- a/license.md +++ b/LICENCE.md @@ -1,6 +1,6 @@ MIT License (!! includes CC BY-NC 3.0 parts please read Readme.md) -Copyright (c) 2021 Jérémy Munsch +Copyright (c) 2023 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/readme.md b/README.md similarity index 100% rename from readme.md rename to README.md diff --git a/docs/client-api/classes/LDC-LDCCRM-CrmApiV2.html b/docs/client-api/classes/LDC-LDCCRM-CrmApiV4.html similarity index 56% rename from docs/client-api/classes/LDC-LDCCRM-CrmApiV2.html rename to docs/client-api/classes/LDC-LDCCRM-CrmApiV4.html index 5c08173..4e482e9 100644 --- a/docs/client-api/classes/LDC-LDCCRM-CrmApiV2.html +++ b/docs/client-api/classes/LDC-LDCCRM-CrmApiV4.html @@ -2,14 +2,15 @@ - CRM V4 + CRM V4 + - + @@ -18,6 +19,7 @@ + @@ -51,52 +53,54 @@ - - + public - string + string|null $postcode

The account city postcode

-
- - + +

$state_order +

@@ -954,19 +972,18 @@ using validation rules - + public - ArcadiaOrderType + ArcadiaOrderType|null $state_order

The arcadia order date

-
- - + +

$support_code +

@@ -989,19 +1007,18 @@ using validation rules - + public - int + int|null $support_code

The arcadia support code

-
- - + +

$modelFields +

@@ -1032,9 +1050,9 @@ using validation rules $modelFields = ['email', 'firstname', 'lastname', 'phone', 'address', 'address2', 'city', 'postcode', 'operation', 'support_code', 'label_type_support', 'order_date', 'order_num', 'state_order', 'package_unit_weight'] - - - + + +

$validation +

@@ -1065,9 +1084,9 @@ using validation rules $validation = ['email' => 'required|email', 'firstname' => 'required|string|min:2|max:255', 'lastname' => 'required|string|min:2|max:255', 'phone' => 'sometimes|string|min:10|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|max:255', 'postcode' => 'sometimes|string|max:255', 'operation' => 'required|int', 'support_code' => 'required|int', 'label_type_support' => 'required|string|min:2|max:255', 'order_date' => 'required|date_format:Y/m/d H:i:s', 'order_num' => 'required|int', 'state_order' => ['required'], 'package_unit_weight' => 'required|int'] - - - + + +

$address +

@@ -1094,7 +1114,7 @@ using validation rules private - string + string|null $address = null @@ -1104,8 +1124,8 @@ Max length 255 Field Type varchar

- - + +

$address2 +

@@ -1132,7 +1153,7 @@ Field Type varchar

private - string + string|null $address2 = null @@ -1142,8 +1163,8 @@ Max length 255 Field Type varchar

- - + +

$city +

@@ -1170,7 +1192,7 @@ Field Type varchar

private - string + string|null $city = null @@ -1180,8 +1202,8 @@ Max length 255 Field Type varchar

- - + +

$email +

@@ -1208,7 +1231,7 @@ Field Type varchar

private - string + string|null $email = null @@ -1219,8 +1242,8 @@ Max length 255 Field Type varchar

- - + +

$firstname +

@@ -1247,7 +1271,7 @@ Field Type varchar

private - string + string|null $firstname = null @@ -1257,8 +1281,8 @@ Max length 255 Field Type varchar

- - + +

$label_type_support +

@@ -1285,7 +1310,7 @@ Field Type varchar

private - string + string|null $label_type_support = null @@ -1293,8 +1318,8 @@ Field Type varchar

Required

- - + +

$lastname +

@@ -1321,7 +1347,7 @@ Field Type varchar

private - string + string|null $lastname = null @@ -1331,8 +1357,8 @@ Max length 255 Field Type varchar

- - + +

$operation +

@@ -1359,7 +1386,7 @@ Field Type varchar

private - int + int|null $operation = null @@ -1367,8 +1394,8 @@ Field Type varchar

Required

- - + +

$order_date +

@@ -1395,7 +1423,7 @@ Field Type varchar

private - string + string|null $order_date = null @@ -1403,8 +1431,8 @@ Field Type varchar

Required

- - + +

$order_num +

@@ -1431,7 +1460,7 @@ Field Type varchar

private - int + int|null $order_num = null @@ -1439,8 +1468,8 @@ Field Type varchar

Required

- - + +

$package_unit_weight +

@@ -1467,7 +1497,7 @@ Field Type varchar

private - int + int|null $package_unit_weight = null @@ -1475,8 +1505,8 @@ Field Type varchar

Required

- - + +

$phone +

@@ -1503,7 +1534,7 @@ Field Type varchar

private - string + string|null $phone = null @@ -1514,8 +1545,8 @@ Max length 255 Field Type varchar

- - + +

$postcode +

@@ -1542,7 +1574,7 @@ Field Type varchar

private - string + string|null $postcode = null @@ -1553,8 +1585,8 @@ Max length 255 Field Type varchar

- - + +

$state_order +

@@ -1581,7 +1614,7 @@ Field Type varchar

private - int + ArcadiaOrderType|null $state_order = null @@ -1589,8 +1622,8 @@ Field Type varchar

Required

- - + +

$support_code +

@@ -1617,7 +1651,7 @@ Field Type varchar

private - int + int|null $support_code = null @@ -1625,8 +1659,8 @@ Field Type varchar

Required

- - + +
@@ -1635,6 +1669,7 @@ Field Type varchar

Methods +

__construct() + @@ -1657,9 +1693,11 @@ Field Type varchar

public - __construct([array<string|int, mixed> $properties = [] ]) : mixed - + __construct([array<string|int, mixed> $properties = [] ]) : mixed +
+
+
Parameters
@@ -1667,14 +1705,15 @@ Field Type varchar

: array<string|int, mixed> = []
- +
- +
Tags - + +
@@ -1682,18 +1721,14 @@ Field Type varchar

ValidationException - +

If a field could not be validated.

-
- -
Return values
- mixed - — - + +
__get() + @@ -1716,9 +1752,11 @@ Field Type varchar

public - __get(string $field) : mixed - + __get(string $field) : mixed +
+
+
Parameters
@@ -1726,17 +1764,13 @@ Field Type varchar

: string
- +
+ - -
Return values
- mixed - — - - +
__set() + @@ -1759,9 +1794,11 @@ Field Type varchar

public - __set(string $field, mixed $value) : void - + __set(string $field, mixed $value) : void +
+
+
Parameters
@@ -1769,21 +1806,22 @@ Field Type varchar

: string
- +
$value : mixed
- +
- +
Tags - + +
@@ -1791,7 +1829,7 @@ Field Type varchar

TypeError - +

If the field has an incorrect value.

@@ -1801,18 +1839,14 @@ Field Type varchar

AccessError - +

If trying to set a value on a unknown property.

-
- -
Return values
- void - — - + +
fill() + @@ -1836,9 +1871,11 @@ using validation rules

public - fill(array<string|int, mixed> $properties) : void - + fill(array<string|int, mixed> $properties) : void +
+
+
Parameters
@@ -1846,14 +1883,15 @@ using validation rules

: array<string|int, mixed>
- +
- +
Tags - + +
@@ -1861,18 +1899,14 @@ using validation rules

ValidationException - +

If a field could not be validated.

-
- -
Return values
- void - — - + +
jsonSerialize() + @@ -1895,16 +1930,18 @@ using validation rules

public - jsonSerialize() : array<string|int, mixed> - - - + jsonSerialize() : array<string|int, mixed> +
+
+ + + +
Return values
- array<string|int, mixed> - — - + array<string|int, mixed> +

send() +

@@ -1928,14 +1966,17 @@ using validation rules

public - send() : bool - - - + send() : bool +
+
+ + +
Tags - + +
@@ -1943,7 +1984,7 @@ using validation rules

ValidationException - +

If a field could not be validated.

@@ -1953,7 +1994,7 @@ using validation rules

CrmException - +

If an error occurs on server side or on getting response.

@@ -1963,20 +2004,22 @@ using validation rules

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - validationFailed, If provided data is wrong(CRM side).

-
+ +
Return values
- bool - — -

true if succeeded

+ bool + — +

true if succeeded

+

validateAllValues() +

@@ -2000,9 +2044,11 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

protected - validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> - + validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> +
+
+
Parameters
@@ -2010,14 +2056,15 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

: array<string|int, mixed> = []
- +
- +
Tags - + +
@@ -2025,87 +2072,189 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

ValidationException - +

If a field could not be validated.

-
+ +
Return values
- array<string|int, mixed> - — -

the validated values

+ array<string|int, mixed> + — +

the validated values

+
+
+
+
+
+

+        
+ +
+
-
+
+
+ +
+ On this page + + +
+ +
+ +

Search results

@@ -2116,7 +2265,6 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

- diff --git a/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html b/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html index 6503055..6f5bd2f 100644 --- a/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html +++ b/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html @@ -2,14 +2,15 @@ - CRM V4 + CRM V4 + - + @@ -18,6 +19,7 @@ + @@ -51,52 +53,54 @@ - - + public - string + string|null $address

The account address (street number, name, build, flat number)

-
- - + +

$address2 +

@@ -506,19 +525,18 @@ using validation rules - + public - string + string|null $address2

The account phone (address complement)

-
- - + +

$city +

@@ -541,19 +560,18 @@ using validation rules - + public - string + string|null $city

The account city name

-
- - + +

$code_on_pack +

@@ -576,19 +595,18 @@ using validation rules - + public - string + string|null $code_on_pack

The arcadia code on pack

-
- - + +

$code_unique +

@@ -611,19 +630,18 @@ using validation rules - + public - string + string|null $code_unique

The arcadia code unique

-
- - + +

$email +

@@ -646,19 +665,18 @@ using validation rules - + public - string + string|null $email

Must be a rfc valid email on a valid domain name

-
- - + +

$firstname +

@@ -681,19 +700,18 @@ using validation rules - + public - string + string|null $firstname

The account first name

-
- - + +

$label_type_support +

@@ -716,19 +735,18 @@ using validation rules - + public - string + string|null $label_type_support

The arcadia type support label

-
- - + +

$lastname +

@@ -751,19 +770,18 @@ using validation rules - + public - string + string|null $lastname

The account last name

-
- - + +

$operation +

@@ -786,7 +805,7 @@ using validation rules - + public int @@ -798,9 +817,8 @@ Validate: int Required

-
- - + +

$order_date +

@@ -823,19 +842,18 @@ Required

- + public - string + string|null $order_date

The arcadia order date 'yyyy-mm-dd HH:ii:ss'

-
- - + +

$phone +

@@ -858,19 +877,18 @@ Required

- + public - string + string|null $phone

The account phone

-
- - + +

$postcode +

@@ -893,19 +912,18 @@ Required

- + public - string + string|null $postcode

The account city postcode

-
- - + +

$support_code +

@@ -928,19 +947,18 @@ Required

- + public - int + int|null $support_code

The arcadia support code

-
- - + +

$modelFields +

@@ -971,9 +990,9 @@ Required

$modelFields = ['email', 'firstname', 'lastname', 'phone', 'address', 'address2', 'city', 'postcode', 'operation', 'support_code', 'label_type_support', 'order_date', 'code_unique', 'code_on_pack']
- - - + + +

$validation +

@@ -1004,9 +1024,9 @@ Required

$validation = ['email' => 'required|email', 'firstname' => 'required|string|min:2|max:255', 'lastname' => 'required|string|min:2|max:255', 'phone' => 'sometimes|string|min:10|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|max:255', 'postcode' => 'sometimes|string|max:255', 'operation' => 'required|int', 'support_code' => 'required|int', 'label_type_support' => 'required|string|min:2|max:255', 'order_date' => 'required|date_format:Y/m/d H:i:s', 'code_unique' => 'required|string', 'code_on_pack' => 'sometimes|string'] - - - + + +

$address +

@@ -1033,7 +1054,7 @@ Required

private - string + string|null $address = null @@ -1043,8 +1064,8 @@ Max length 255 Field Type varchar

- - + +

$address2 +

@@ -1071,7 +1093,7 @@ Field Type varchar

private - string + string|null $address2 = null @@ -1081,8 +1103,8 @@ Max length 255 Field Type varchar

- - + +

$city +

@@ -1109,7 +1132,7 @@ Field Type varchar

private - string + string|null $city = null @@ -1119,8 +1142,8 @@ Max length 255 Field Type varchar

- - + +

$code_on_pack +

@@ -1147,7 +1171,7 @@ Field Type varchar

private - string + string|null $code_on_pack = null @@ -1155,8 +1179,8 @@ Field Type varchar

Required

- - + +

$code_unique +

@@ -1183,7 +1208,7 @@ Field Type varchar

private - string + string|null $code_unique = null @@ -1191,8 +1216,8 @@ Field Type varchar

Required

- - + +

$email +

@@ -1219,7 +1245,7 @@ Field Type varchar

private - string + string|null $email = null @@ -1230,8 +1256,8 @@ Max length 255 Field Type varchar

- - + +

$firstname +

@@ -1258,7 +1285,7 @@ Field Type varchar

private - string + string|null $firstname = null @@ -1268,8 +1295,8 @@ Max length 255 Field Type varchar

- - + +

$label_type_support +

@@ -1296,7 +1324,7 @@ Field Type varchar

private - string + string|null $label_type_support = null @@ -1304,8 +1332,8 @@ Field Type varchar

Required

- - + +

$lastname +

@@ -1332,7 +1361,7 @@ Field Type varchar

private - string + string|null $lastname = null @@ -1342,8 +1371,8 @@ Max length 255 Field Type varchar

- - + +

$operation +

@@ -1370,7 +1400,7 @@ Field Type varchar

private - int + int|null $operation = null @@ -1378,8 +1408,8 @@ Field Type varchar

Required

- - + +

$order_date +

@@ -1406,7 +1437,7 @@ Field Type varchar

private - string + string|null $order_date = null @@ -1414,8 +1445,8 @@ Field Type varchar

Required

- - + +

$phone +

@@ -1442,7 +1474,7 @@ Field Type varchar

private - string + string|null $phone = null @@ -1453,8 +1485,8 @@ Max length 255 Field Type varchar

- - + +

$postcode +

@@ -1481,7 +1514,7 @@ Field Type varchar

private - string + string|null $postcode = null @@ -1492,8 +1525,8 @@ Max length 255 Field Type varchar

- - + +

$support_code +

@@ -1520,7 +1554,7 @@ Field Type varchar

private - int + int|null $support_code = null @@ -1528,8 +1562,8 @@ Field Type varchar

Required

- - + +
@@ -1538,6 +1572,7 @@ Field Type varchar

Methods +

__construct() + @@ -1560,9 +1596,11 @@ Field Type varchar

public - __construct([array<string|int, mixed> $properties = [] ]) : mixed - + __construct([array<string|int, mixed> $properties = [] ]) : mixed +
+
+
Parameters
@@ -1570,14 +1608,15 @@ Field Type varchar

: array<string|int, mixed> = []
- +
- +
Tags - + +
@@ -1585,18 +1624,14 @@ Field Type varchar

ValidationException - +

If a field could not be validated.

-
- -
Return values
- mixed - — - + +
__set() + @@ -1619,9 +1655,11 @@ Field Type varchar

public - __set(string $field, mixed $value) : void - + __set(string $field, mixed $value) : void +
+
+
Parameters
@@ -1629,21 +1667,22 @@ Field Type varchar

: string
- +
$value : mixed
- +
- +
Tags - + +
@@ -1651,7 +1690,7 @@ Field Type varchar

TypeError - +

If the field has an incorrect value.

@@ -1661,18 +1700,14 @@ Field Type varchar

AccessError - +

If trying to set a value on a unknown property.

-
- -
Return values
- void - — - + +
fill() + @@ -1696,9 +1732,11 @@ using validation rules

public - fill(array<string|int, mixed> $properties) : void - + fill(array<string|int, mixed> $properties) : void +
+
+
Parameters
@@ -1706,14 +1744,15 @@ using validation rules

: array<string|int, mixed>
- +
- +
Tags - + +
@@ -1721,18 +1760,14 @@ using validation rules

ValidationException - +

If a field could not be validated.

-
- -
Return values
- void - — - + +
jsonSerialize() + @@ -1755,16 +1791,18 @@ using validation rules

public - jsonSerialize() : array<string|int, mixed> - - - + jsonSerialize() : array<string|int, mixed> +
+
+ + + +
Return values
- array<string|int, mixed> - — - + array<string|int, mixed> +

send() +

@@ -1788,14 +1827,17 @@ using validation rules

public - send() : bool - - - + send() : bool +
+
+ + +
Tags - + +
@@ -1803,7 +1845,7 @@ using validation rules

CrmException - +

If an error occurs on server side or on getting response.

@@ -1813,88 +1855,186 @@ using validation rules

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - validationFailed, If provided data is wrong(CRM side).

-
+ +
Return values
- bool - — -

true if succeeded

+ bool + — +

true if succeeded

+
+
+
+
+
+

+        
+ +
+
-
+
+
+ +
+ On this page + + +
+ +
+ +

Search results

@@ -1905,7 +2045,6 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

- diff --git a/docs/client-api/classes/LDC-LDCCRM-Models-Customer.html b/docs/client-api/classes/LDC-LDCCRM-Models-Customer.html index 8d8a5ca..23605ae 100644 --- a/docs/client-api/classes/LDC-LDCCRM-Models-Customer.html +++ b/docs/client-api/classes/LDC-LDCCRM-Models-Customer.html @@ -2,14 +2,15 @@ - CRM V4 + CRM V4 + - + @@ -18,6 +19,7 @@ + @@ -51,52 +53,54 @@ - - + public - string + string|null $address2

The account phone (address complement)

-
- - + +

$birth_date +

@@ -653,19 +671,18 @@ This is an alias of Customer::find() - + public - string + string|null $birth_date

The account birth date 'yyyy-mm-dd'

-
- - + +

$city +

@@ -688,19 +706,18 @@ This is an alias of Customer::find() - + public - string + string|null $city

The account city name

-
- - + +

$country +

@@ -723,7 +741,7 @@ This is an alias of Customer::find() - + public Country @@ -733,9 +751,8 @@ This is an alias of Customer::find()

The account country residence

-
- - + +

$email +

@@ -758,19 +776,18 @@ This is an alias of Customer::find() - + public - string + string|null $email

Must be a rfc valid email on a valid domain name

-
- - + +

$firstname +

@@ -793,19 +811,18 @@ This is an alias of Customer::find() - + public - string + string|null $firstname

The account first name

-
- - + +

$hashcode +

@@ -828,19 +846,18 @@ This is an alias of Customer::find() - + public - string + string|null $hashcode

The crm hashcode this is a readonly field

-
- - + +

$last_connection +

@@ -863,19 +881,18 @@ This is an alias of Customer::find() - + public - string + string|null $last_connection

the last time user was connected 'yyyy-mm-dd HH:ii:ss'

-
- - + +

$lastname +

@@ -898,19 +916,18 @@ This is an alias of Customer::find() - + public - string + string|null $lastname

The account last name

-
- - + +

$opt_in +

@@ -933,7 +951,7 @@ This is an alias of Customer::find() - + public bool @@ -943,9 +961,8 @@ This is an alias of Customer::find()

true if the account is opt in

-
- - + +

$password +

@@ -968,10 +986,10 @@ This is an alias of Customer::find() - + public - string + string|null $password @@ -980,9 +998,8 @@ at least 1 number, at leat 1 upper char, at least 1 lower char and at leat 1 special char

-
- - + +

$phone +

@@ -1005,19 +1023,18 @@ at leat 1 special char

- + public - string + string|null $phone

The account phone

-
- - + +

$postcode +

@@ -1040,19 +1058,18 @@ at leat 1 special char

- + public - string + string|null $postcode

The account city postcode

-
- - + +

$status +

@@ -1075,7 +1093,7 @@ at leat 1 special char

- + public bool @@ -1085,9 +1103,8 @@ at leat 1 special char

true if the account is activated

-
- - + +

$invisibleFields +

@@ -1119,9 +1137,9 @@ the should not be visible

$invisibleFields = ['password']
- - - + + +

$modelFields +

@@ -1152,9 +1171,9 @@ the should not be visible

$modelFields = ['hashcode', 'email', 'firstname', 'password', 'lastname', 'birth_date', 'phone', 'address', 'address2', 'city', 'postcode', 'country', 'opt_in', 'status', 'last_connection']
- - - + + +

$validation +

@@ -1185,9 +1205,9 @@ the should not be visible

$validation = ['hashcode' => 'required|uuid', 'email' => 'required|email', 'firstname' => 'required|string|min:1|max:255', 'lastname' => 'required|string|min:1|max:255', 'password' => 'required|min:8|max:255|mixedCase|containDigit|containSymbol', 'birth_date' => 'required|date_format:Y-m-d', 'phone' => 'sometimes|nullable|string|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|min:2|max:255', 'postcode' => 'sometimes|string|max:255', 'country' => ['sometimes'], 'opt_in' => 'required|bool', 'status' => 'required|bool', 'last_connection' => 'sometimes|date']
- - - + + +

$address +

@@ -1214,7 +1235,7 @@ the should not be visible

private - string + string|null $address = null @@ -1224,8 +1245,8 @@ Max length 255 Field Type varchar

- - + +

$address2 +

@@ -1252,7 +1274,7 @@ Field Type varchar

private - string + string|null $address2 = null @@ -1262,8 +1284,8 @@ Max length 255 Field Type varchar

- - + +

$birth_date +

@@ -1290,7 +1313,7 @@ Field Type varchar

private - string + string|null $birth_date = null @@ -1299,8 +1322,8 @@ Field Type varchar

Field Type Date

- - + +

$city +

@@ -1327,7 +1351,7 @@ Field Type Date

private - string + string|null $city = null @@ -1337,8 +1361,8 @@ Max length 255 Field Type varchar

- - + +

$country +

@@ -1374,8 +1399,8 @@ Field Type varchar

Field Type tinyInt

- - + +

$email +

@@ -1402,7 +1428,7 @@ Field Type tinyInt

private - string + string|null $email = null @@ -1413,8 +1439,8 @@ Max length 255 Field Type varchar

- - + +

$firstname +

@@ -1441,7 +1468,7 @@ Field Type varchar

private - string + string|null $firstname = null @@ -1451,8 +1478,8 @@ Max length 255 Field Type varchar

- - + +

$hashcode +

@@ -1480,9 +1508,9 @@ It is used to identify the customer itself.

private - string + string|null $hashcode - + = null

Validate: UUID, in customer_infos

Required @@ -1491,8 +1519,8 @@ Max length 36 Field Type varchar

- - + +

$last_connection +

@@ -1519,15 +1548,15 @@ Field Type varchar

private - string + string|null $last_connection = null

This field is read only

- - + +

$lastname +

@@ -1554,7 +1584,7 @@ Field Type varchar

private - string + string|null $lastname = null @@ -1564,8 +1594,8 @@ Max length 255 Field Type varchar

- - + +

$opt_in +

@@ -1601,8 +1632,8 @@ Field Type varchar

Field Type TinyInt

- - + +

$password +

@@ -1631,7 +1663,7 @@ Otherwise it has to be set to null

private - string + string|null $password = null @@ -1641,8 +1673,8 @@ Max length 255 Field Type varchar

- - + +

$phone +

@@ -1669,7 +1702,7 @@ Field Type varchar

private - string + string|null $phone = null @@ -1680,8 +1713,8 @@ Max length 255 Field Type varchar

- - + +

$postcode +

@@ -1708,7 +1742,7 @@ Field Type varchar

private - string + string|null $postcode = null @@ -1719,8 +1753,8 @@ Max length 255 Field Type varchar

- - + +

$status +

@@ -1754,8 +1789,8 @@ Field Type varchar

This field is read only

- - + +
@@ -1764,6 +1799,7 @@ Field Type varchar

Methods +

__construct() + @@ -1786,9 +1823,11 @@ Field Type varchar

public - __construct([array<string|int, mixed> $properties = [] ]) : mixed - + __construct([array<string|int, mixed> $properties = [] ]) : mixed +
+
+
Parameters
@@ -1796,14 +1835,15 @@ Field Type varchar

: array<string|int, mixed> = []
- +
- +
Tags - + +
@@ -1811,18 +1851,14 @@ Field Type varchar

ValidationException - +

If a field could not be validated.

-
- -
Return values
- mixed - — - + +
__get() + @@ -1845,9 +1882,11 @@ Field Type varchar

public - __get(string $field) : mixed|null - + __get(string $field) : mixed|null +
+
+
Parameters
@@ -1855,18 +1894,20 @@ Field Type varchar

: string
- +
+ - +
Return values
- mixed|null - — -

Returns null if the property was not found any way.

+ mixed|null + — +

Returns null if the property was not found any way.

+

__set() +

@@ -1890,9 +1932,11 @@ Field Type varchar

public - __set(string $field, mixed $value) : void - + __set(string $field, mixed $value) : void +
+
+
Parameters
@@ -1900,21 +1944,22 @@ Field Type varchar

: string
- +
$value : mixed
- +
- +
Tags - + +
@@ -1922,7 +1967,7 @@ Field Type varchar

ValidationException - +

If a field could not be validated.

@@ -1932,18 +1977,14 @@ Field Type varchar

AccessError - +

If trying to set a value on a unknown property.

-
- -
Return values
- void - — - + +
activate() + @@ -1966,14 +2008,17 @@ Field Type varchar

public - activate() : bool - - - + activate() : bool +
+
+ + +
Tags - + +
@@ -1981,7 +2026,7 @@ Field Type varchar

ValidationException - +

If a customer's hashcode could not be validated.

@@ -1991,7 +2036,7 @@ Field Type varchar

CrmException - +

If an error occurs on server side or on getting response.

@@ -2001,7 +2046,7 @@ Field Type varchar

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - modelNotFound, If this customer hashcode could not be found. - customerAlreadyActive, It the customer is already activated.

@@ -2012,19 +2057,21 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found. phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- bool - — -

true if succeeded

+ bool + — +

true if succeeded

+
delete() + @@ -2048,14 +2096,17 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found. public - delete() : bool - - - + delete() : bool +
+
+ + +
Tags - + +
@@ -2063,7 +2114,7 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
ValidationException - +

If a field could not be validated.

@@ -2073,7 +2124,7 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
CrmException - +

If an error occurs on server side or on getting response.

@@ -2083,7 +2134,7 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - modelNotFound, If this customer hashcode could not be found.

@@ -2093,19 +2144,21 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- bool - — -

true if succeeded

+ bool + — +

true if succeeded

+
fill() + @@ -2129,9 +2183,11 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found. public - fill(array<string|int, mixed> $properties) : void - + fill(array<string|int, mixed> $properties) : void +
+
+
Parameters
@@ -2139,14 +2195,15 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.array<string|int, mixed>
- +
- +
Tags - + +
@@ -2154,18 +2211,14 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
ValidationException - +

If a field could not be validated.

-
- -
Return values
- void - — - + +
find() + @@ -2188,9 +2242,11 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found. public - static find(string $hashcode) : self|null - + static find(string $hashcode) : self|null +
+
+
Parameters
@@ -2198,14 +2254,15 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.string
- +
- +
Tags - + +
@@ -2213,7 +2270,7 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
CrmException - +

If an error occurs on server side or on getting response.

@@ -2223,7 +2280,7 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs.

@@ -2232,19 +2289,21 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- self|null - — -

Return null if the customer was not found

+ self|null + — +

Return null if the customer was not found

+
findWithEmail() + @@ -2269,9 +2329,11 @@ This is an alias of Customer::find()

public - static findWithEmail(string $email) : self|null - + static findWithEmail(string $email) : self|null +
+
+
Parameters
@@ -2279,14 +2341,15 @@ This is an alias of Customer::find()

: string
- +
- +
Tags - + +
@@ -2294,7 +2357,7 @@ This is an alias of Customer::find()

CrmException - +

If an error occurs on server side or on getting response.

@@ -2304,7 +2367,7 @@ This is an alias of Customer::find()

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs.

@@ -2313,17 +2376,17 @@ This is an alias of Customer::find()

phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- self|null - — - + self|null +

jsonSerialize() +

@@ -2347,16 +2411,18 @@ This is an alias of Customer::find()

public - jsonSerialize() : array<string|int, mixed> - - - + jsonSerialize() : array<string|int, mixed> +
+
+ + + +
Return values
- array<string|int, mixed> - — - + array<string|int, mixed> +

login() +

@@ -2380,9 +2447,11 @@ This is an alias of Customer::find()

public - static login(string $email, string $password) : bool - + static login(string $email, string $password) : bool +
+
+
Parameters
@@ -2390,21 +2459,22 @@ This is an alias of Customer::find()

: string
- +
$password : string
- +
- +
Tags - + +
@@ -2412,7 +2482,7 @@ This is an alias of Customer::find()

ValidationException - +

If a customer's email could not be validated.

@@ -2422,7 +2492,7 @@ This is an alias of Customer::find()

CrmException - +

If an error occurs on server side or on getting response.

@@ -2432,7 +2502,7 @@ This is an alias of Customer::find()

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - authFailed, If credentials are not valid. - customerNotActivated, If the account is not activated.

@@ -2443,17 +2513,17 @@ Possibles are : - authFailed, If credentials are not valid. phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- bool - — - + bool +
save() + @@ -2477,14 +2548,17 @@ Possibles are : - authFailed, If credentials are not valid. public - save() : bool - - - + save() : bool +
+
+ + +
Tags - + +
@@ -2492,7 +2566,7 @@ Possibles are : - authFailed, If credentials are not valid.
ValidationException - +

If a field could not be validated.

@@ -2502,7 +2576,7 @@ Possibles are : - authFailed, If credentials are not valid.
CrmException - +

If an error occurs on server side or on getting response.

@@ -2512,7 +2586,7 @@ Possibles are : - authFailed, If credentials are not valid.
ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - validationFailed, If provided data is wrong(CRM side). - modelNotFound, If this customer hashcode could not be found (new customers only).

@@ -2523,19 +2597,21 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side). phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- bool - — -

True if save was successfull.

+ bool + — +

True if save was successfull.

+
toggleOptin() + @@ -2559,14 +2636,17 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side). public - toggleOptin() : bool - - - + toggleOptin() : bool +
+
+ + +
Tags - + +
@@ -2574,7 +2654,7 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).
ValidationException - +

If a field could not be validated.

@@ -2584,7 +2664,7 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).
CrmException - +

If an error occurs on server side or on getting response.

@@ -2594,7 +2674,7 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).
ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - modelNotFound, If this customer hashcode could not be found.

@@ -2604,19 +2684,21 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- bool - — -

true if succeeded

+ bool + — +

true if succeeded

+
validateAllValues() + @@ -2640,9 +2723,11 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found. protected - validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> - + validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> +
+
+
Parameters
@@ -2650,14 +2735,15 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.array<string|int, mixed> = []
- +
- +
Tags - + +
@@ -2665,19 +2751,21 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
ValidationException - +

If a field could not be validated.

-
+ +
Return values
- array<string|int, mixed> - — -

the validated values

+ array<string|int, mixed> + — +

the validated values

+
store() + @@ -2701,14 +2790,17 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found. private - store() : bool - - - + store() : bool +
+
+ + +
Tags - + +
@@ -2716,7 +2808,7 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
ValidationException - +

If a field could not be validated.

@@ -2726,7 +2818,7 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
CrmException - +

If an error occurs on server side or on getting response.

@@ -2736,7 +2828,7 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - validationFailed, If provided data is wrong(CRM side).

@@ -2746,19 +2838,21 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- bool - — -

True if save was successfull.

+ bool + — +

True if save was successfull.

+

update() +

@@ -2782,14 +2877,17 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

private - update() : bool - - - + update() : bool +
+
+ + +
Tags - + +
@@ -2797,7 +2895,7 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

ValidationException - +

If a field could not be validated.

@@ -2807,7 +2905,7 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

CrmException - +

If an error occurs on server side or on getting response.

@@ -2817,7 +2915,7 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - validationFailed, If provided data is wrong(CRM side). - modelNotFound, If this customer hashcode could not be found.

@@ -2828,87 +2926,198 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side). phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- bool - — -

True if save was successfull.

+ bool + — +

True if save was successfull.

+
+
+
+
+
+

+        
+ +
+
-
+
+
+ +
+ On this page + + +
+ +
+ +

Search results

@@ -2919,7 +3128,6 @@ Possibles are : - validationFailed, If provided data is wrong(CRM side).
- diff --git a/docs/client-api/classes/LDC-LDCCRM-Models-Question.html b/docs/client-api/classes/LDC-LDCCRM-Models-Question.html index 7cdf968..bf6157a 100644 --- a/docs/client-api/classes/LDC-LDCCRM-Models-Question.html +++ b/docs/client-api/classes/LDC-LDCCRM-Models-Question.html @@ -2,14 +2,15 @@ - CRM V4 + CRM V4 + - + @@ -18,6 +19,7 @@ + @@ -51,52 +53,54 @@ - - + public array<string|int, Answer> @@ -368,9 +397,8 @@ It has some static methods to retrieve questions and answers

An array with answers

-
- - + +

$id +

@@ -393,7 +422,7 @@ It has some static methods to retrieve questions and answers

- + public string @@ -403,9 +432,8 @@ It has some static methods to retrieve questions and answers

The question id

-
- - + +

$question +

@@ -428,19 +457,18 @@ It has some static methods to retrieve questions and answers

- + public - string + string|null $question

The actual question as a string

-
- - + +

$type +

@@ -463,10 +492,10 @@ It has some static methods to retrieve questions and answers

- + public - QuestionType + QuestionType|null $type @@ -475,9 +504,8 @@ it also hints wether it can accept one or multiple responses, so only checkbox allows multiple responses

-
- - + +

$modelFields +

@@ -508,9 +537,9 @@ so only checkbox allows multiple responses

$modelFields = ['id', 'question', 'type', 'answers']
- - - + + +

$validation +

@@ -541,9 +571,9 @@ so only checkbox allows multiple responses

$validation = ['id' => 'required|int', 'question' => 'required|string|max:255', 'type' => ['required'], 'answers' => 'required|array']
- - - + + +

$answers +

@@ -577,8 +608,8 @@ so only checkbox allows multiple responses

\LDC\LDCCRM\Models\Answer

- - + +

$id +

@@ -613,8 +645,8 @@ so only checkbox allows multiple responses

Field Type bigInt

- - + +

$question +

@@ -641,7 +674,7 @@ Field Type bigInt

private - string + string|null $question = null @@ -650,8 +683,8 @@ Max length 255 Field Type varchar

- - + +

$type +

@@ -678,7 +712,7 @@ Field Type varchar

private - QuestionType + QuestionType|null $type = null @@ -687,8 +721,8 @@ Field Type varchar

Field Type tinyInteger

- - + +
@@ -697,6 +731,7 @@ Field Type tinyInteger

Methods +

__construct() + @@ -719,9 +755,11 @@ Field Type tinyInteger

public - __construct([array<string|int, mixed> $properties = [] ]) : mixed - + __construct([array<string|int, mixed> $properties = [] ]) : mixed +
+
+
Parameters
@@ -729,14 +767,15 @@ Field Type tinyInteger

: array<string|int, mixed> = []
- +
- +
Tags - + +
@@ -744,18 +783,14 @@ Field Type tinyInteger

ValidationException - +

If a field could not be validated.

-
- -
Return values
- mixed - — - + +
__get() + @@ -778,9 +814,11 @@ Field Type tinyInteger

public - __get(string $field) : mixed - + __get(string $field) : mixed +
+
+
Parameters
@@ -788,17 +826,13 @@ Field Type tinyInteger

: string
- +
+ - -
Return values
- mixed - — - - +
__set() + @@ -821,9 +856,11 @@ Field Type tinyInteger

public - __set(string $field, mixed $value) : void - + __set(string $field, mixed $value) : void +
+
+
Parameters
@@ -831,21 +868,22 @@ Field Type tinyInteger

: string
- +
$value : mixed
- +
- +
Tags - + +
@@ -853,7 +891,7 @@ Field Type tinyInteger

ValidationException - +

If a field could not be validated.

@@ -863,18 +901,14 @@ Field Type tinyInteger

AccessError - +

If trying to set a value on a unknown property.

-
- -
Return values
- void - — - + +
all() + @@ -897,14 +932,17 @@ Field Type tinyInteger

public - static all() : array<string|int, mixed> - - - + static all() : array<string|int, mixed> +
+
+ + +
Tags - + +
@@ -912,7 +950,7 @@ Field Type tinyInteger

CrmException - +

If an error occurs on server side or on getting response.

@@ -922,7 +960,7 @@ Field Type tinyInteger

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs.

@@ -931,19 +969,21 @@ Field Type tinyInteger

phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- array<string|int, mixed> - — -

of \LDC\LDCCRM\Models\Question

+ array<string|int, mixed> + — +

of \LDC\LDCCRM\Models\Question

+

allWithCustomerAnswers() +

@@ -967,9 +1008,11 @@ Field Type tinyInteger

public - static allWithCustomerAnswers(Customer $customer) : array<string|int, mixed> - + static allWithCustomerAnswers(Customer $customer) : array<string|int, mixed> +
+
+
Parameters
@@ -977,14 +1020,15 @@ Field Type tinyInteger

: Customer
- +
- +
Tags - + +
@@ -992,7 +1036,7 @@ Field Type tinyInteger

ValidationException - +

If a customer's hashcode could not be validated.

@@ -1002,7 +1046,7 @@ Field Type tinyInteger

CrmException - +

If an error occurs on server side or on getting response.

@@ -1012,7 +1056,7 @@ Field Type tinyInteger

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - modelNotFound, If the customer could not be found(CRM side).

@@ -1022,17 +1066,18 @@ Possibles are : - modelNotFound, If the customer could not be found(CRM side).phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- array<string|int, mixed> - — -

[ + array<string|int, mixed> + — +

[ 0 => [ 'question' => \LDC\LDCCRM\Models\Question, 'customerAnswers' => \LDC\LDCCRM\Models\Answer[] @@ -1042,6 +1087,7 @@ Possibles are : - modelNotFound, If the customer could not be found(CRM side).

+

fill() +

@@ -1065,9 +1112,11 @@ and the customer \LDC\LDCCRM\Models\Answer[]

public - fill(array<string|int, mixed> $properties) : void - + fill(array<string|int, mixed> $properties) : void +
+
+
Parameters
@@ -1075,14 +1124,15 @@ and the customer \LDC\LDCCRM\Models\Answer[]

: array<string|int, mixed>
- +
- +
Tags - + +
@@ -1090,18 +1140,14 @@ and the customer \LDC\LDCCRM\Models\Answer[]

ValidationException - +

If a field could not be validated.

-
- -
Return values
- void - — - + +
jsonSerialize() + @@ -1124,16 +1171,18 @@ and the customer \LDC\LDCCRM\Models\Answer[]

public - jsonSerialize() : array<string|int, mixed> - - - + jsonSerialize() : array<string|int, mixed> +
+
+ + + +
Return values
- array<string|int, mixed> - — - + array<string|int, mixed> +

unansweredBy() +

@@ -1157,9 +1207,11 @@ and the customer \LDC\LDCCRM\Models\Answer[]

public - static unansweredBy(Customer $customer) : array<string|int, mixed> - + static unansweredBy(Customer $customer) : array<string|int, mixed> +
+
+
Parameters
@@ -1167,14 +1219,15 @@ and the customer \LDC\LDCCRM\Models\Answer[]

: Customer
- +
- +
Tags - + +
@@ -1182,7 +1235,7 @@ and the customer \LDC\LDCCRM\Models\Answer[]

ValidationException - +

If a customer's hashcode could not be validated.

@@ -1192,7 +1245,7 @@ and the customer \LDC\LDCCRM\Models\Answer[]

CrmException - +

If an error occurs on server side or on getting response.

@@ -1202,7 +1255,7 @@ and the customer \LDC\LDCCRM\Models\Answer[]

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - modelNotFound, If the customer could not be found(CRM side).

@@ -1212,19 +1265,21 @@ Possibles are : - modelNotFound, If the customer could not be found(CRM side).phpcs:ignore
- +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

-
+ +
Return values
- array<string|int, mixed> - — -

of \LDC\LDCCRM\Models\Question

+ array<string|int, mixed> + — +

of \LDC\LDCCRM\Models\Question

+
validateAllValues() + @@ -1248,9 +1304,11 @@ Possibles are : - modelNotFound, If the customer could not be found(CRM side). protected - validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> - + validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> +
+
+
Parameters
@@ -1258,14 +1316,15 @@ Possibles are : - modelNotFound, If the customer could not be found(CRM side).array<string|int, mixed> = []
- +
- +
Tags - + +
@@ -1273,87 +1332,169 @@ Possibles are : - modelNotFound, If the customer could not be found(CRM side).
ValidationException - +

If a field could not be validated.

-
+ +
Return values
- array<string|int, mixed> - — -

the validated values

+ array<string|int, mixed> + — +

the validated values

+
+
+
+
+
+

+        
+ +
+
-
+
+
+ +
+ On this page + + +
+ +
+ +

Search results

@@ -1364,7 +1505,6 @@ Possibles are : - modelNotFound, If the customer could not be found(CRM side).
- diff --git a/docs/client-api/classes/LDC-LDCCRM-Models-SingleOptin.html b/docs/client-api/classes/LDC-LDCCRM-Models-SingleOptin.html index ee79a96..ec64b3e 100644 --- a/docs/client-api/classes/LDC-LDCCRM-Models-SingleOptin.html +++ b/docs/client-api/classes/LDC-LDCCRM-Models-SingleOptin.html @@ -2,14 +2,15 @@ - CRM V4 + CRM V4 + - + @@ -18,6 +19,7 @@ + @@ -51,52 +53,54 @@ - - + public - HttpMethods + HttpMethods $method

readonly method

-
- - + +

$uri +

@@ -435,7 +472,7 @@ Contains the http method, the requested url and data to pass

- + public string @@ -445,9 +482,8 @@ Contains the http method, the requested url and data to pass

readonly uri

-
- - + +

$data +

@@ -478,9 +515,9 @@ Contains the http method, the requested url and data to pass

$data = []
- - - + + +

$headers +

@@ -511,9 +549,9 @@ Contains the http method, the requested url and data to pass

$headers = []
- - - + + +

$method +

@@ -540,13 +579,13 @@ Contains the http method, the requested url and data to pass

protected - HttpMethods + HttpMethods $method - - - + + +

$uri +

@@ -577,9 +617,9 @@ Contains the http method, the requested url and data to pass

$uri
- - - + + +

$client +

@@ -610,9 +651,9 @@ Contains the http method, the requested url and data to pass

$client - - - + + +

$endpoint +

@@ -643,9 +685,9 @@ Contains the http method, the requested url and data to pass

$endpoint - - - + + +

$request +

@@ -676,11 +719,11 @@ Contains the http method, the requested url and data to pass

$request - +

the returns \GuzzleHttp\Psr7\Request

- +
@@ -689,6 +732,7 @@ Contains the http method, the requested url and data to pass

Methods +

__construct() + @@ -711,48 +756,46 @@ Contains the http method, the requested url and data to pass

public - __construct(HttpMethods $method, string $uri[, array<string|int, mixed> $headers = [] ][, array<string|int, mixed> $data = [] ]) : mixed - + __construct(HttpMethods $method, string $uri[, array<string|int, mixed> $headers = [] ][, array<string|int, mixed> $data = [] ]) : mixed +
+
+
Parameters
$method - : HttpMethods + : HttpMethods
- +
$uri : string
- +
$headers : array<string|int, mixed> = []
- +
$data : array<string|int, mixed> = []
- +
+ - -
Return values
- mixed - — - - +
__get() + @@ -775,9 +819,11 @@ Contains the http method, the requested url and data to pass

public - __get(string $field) : mixed|null - + __get(string $field) : mixed|null +
+
+
Parameters
@@ -785,16 +831,16 @@ Contains the http method, the requested url and data to pass

: string
- +
+ - +
Return values
- mixed|null - — - + mixed|null +

addData() +

@@ -818,9 +865,11 @@ Contains the http method, the requested url and data to pass

public - addData(array<string|int, mixed> $data) : void - + addData(array<string|int, mixed> $data) : void +
+
+
Parameters
@@ -828,17 +877,13 @@ Contains the http method, the requested url and data to pass

: array<string|int, mixed>
- +
+ - -
Return values
- void - — - - +
addHeaders() + @@ -861,9 +907,11 @@ Contains the http method, the requested url and data to pass

public - addHeaders(array<string|int, mixed> $headers) : void - + addHeaders(array<string|int, mixed> $headers) : void +
+
+
Parameters
@@ -871,17 +919,13 @@ Contains the http method, the requested url and data to pass

: array<string|int, mixed>
- +
+ - -
Return values
- void - — - - +
call() + @@ -904,16 +949,18 @@ Contains the http method, the requested url and data to pass

public - call() : ResponseInterface - - - + call() : ResponseInterface +
+
+ + + +
Return values
- ResponseInterface - — - + ResponseInterface +

setEndpoint() +

@@ -937,9 +985,11 @@ Contains the http method, the requested url and data to pass

public - setEndpoint(string $endpoint) : void - + setEndpoint(string $endpoint) : void +
+
+
Parameters
@@ -947,17 +997,13 @@ Contains the http method, the requested url and data to pass

: string
- +
+ - -
Return values
- void - — - - +
makeRequest() + @@ -980,84 +1027,161 @@ Contains the http method, the requested url and data to pass

private - makeRequest() : void - - - - - -
Return values
- void - — + makeRequest() : void +
+
+ + + +
+
+
+
+
+

+        
+ +
+
-
+
+
+ +
+ On this page + + +
+ +
+ +

Search results

@@ -1068,7 +1192,6 @@ Contains the http method, the requested url and data to pass

- diff --git a/docs/client-api/classes/LDC-LDCCRM-Transport-Response.html b/docs/client-api/classes/LDC-LDCCRM-Transport-Response.html index 87c9ba3..5ef7c03 100644 --- a/docs/client-api/classes/LDC-LDCCRM-Transport-Response.html +++ b/docs/client-api/classes/LDC-LDCCRM-Transport-Response.html @@ -2,14 +2,15 @@ - CRM V4 + CRM V4 + - + @@ -18,6 +19,7 @@ + @@ -51,52 +53,54 @@ - - + public - ApiError|int + ApiError $apiError

The api error status it there is any

-
- - + +
-public " > -

- $body - +

+ $content + +

@@ -364,19 +397,18 @@ not a valid json - + public array<string|int, mixed> - $body + $content -

The http response body, this is parsed json

+

The http response content, this is parsed json

-
- - + +

$data +

@@ -399,7 +432,7 @@ not a valid json - + public array<string|int, mixed>|null @@ -409,9 +442,8 @@ not a valid json

The reponse data

-
- - + +

$headers +

@@ -434,7 +467,7 @@ not a valid json - + public array<string|int, mixed> @@ -444,9 +477,8 @@ not a valid json

The http reponse headers

-
- - + +

$httpCode +

@@ -469,7 +502,7 @@ not a valid json - + public int @@ -479,9 +512,8 @@ not a valid json

The http response code

-
- - + +

$message +

@@ -504,7 +537,7 @@ not a valid json - + public string @@ -514,9 +547,8 @@ not a valid json

The api message

-
- - + +

$status +

@@ -539,7 +572,7 @@ not a valid json - + public ApiStatus @@ -549,9 +582,8 @@ not a valid json

The response api status

-
- - + +

$apiError +

@@ -582,9 +615,9 @@ not a valid json $apiError
- - - + + +

$body +

@@ -611,13 +645,47 @@ not a valid json private - string + StreamInterface $body + + + +
+
+

+ $content + + + +

+ + +

The response decoded content

+ + + private + array<string|int, mixed> + $content + + + + +

$headers +

@@ -644,13 +713,13 @@ not a valid json private - string + array<string, array<string|int, string>> $headers - - - + + +

$httpCode +

@@ -681,9 +751,9 @@ not a valid json $httpCode = 0
- - - + + +

$message +

@@ -714,9 +785,9 @@ not a valid json $message
- - - + + +

$response +

@@ -747,9 +819,9 @@ not a valid json $response - - - + + +

$status +

@@ -780,9 +853,9 @@ not a valid json $status - - - + + +
@@ -791,6 +864,7 @@ not a valid json

Methods +

__construct() + @@ -813,9 +888,11 @@ not a valid json public - __construct(ApiStatus $status, ResponseInterface $response) : mixed - + __construct(ApiStatus $status, ResponseInterface $response) : mixed +
+
+
Parameters
@@ -823,21 +900,22 @@ not a valid json : ApiStatus
- +
$response : ResponseInterface
- +
- +
Tags - + +
@@ -845,18 +923,14 @@ not a valid json
CrmException - +

If HTTP response body in not JSON.

-
- -
Return values
- mixed - — - + +
__get() + @@ -879,9 +954,11 @@ not a valid json public - __get(string $field) : mixed|null - + __get(string $field) : mixed|null +
+
+
Parameters
@@ -889,16 +966,16 @@ not a valid json : string
- +
+ - +
Return values
- mixed|null - — - + mixed|null +

checkVersion() +

-

This checks if the crm version is way far beyond the client version.

+

This checks if the Flucollector version is way far beyond the client version.

private - checkVersion(string $version) : void + checkVersion(string $version) : void +
+

If a minor version mismatch is detected we will log this as a warning. -If a major version mismatch is detected we will throw a CrmException as +If a major version mismatch is detected we will throw a AppilcationException as there shall be an incompatibility with the response.

The goal here is to force clients to be up to date. A major version change means breaking change.

@@ -938,14 +1018,15 @@ A major version change means breaking change.

: string
- +
- +
Tags - + +
@@ -953,18 +1034,14 @@ A major version change means breaking change.

CrmException - +

If a major version mismatch is detected.

-
- -
Return values
- void - — - + +
tryDecodeJson() + @@ -988,9 +1066,11 @@ not a valid json

private - tryDecodeJson(string $string) : array<string|int, mixed>|false - + tryDecodeJson(string $string) : array<string|int, mixed>|false +
+
+
Parameters
@@ -998,86 +1078,168 @@ not a valid json

: string
- +
+ - +
Return values
- array<string|int, mixed>|false - — -

Returns an associative data array or false if failed to parse.

+ array<string|int, mixed>|false + — +

Returns an associative data array or false if failed to parse.

+
+
+
+
+
+

+        
+ +
+
-
+
+
+ +
+ On this page + + +
+ +
+ +

Search results

@@ -1088,7 +1250,6 @@ not a valid json

- diff --git a/docs/client-api/classes/LDC-LDCCRM-Utils.html b/docs/client-api/classes/LDC-LDCCRM-Utils.html index acba247..4dcafdd 100644 --- a/docs/client-api/classes/LDC-LDCCRM-Utils.html +++ b/docs/client-api/classes/LDC-LDCCRM-Utils.html @@ -2,14 +2,15 @@ - CRM V4 + CRM V4 + - + @@ -18,6 +19,7 @@ + @@ -51,52 +53,54 @@ - - + public Country @@ -615,44 +628,8 @@ on the current user and the crm

— The account country residence

-
- - - - -
-

- $email - - - -

- - - - - public - string - $email - - -

— Must be a rfc valid email on a valid domain name

-
- -
- - + +

$firstname +

@@ -675,7 +653,7 @@ on the current user and the crm - + public string @@ -685,9 +663,8 @@ on the current user and the crm

— The account first name

-
- - + +

$hashcode +

@@ -710,19 +688,18 @@ on the current user and the crm - + public - string + string|null $hashcode

— The crm hashcode this is a readonly field

-
- - + +

$last_connection +

@@ -745,7 +723,7 @@ on the current user and the crm - + public string @@ -755,9 +733,8 @@ on the current user and the crm

the last time user was connected 'yyyy-mm-dd HH:ii:ss'

-
- - + +

$lastname +

@@ -780,7 +758,7 @@ on the current user and the crm - + public string @@ -790,9 +768,8 @@ on the current user and the crm

— The account last name

-
- - + +

$opt_in +

@@ -815,7 +793,7 @@ on the current user and the crm - + public bool @@ -825,9 +803,8 @@ on the current user and the crm

— true if the account is opt in

-
- - + +

$password +

@@ -850,7 +828,7 @@ on the current user and the crm - + public string @@ -865,9 +843,43 @@ at least 1 lower char and at leat 1 special char

-
+ + +
+
+

+ $pemail + + + +

+ + + + + public + string|null + $pemail + + +

— Must be a rfc valid email on a valid domain name

+
+ + +

$phone +

@@ -890,7 +903,7 @@ at leat 1 special char

- + public string @@ -900,9 +913,8 @@ at leat 1 special char

— The account phone

-
- - + +

$postcode +

@@ -925,7 +938,7 @@ at leat 1 special char

- + public string @@ -935,9 +948,8 @@ at leat 1 special char

— The account city postcode

-
- - + +

$status +

@@ -960,7 +973,7 @@ at leat 1 special char

- + public bool @@ -970,9 +983,8 @@ at leat 1 special char

— true if the account is activated

-
- - + +

$uuidToken +

@@ -995,19 +1008,18 @@ at leat 1 special char

- + public - string + string|null $uuidToken

— A local transaction token for this user

-
- - + +

$pemail +

@@ -1067,13 +1081,13 @@ at leat 1 special char

protected - string + string|null $pemail = null - - - + + +

$phashcode +

@@ -1100,13 +1115,13 @@ at leat 1 special char

protected - string + string|null $phashcode = null - - - + + +

$uuidToken +

@@ -1133,15 +1149,15 @@ at leat 1 special char

protected - string + string|null $uuidToken = null - +

UUID

- +
@@ -1150,6 +1166,7 @@ at leat 1 special char

Methods +

__construct() + @@ -1172,9 +1190,11 @@ at leat 1 special char

public - __construct([string $hashcode = null ][, string $email = null ]) : mixed - + __construct([string $hashcode = null ][, string $email = null ]) : mixed
+
+
+
Parameters
@@ -1197,13 +1217,9 @@ at leat 1 special char

+ - -
Return values
- mixed - — - - +
__get() + @@ -1226,9 +1243,11 @@ at leat 1 special char

public - __get(string $prop) : bool|string|Country|null - + __get(string $prop) : bool|string|Country|null
+
+
+
Parameters
@@ -1242,12 +1261,12 @@ at leat 1 special char

+ - +
Return values
- bool|string|Country|null - — - + bool|string|Country|null +

__set() +

@@ -1271,9 +1291,11 @@ at leat 1 special char

public - __set(string $prop, mixed $value) : void - + __set(string $prop, mixed $value) : void +
+
+
Parameters
@@ -1296,13 +1318,9 @@ at leat 1 special char

+ - -
Return values
- void - — - - +
activate() + @@ -1325,14 +1344,17 @@ at leat 1 special char

public - activate() : bool - - - + activate() : bool +
+
+ + +
Tags - + +
@@ -1340,7 +1362,7 @@ at leat 1 special char

ValidationException - +

If a customer's hashcode could not be validated.

@@ -1350,7 +1372,7 @@ at leat 1 special char

CrmException - +

If an error occurs on server side or on getting response.

@@ -1360,21 +1382,23 @@ at leat 1 special char

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - modelNotFound, If this customer hashcode could not be found. - customerAlreadyActive, It the customer is already activated.

-
+ +
Return values
- bool - — -

true if succeeded

+ bool + — +

true if succeeded

+
delete() + @@ -1399,22 +1424,25 @@ the local database and on crm

public - delete() : bool - - - + delete() : bool +
+
+ + +
Tags - + +
throws
- CrmException - + CrmException +

If a critical error occured.

@@ -1424,20 +1452,22 @@ the local database and on crm

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - modelNotFound, If this customer hashcode could not be found.

-
+ +
Return values
- bool - — -

true if the operation succeeded false otherwise

+ bool + — +

true if the operation succeeded false otherwise

+
jsonSerialize() + @@ -1461,16 +1492,18 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found. public - jsonSerialize() : array<string|int, mixed> - - - + jsonSerialize() : array<string|int, mixed> +
+
+ + + +
Return values
- array<string|int, mixed> - — - + array<string|int, mixed> +
parseFromJson() + @@ -1494,9 +1528,11 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found. public - static parseFromJson(string $string) : WPCrmUser - + static parseFromJson(string $string) : WPCrmUser +
+
+
Parameters
@@ -1510,10 +1546,11 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
- +
Tags - + +
@@ -1521,18 +1558,18 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
WpCrmInvalidJsonUserInfo - +

If the json string does no contain the needed information.

-
+ +
Return values
- WPCrmUser - — - + WPCrmUser +

save() +

@@ -1557,22 +1595,25 @@ the local database and on crm

public - save() : bool - - - + save() : bool +
+
+ + +
Tags - + +
throws
- CrmException - + CrmException +

If a critical error occured.

@@ -1582,21 +1623,23 @@ the local database and on crm

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - validationFailed, If provided data is wrong(CRM side). - modelNotFound, If this customer hashcode could not be found.

-
+ +
Return values
- bool - — -

true if the operation succeeded false otherwise

+ bool + — +

true if the operation succeeded false otherwise

+
setInfo() + @@ -1621,9 +1665,11 @@ with api response

public - setInfo(Customer $customer) : void - + setInfo(Customer $customer) : void +
+
+
Parameters
@@ -1637,13 +1683,9 @@ with api response

+ - -
Return values
- void - — - - +
toggleOptin() + @@ -1667,22 +1710,25 @@ on the current user and the crm

public - toggleOptin() : bool - - - + toggleOptin() : bool +
+
+ + +
Tags - + +
throws
- CrmException - + CrmException +

If a critical error occured.

@@ -1692,88 +1738,181 @@ on the current user and the crm

ApiErrorException - +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - modelNotFound, If this customer hashcode could not be found.

-
+ +
Return values
- bool - — -

true if the operation succeeded

+ bool + — +

true if the operation succeeded

+
+
+
+
+
+

+        
+ +
+
-
+
+
+ +
+ On this page + + +
+ +
+ +

Search results

@@ -1784,7 +1923,6 @@ Possibles are : - modelNotFound, If this customer hashcode could not be found.
- diff --git a/docs/client-api/css/base.css b/docs/client-api/css/base.css index db4e807..3482dfb 100644 --- a/docs/client-api/css/base.css +++ b/docs/client-api/css/base.css @@ -1,8 +1,9 @@ + :root { /* Typography */ - --font-primary: 'Source Sans Pro', Helvetica, Arial, sans-serif; - --font-secondary: 'Source Sans Pro', Helvetica, Arial, sans-serif; + --font-primary: 'Open Sans', Helvetica, Arial, sans-serif; + --font-secondary: 'Open Sans', Helvetica, Arial, sans-serif; --font-monospace: 'Source Code Pro', monospace; --line-height--primary: 1.6; --letter-spacing--primary: .05rem; @@ -20,13 +21,34 @@ --text-xxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); --text-xxxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --color-hue-red: 4; + --color-hue-pink: 340; + --color-hue-purple: 291; + --color-hue-deep-purple: 262; + --color-hue-indigo: 231; + --color-hue-blue: 207; + --color-hue-light-blue: 199; + --color-hue-cyan: 187; + --color-hue-teal: 174; + --color-hue-green: 122; + --color-hue-phpdocumentor-green: 96; + --color-hue-light-green: 88; + --color-hue-lime: 66; + --color-hue-yellow: 54; + --color-hue-amber: 45; + --color-hue-orange: 36; + --color-hue-deep-orange: 14; + --color-hue-brown: 16; + /* Colors */ - --primary-color: hsl(96, 57%, 60%); - --primary-color-darken: hsl(96, 57%, 40%); - --primary-color-darker: hsl(96, 57%, 20%); - --primary-color-darkest: hsl(96, 57%, 10%); - --primary-color-lighten: hsl(96, 57%, 80%); - --primary-color-lighter: hsl(96, 57%, 99%); + --primary-color-hue: var(--color-hue-phpdocumentor-green, --color-hue-phpdocumentor-green); + --primary-color-saturation: 57%; + --primary-color: hsl(var(--primary-color-hue), var(--primary-color-saturation), 60%); + --primary-color-darken: hsl(var(--primary-color-hue), var(--primary-color-saturation), 40%); + --primary-color-darker: hsl(var(--primary-color-hue), var(--primary-color-saturation), 25%); + --primary-color-darkest: hsl(var(--primary-color-hue), var(--primary-color-saturation), 10%); + --primary-color-lighten: hsl(var(--primary-color-hue), calc(var(--primary-color-saturation) - 20%), 85%); + --primary-color-lighter: hsl(var(--primary-color-hue), calc(var(--primary-color-saturation) - 45%), 97.5%); --dark-gray: #d1d1d1; --light-gray: #f0f0f0; @@ -34,16 +56,16 @@ --header-height: var(--spacing-xxxxl); --header-bg-color: var(--primary-color); - --code-background-color: #f7faf5; - --code-border-color: #d6e7cb; + --code-background-color: var(--primary-color-lighter); + --code-border-color: --primary-color-lighten; --button-border-color: var(--primary-color-darken); --button-color: transparent; --button-color-primary: var(--primary-color); --button-text-color: #555; --button-text-color-primary: white; --popover-background-color: rgba(255, 255, 255, 0.75); - --link-color-primary: var(--primary-color-darken); - --link-hover-color-primary: var(--primary-color-darker); + --link-color-primary: var(--primary-color-darker); + --link-hover-color-primary: var(--primary-color-darkest); --form-field-border-color: var(--dark-gray); --form-field-color: #fff; --admonition-success-color: var(--primary-color); @@ -82,6 +104,7 @@ body { font-size: var(--text-md); letter-spacing: var(--letter-spacing--primary); line-height: var(--line-height--primary); + width: 100%; } .phpdocumentor h1, @@ -136,7 +159,6 @@ body { margin-bottom: var(--spacing-md); margin-top: var(--spacing-md); } - .phpdocumentor h1 .headerlink, .phpdocumentor h2 .headerlink, .phpdocumentor h3 .headerlink, @@ -144,21 +166,32 @@ body { .phpdocumentor h5 .headerlink, .phpdocumentor h6 .headerlink { - transition: all .3s ease-in-out; - opacity: 0; - text-decoration: none; - color: silver; - font-size: 80%; + display: none; } -.phpdocumentor h1:hover .headerlink, -.phpdocumentor h2:hover .headerlink, -.phpdocumentor h3:hover .headerlink, -.phpdocumentor h4:hover .headerlink, -.phpdocumentor h5:hover .headerlink, -.phpdocumentor h6:hover .headerlink -{ - opacity: 1; +@media (min-width: 550px) { + .phpdocumentor h1 .headerlink, + .phpdocumentor h2 .headerlink, + .phpdocumentor h3 .headerlink, + .phpdocumentor h4 .headerlink, + .phpdocumentor h5 .headerlink, + .phpdocumentor h6 .headerlink { + display: inline; + transition: all .3s ease-in-out; + opacity: 0; + text-decoration: none; + color: silver; + font-size: 80%; + } + + .phpdocumentor h1:hover .headerlink, + .phpdocumentor h2:hover .headerlink, + .phpdocumentor h3:hover .headerlink, + .phpdocumentor h4:hover .headerlink, + .phpdocumentor h5:hover .headerlink, + .phpdocumentor h6:hover .headerlink { + opacity: 1; + } } .phpdocumentor p { margin-top: 0; @@ -173,6 +206,11 @@ body { font-style: italic; font-size: 80%; } + +.phpdocumentor-uml-diagram svg { + max-width: 100%; + height: auto !important; +} .phpdocumentor-line { border-top: 1px solid #E1E1E1; border-width: 0; @@ -183,11 +221,17 @@ body { box-sizing: border-box; margin: 0 auto; max-width: var(--container-width); - padding: 0 var(--spacing-lg); + padding: 0 var(--spacing-sm); position: relative; width: 100%; } +@media (min-width: 550px) { + .phpdocumentor-section { + padding: 0 var(--spacing-lg); + } +} + @media (min-width: 1200px) { .phpdocumentor-section { padding: 0; @@ -418,7 +462,7 @@ textarea { outline: 0; } -.phpdocumentor-label { +label.phpdocumentor-label { display: block; margin-bottom: var(--spacing-xs); } @@ -432,38 +476,52 @@ input[type="checkbox"].phpdocumentor-field, input[type="radio"].phpdocumentor-field { display: inline; } +.phpdocumentor-column ul, div.phpdocumentor-list > ul, ul.phpdocumentor-list { - list-style: circle inside; + list-style: circle; } +.phpdocumentor-column ol, +div.phpdocumentor-list > ol, ol.phpdocumentor-list { - list-style: decimal inside; + list-style: decimal; } + +.phpdocumentor-column ul, div.phpdocumentor-list > ul, ol.phpdocumentor-list, ul.phpdocumentor-list { margin-top: 0; + padding-left: var(--spacing-md); + margin-bottom: var(--spacing-sm); +} + +.phpdocumentor-column ul.-clean, +div.phpdocumentor-list > ul.-clean, +ul.phpdocumentor-list.-clean { + list-style: none; padding-left: 0; - margin-bottom: var(--spacing-md); } dl { margin-bottom: var(--spacing-md); } +.phpdocumentor-column ul ul, div.phpdocumentor-list > ul ul, ul.phpdocumentor-list ul.phpdocumentor-list, ul.phpdocumentor-list ol.phpdocumentor-list, ol.phpdocumentor-list ol.phpdocumentor-list, ol.phpdocumentor-list ul.phpdocumentor-list { font-size: var(--text-sm); - margin: var(--spacing-xs) 0 var(--spacing-xs) calc(var(--spacing-xs) * 2); + margin: 0 0 0 calc(var(--spacing-xs) * 2); } -li.phpdocumentor-list { - margin-bottom: var(--spacing-md); +.phpdocumentor-column ul li, +.phpdocumentor-list li { + padding-bottom: var(--spacing-xs); } .phpdocumentor dl dt { @@ -529,6 +587,36 @@ th.phpdocumentor-heading:last-child, td.phpdocumentor-cell:last-child { padding-right: 0; } +.phpdocumentor-label-line { + display: flex; + flex-direction: row; + gap: 1rem +} + +.phpdocumentor-label { + background: #f6f6f6; + border-radius: .25rem; + font-size: 80%; + display: inline-block; + overflow: hidden +} + +/* +It would be better if the phpdocumentor-element class were to become a flex element with a gap, but for #3337 that +is too big a fix and needs to be done in a new design iteration. +*/ +.phpdocumentor-signature + .phpdocumentor-label-line .phpdocumentor-label { + margin-top: var(--spacing-sm); +} + +.phpdocumentor-label span { + display: inline-block; + padding: .125rem .5rem; +} + +.phpdocumentor-label--success span:last-of-type { + background: #abe1ab; +} .phpdocumentor-header { display: flex; @@ -613,7 +701,7 @@ td.phpdocumentor-cell:last-child { @media (min-width: 1000px) { .phpdocumentor-title { - width: 30.6666666667%; + width: 22%; border-right: var(--sidebar-border-color) solid 1px; } @@ -732,7 +820,8 @@ td.phpdocumentor-cell:last-child { transition: padding-left .4s ease-out; } -.phpdocumentor .phpdocumentor-sidebar a:hover { +.phpdocumentor .phpdocumentor-sidebar a:hover, +.phpdocumentor .phpdocumentor-sidebar a.-active { padding-left: 5px; font-weight: 600; } @@ -747,6 +836,7 @@ td.phpdocumentor-cell:last-child { .phpdocumentor .phpdocumentor-sidebar__category-header { font-size: var(--text-md); + margin-top: 0; margin-bottom: var(--spacing-xs); color: var(--link-color-primary); font-weight: 600; @@ -917,10 +1007,6 @@ td.phpdocumentor-cell:last-child { margin: 0 0 0 auto; } } -.phpdocumentor-content { - position: relative; -} - .phpdocumentor-search-results { backdrop-filter: blur(5px); background: var(--popover-background-color); @@ -1037,6 +1123,7 @@ td.phpdocumentor-cell:last-child { display: flex; align-items: center; justify-content: center; + z-index: 1; } .phpdocumentor-modal__open { @@ -1058,6 +1145,8 @@ td.phpdocumentor-cell:last-child { background: #fff; position: relative; padding: 2em; + box-sizing: border-box; + max-width:100vw; } .phpdocumentor-modal__close { @@ -1072,6 +1161,61 @@ td.phpdocumentor-cell:last-child { font-weight: bold; cursor: pointer; } +.phpdocumentor-on-this-page__sidebar { + display: none; +} + +.phpdocumentor-on-this-page__title { + display: block; + font-weight: bold; + margin-bottom: var(--spacing-sm); + color: var(--link-color-primary); +} + +@media (min-width: 1000px) { + .phpdocumentor-on-this-page__sidebar { + display: block; + position: relative; + } + + .phpdocumentor-on-this-page__content::-webkit-scrollbar, + [scrollbars]::-webkit-scrollbar { + height: 8px; + width: 8px; + } + + .phpdocumentor-on-this-page__content::-webkit-scrollbar-corner, + [scrollbars]::-webkit-scrollbar-corner { + background: 0; + } + + .phpdocumentor-on-this-page__content::-webkit-scrollbar-thumb, + [scrollbars]::-webkit-scrollbar-thumb { + background: rgba(128,134,139,0.26); + border-radius: 8px; + } + + .phpdocumentor-on-this-page__content { + position: sticky; + height: calc(100vh - var(--header-height)); + overflow-y: auto; + border-left: 1px solid var(--sidebar-border-color); + padding-left: var(--spacing-lg); + font-size: 90%; + top: -1px; /* Needed for the javascript to make the .-stuck trick work */ + flex: 0 1 auto; + width: 15vw; + } + + .phpdocumentor-on-this-page__content.-stuck { + height: 100vh; + } + + .phpdocumentor-on-this-page__content li { + word-break: break-all; + line-height: normal; + } +} /* Used for screen readers and such */ .visually-hidden { diff --git a/docs/client-api/css/normalize.css b/docs/client-api/css/normalize.css index 579152b..653dc00 100644 --- a/docs/client-api/css/normalize.css +++ b/docs/client-api/css/normalize.css @@ -76,7 +76,7 @@ audio:not([controls]) { [hidden], template { - display: none; + display: none !important; } /* Links diff --git a/docs/client-api/css/template.css b/docs/client-api/css/template.css index 31f00e3..898b676 100644 --- a/docs/client-api/css/template.css +++ b/docs/client-api/css/template.css @@ -1,3 +1,25 @@ + +.phpdocumentor-content { + position: relative; + display: flex; + gap: var(--spacing-md); +} + +.phpdocumentor-content > section:first-of-type { + width: 75%; + flex: 1 1 auto; +} + +@media (min-width: 1900px) { + .phpdocumentor-content > section:first-of-type { + width: 100%; + flex: 1 1 auto; + } +} + +.phpdocumentor .phpdocumentor-content__title { + margin-top: 0; +} .phpdocumentor-summary { font-style: italic; } @@ -8,8 +30,58 @@ position: relative; } +.phpdocumentor-element .phpdocumentor-element { + border: 1px solid var(--primary-color-lighten); + margin-bottom: var(--spacing-md); + padding: var(--spacing-xs); + border-radius: 5px; +} + +.phpdocumentor-element.-deprecated .phpdocumentor-element__name { + text-decoration: line-through; +} + +@media (min-width: 550px) { + .phpdocumentor-element .phpdocumentor-element { + margin-bottom: var(--spacing-lg); + padding: var(--spacing-md); + } +} + +.phpdocumentor-element__modifier { + font-size: var(--text-xxs); + padding: calc(var(--spacing-base-size) / 4) calc(var(--spacing-base-size) / 2); + color: var(--text-color); + background-color: var(--light-gray); + border-radius: 3px; + text-transform: uppercase; +} + +.phpdocumentor .phpdocumentor-elements__header { + margin-top: var(--spacing-xxl); + margin-bottom: var(--spacing-lg); +} + .phpdocumentor .phpdocumentor-element__name { line-height: 1; + margin-top: 0; + font-weight: 300; + font-size: var(--text-lg); + word-break: break-all; + margin-bottom: var(--spacing-sm); +} + +@media (min-width: 550px) { + .phpdocumentor .phpdocumentor-element__name { + font-size: var(--text-xl); + margin-bottom: var(--spacing-xs); + } +} + +@media (min-width: 1200px) { + .phpdocumentor .phpdocumentor-element__name { + margin-bottom: var(--spacing-md); + } } .phpdocumentor-element__package, @@ -24,38 +96,28 @@ .phpdocumentor-element__package .phpdocumentor-breadcrumbs { display: inline; } - -.phpdocumentor-element:not(:last-child) { - border-bottom: 1px solid var(--primary-color-lighten); - padding-bottom: var(--spacing-lg); -} - -.phpdocumentor-element.-deprecated .phpdocumentor-element__name { - text-decoration: line-through; -} - -.phpdocumentor-element__modifier { - font-size: var(--text-xxs); - padding: calc(var(--spacing-base-size) / 4) calc(var(--spacing-base-size) / 2); - color: var(--text-color); - background-color: var(--light-gray); - border-radius: 3px; - text-transform: uppercase; -} -.phpdocumentor-signature { - display: inline-block; +.phpdocumentor .phpdocumentor-signature { + display: block; font-size: var(--text-sm); - margin-bottom: var(--spacing-md); + border: 1px solid #f0f0f0; } -.phpdocumentor-signature.-deprecated .phpdocumentor-signature__name { +.phpdocumentor .phpdocumentor-signature.-deprecated .phpdocumentor-signature__name { text-decoration: line-through; } + +@media (min-width: 550px) { + .phpdocumentor .phpdocumentor-signature { + margin-left: calc(var(--spacing-xl) * -1); + width: calc(100% + var(--spacing-xl)); + } +} + .phpdocumentor-table-of-contents { } .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry { - padding-top: var(--spacing-xs); + margin-bottom: var(--spacing-xxs); margin-left: 2rem; display: flex; } @@ -90,7 +152,7 @@ width: 1.25rem; height: 1.25rem; line-height: 1.25rem; - background: transparent url('data:image/svg+xml;utf8,') no-repeat center center; + background: transparent url('data:image/svg+xml;utf8,') no-repeat center center; content: ''; position: absolute; left: 0; @@ -104,12 +166,14 @@ .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-method:before { content: 'M'; - background-image: url('data:image/svg+xml;utf8,'); + color: ''; + background-image: url('data:image/svg+xml;utf8,'); } .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-function:before { content: 'M'; - background-image: url('data:image/svg+xml;utf8,'); + color: ' 96'; + background-image: url('data:image/svg+xml;utf8,'); } .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-property:before { @@ -119,7 +183,7 @@ .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-constant:before { content: 'C'; background-color: transparent; - background-image: url('data:image/svg+xml;utf8,'); + background-image: url('data:image/svg+xml;utf8,'); } .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-class:before { @@ -142,16 +206,35 @@ content: 'P' } +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-enum:before { + content: 'E' +} + .phpdocumentor-table-of-contents dd { font-style: italic; margin-left: 2rem; } .phpdocumentor-element-found-in { - position: absolute; - top: 0; - right: 0; - font-size: var(--text-sm); - color: gray; + display: none; +} + +@media (min-width: 550px) { + .phpdocumentor-element-found-in { + display: block; + font-size: var(--text-sm); + color: gray; + margin-bottom: 1rem; + } +} + +@media (min-width: 1200px) { + .phpdocumentor-element-found-in { + position: absolute; + top: var(--spacing-sm); + right: var(--spacing-sm); + font-size: var(--text-sm); + margin-bottom: 0; + } } .phpdocumentor-element-found-in .phpdocumentor-element-found-in__source { diff --git a/docs/client-api/files/examples-customerexample.html b/docs/client-api/files/examples-customerexample.html index fa28fa1..1145358 100644 --- a/docs/client-api/files/examples-customerexample.html +++ b/docs/client-api/files/examples-customerexample.html @@ -2,14 +2,15 @@ - CRM V4 + CRM V4 + - + @@ -18,6 +19,7 @@ + @@ -51,52 +53,54 @@ -