diff --git a/CHANGELOG.md b/CHANGELOG.md
index dce653e..8ed816b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,14 @@
+# 0.1.2 (04.04.2016)
+
+## Enhancements
+- #64 Refresh product.
+- #108 Edit products.
+- #112 Add more product attributes.
+- #117 Log into files and enhance logging.
+
+## Features
+- #114 Return and validate error if error occurs.
+
# 0.1.1 (22.02.2016)
## Features
diff --git a/build/epages-rest-php-0.1.2.phar b/build/epages-rest-php-0.1.2.phar
new file mode 100644
index 0000000..eb1ea6e
Binary files /dev/null and b/build/epages-rest-php-0.1.2.phar differ
diff --git a/build/epages-rest-php-0.1.2.phar.bz2 b/build/epages-rest-php-0.1.2.phar.bz2
new file mode 100644
index 0000000..9510549
Binary files /dev/null and b/build/epages-rest-php-0.1.2.phar.bz2 differ
diff --git a/build/epages-rest-php-0.1.2.phar.gz b/build/epages-rest-php-0.1.2.phar.gz
new file mode 100644
index 0000000..ac57dc4
Binary files /dev/null and b/build/epages-rest-php-0.1.2.phar.gz differ
diff --git a/build/epages-rest-php.phar b/build/epages-rest-php.phar
index 968a545..eb1ea6e 100644
Binary files a/build/epages-rest-php.phar and b/build/epages-rest-php.phar differ
diff --git a/build/epages-rest-php.phar.bz2 b/build/epages-rest-php.phar.bz2
new file mode 100644
index 0000000..9510549
Binary files /dev/null and b/build/epages-rest-php.phar.bz2 differ
diff --git a/build/epages-rest-php.phar.gz b/build/epages-rest-php.phar.gz
new file mode 100644
index 0000000..ac57dc4
Binary files /dev/null and b/build/epages-rest-php.phar.gz differ
diff --git a/doc/404.html b/doc/404.html
index bb9013e..4c848ca 100644
--- a/doc/404.html
+++ b/doc/404.html
@@ -49,6 +49,9 @@
Classes
ep6\Product
ep6\ProductAttribute
ep6\ProductFilter
+ ep6\ProductPrice
+ ep6\ProductPriceType
+ ep6\ProductPriceWithQuantity
ep6\ProductSlideshow
ep6\RESTClient
ep6\RightsOfWithdrawalInformation
@@ -60,7 +63,8 @@ Classes
Traits
diff --git a/doc/class-ep6.ContactInformation.html b/doc/class-ep6.ContactInformation.html
index cdde7e1..5fe3025 100644
--- a/doc/class-ep6.ContactInformation.html
+++ b/doc/class-ep6.ContactInformation.html
@@ -48,6 +48,9 @@ Classes
Product
ProductAttribute
ProductFilter
+ ProductPrice
+ ProductPriceType
+ ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@ Classes
Traits
@@ -100,7 +104,7 @@ Class ContactInformation
-
This is the contact information object of the shop.
+
This is the Contact Information object of the shop.
@@ -108,7 +112,9 @@ Class ContactInformation
ep6\ContactInformation
uses
- ep6\InformationTrait
+ ep6\Information ,
+
+ ep6\ErrorReporting
@@ -138,9 +144,13 @@ Class ContactInformation
0.1.1 The object can be echoed.
Since:
0.1.1 Unstatic variables.
+ Since:
+ 0.1.2 Add error reporting.
See:
InformationTrait This trait has all information needed objects.
- Located at shopobjects/information/ContactInformation.class.php
+ See:
+ ErrorReporting This trait gives the error reporting functionality.
+ Located at shopobjects/information/ContactInformation.class.php
@@ -148,133 +158,34 @@ Class ContactInformation
Methods summary
-
-
-
- public
-
- String|null
-
-
-
-
-
-
#
-
getDefaultTitle ( )
-
-
-
Gets the title in the default localization.
-
-
-
-
Gets the title in the default localization.
-
-
Deprecated
-
-
-
-
-
Returns
-
- String|null The title in the default localization or null if the default title is not set.
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Deprecated because the Locale is everytime the configured Locale.
- 0.1.1 Unstatic every attributes.
-
-
Api
-
-
-
-
-
-
-
-
+
public
- String|null
+ String
-
#
-
getTitle ( )
+
#
+
__toString ( )
-
Gets the title.
+
Prints the Contact Information object as a string.
-
Gets the title.
-
+
Prints the Contact Information object as a string.
-
-
Returns
-
- String|null The title or null if the localized title is not set.
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Use a reload function.
- 0.1.0 Use the default Locale.
- 0.1.1 Unstatic every attributes.
-
-
Api
-
-
+
This function returns the setted values of the Contact Information object.
-
-
-
-
-
-
- public
-
- String|null
-
-
-
-
-
-
#
-
getDefaultShortDescription ( )
-
-
-
Gets the short description in the default localization.
-
-
-
-
Gets the short description in the default localization.
-
-
Deprecated
-
-
-
Returns
- String|null The short description in the default localization or null if the short description is not set.
+ String The Contact Information as a string.
@@ -284,19 +195,14 @@
Author
Since
- 0.0.0
- 0.1.0 Deprecated because the Locale is everytime the configured Locale.
- 0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.1.1
-
+
public
@@ -307,21 +213,21 @@ Api
-
#
-
getShortDescription ( )
+
#
+
getAddress ( )
-
Gets the short description.
+
Gets the address.
-
Gets the short description.
+
Gets the address.
Returns
- String|null The short description or null if the short description is not set.
+ String|null The address or null if the address is unset.
@@ -335,59 +241,7 @@
Since
0.1.0 Use a reload function.
0.1.0 Use the default Locale.
0.1.1 Unstatic every attributes.
-
-
Api
-
-
-
-
-
-
-
-
-
-
- public
-
- String|null
-
-
-
-
-
-
#
-
getDefaultCompany ( )
-
-
-
Gets the company in the default localization.
-
-
-
-
Gets the company in the default localization.
-
-
Deprecated
-
-
-
-
-
Returns
-
- String|null The company in the default localization or null if the short description is not set.
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Deprecated because the Locale is everytime the configured Locale.
- 0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.1.2 Add error reporting.
@@ -406,7 +260,7 @@
Api
#
-
getCompany ( )
+
getCompany ( )
Gets the company.
@@ -433,59 +287,7 @@
Since
0.1.0 Use a reload function.
0.1.0 Use the default Locale.
0.1.1 Unstatic every attributes.
-
-
Api
-
-
-
-
-
-
-
-
-
-
- public
-
- String|null
-
-
-
-
-
-
#
-
getDefaultContactPerson ( )
-
-
-
Gets the contact person in the default localization.
-
-
-
-
Gets the contact person in the default localization.
-
-
Deprecated
-
-
-
-
-
Returns
-
- String|null The contact person in the default localization or null if the contact person is not set.
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Deprecated because the Locale is everytime the configured Locale.
- 0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.1.2 Add error reporting.
@@ -504,7 +306,7 @@
Api
#
-
getContactPerson ( )
+
getContactPerson ( )
Gets the contact person.
@@ -531,59 +333,7 @@
Since
0.1.0 Use a reload function.
0.1.0 Use the default Locale.
0.1.1 Unstatic every attributes.
-
-
Api
-
-
-
-
-
-
-
-
-
-
- public
-
- String|null
-
-
-
-
-
-
#
-
getDefaultContactPersonJobTitle ( )
-
-
-
Gets the job title of the contact person in the default localization.
-
-
-
-
Gets the job title of the contact person in the default localization.
-
-
Deprecated
-
-
-
-
-
Returns
-
- String|null The job title of the contact person in the default localization or null if the contact person job title is not set.
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Deprecated because the Locale is everytime the configured Locale.
- 0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.1.2 Add error reporting.
@@ -602,7 +352,7 @@
Api
#
-
getContactPersonJobTitle ( )
+
getContactPersonJobTitle ( )
Gets the job title of the contact person.
@@ -629,66 +379,14 @@
Since
0.1.0 Use a reload function.
0.1.0 Use the default Locale.
0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
-
-
- public
-
- String|null
-
-
-
-
-
-
#
-
getDefaultAddress ( )
-
-
-
Gets the address in the default localization.
-
-
-
-
Gets the address in the default localization.
-
-
Deprecated
-
-
-
-
-
Returns
-
- String|null The address in the default localization or null if the default address is not set.
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Deprecated because the Locale is everytime the configured Locale.
- 0.1.1 Unstatic every attributes.
-
-
Api
-
-
-
-
-
-
-
-
+
public
@@ -699,21 +397,21 @@ Api
-
#
-
getAddress ( )
+
#
+
getEmail ( )
-
Gets the address.
+
Gets the email.
-
Gets the address.
+
Gets the email.
Returns
- String|null The address or null if the address is unset.
+ String|null The email or null if the email address is not set.
@@ -727,59 +425,7 @@
Since
0.1.0 Use a reload function.
0.1.0 Use the default Locale.
0.1.1 Unstatic every attributes.
-
-
Api
-
-
-
-
-
-
-
-
-
-
- public
-
- String|null
-
-
-
-
-
-
#
-
getDefaultPhone ( )
-
-
-
Gets the phone number in the default localization.
-
-
-
-
Gets the phone number in the default localization.
-
-
Deprecated
-
-
-
-
-
Returns
-
- String|null The phone number in the default localization or null if the default phone number is unset.
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Deprecated because the Locale is everytime the configured Locale.
- 0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.1.2 Add error reporting.
@@ -798,7 +444,7 @@
Api
#
-
getPhone ( )
+
getPhone ( )
Gets the phone number.
@@ -825,16 +471,14 @@
Since
0.1.0 Use a reload function.
0.1.0 Use the default Locale.
0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
@@ -845,24 +489,21 @@ Api
-
#
-
getDefaultEmail ( )
+
#
+
getShortDescription ( )
-
Gets the email in the default localization.
+
Gets the short description.
-
Gets the email in the default localization.
+
Gets the short description.
-
Deprecated
-
-
Returns
- String|null The email in the default localization or null if the default email address is unset.
+ String|null The short description or null if the short description is not set.
@@ -873,18 +514,17 @@
Author
Since
0.0.0
- 0.1.0 Deprecated because the Locale is everytime the configured Locale.
+ 0.1.0 Use a reload function.
+ 0.1.0 Use the default Locale.
0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
@@ -895,21 +535,21 @@ Api
-
#
-
getEmail ( )
+
#
+
getTitle ( )
-
Gets the email.
+
Gets the title.
-
Gets the email.
+
Gets the title.
Returns
- String|null The email or null if the email address is not set.
+ String|null The title or null if the localized title is not set.
@@ -923,75 +563,33 @@
Since
0.1.0 Use a reload function.
0.1.0 Use the default Locale.
0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
-
-
- public
-
- String
-
-
-
-
-
-
#
-
__toString ( )
-
-
-
Prints the Information object as a string.
-
-
-
-
Prints the Information object as a string.
-
-
This function returns the setted values of the Information object.
-
-
-
-
Returns
-
- String The Information as a string.
-
-
-
-
Author
-
-
Since
-
- 0.1.1
-
-
Api
-
-
+
-
-
+
-
-
@@ -1008,7 +606,7 @@ Api
String
- RESTPATH
+ RESTPATH
+
+
+ep6\Currencies
+
+ uses
+ ep6\ErrorReporting
+
+
+
@@ -115,7 +128,7 @@ Class Currencies
Namespace: ep6
- Package: ep6\Shopobjects
+
Author:
David Pauli contact@david-pauli.de
@@ -127,9 +140,9 @@ Class Currencies
0.1.0 Add configured used Currency.
Since:
0.1.1 Now the object is echoable.
- Example:
- examples\handleWithCurrencies.php Handle with currencies.
- Located at shopobjects/Currencies.class.php
+ Since:
+ 0.1.2 Add error reporting.
+ Located at shopobjects/Currencies.class.php
@@ -137,29 +150,33 @@ Class Currencies
Methods summary
-
+
public static
-
+ The
-
#
-
resetValues ( )
+
#
+
getCurrency ( )
-
This function resets all curencies values.
+
Gets the configured Currency.
-
This function resets all curencies values.
+
Gets the configured Currency.
+
Returns
+
+ The configured Currency which is used in REST calls.
+
Author
@@ -168,11 +185,8 @@
Author
Since
- 0.0.0
- 0.1.0 Reset used Currency.
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
@@ -191,7 +205,7 @@
Api
#
-
getDefault ( )
+
getDefault ( )
Gets the default currency.
@@ -216,9 +230,7 @@
Since
0.0.0
0.1.0 Use a reload function.
-
-
Api
-
+ 0.1.2 Add error reporting.
@@ -237,7 +249,7 @@
Api
#
-
getItems ( )
+
getItems ( )
Gets the activated currencies.
@@ -262,42 +274,36 @@
Since
0.0.0
0.1.0 Use a reload function.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public static
- The
+
-
#
-
getCurrency ( )
+
#
+
resetValues ( )
-
Gets the configured Currency.
+
This function resets all curencies values.
-
Gets the configured Currency.
+
This function resets all curencies values.
-
Returns
-
- The configured Currency which is used in REST calls.
-
Author
@@ -306,10 +312,9 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.0.0
+ 0.1.0 Reset used Currency.
+ 0.1.2 Add error reporting.
@@ -328,7 +333,7 @@
Api
#
-
setCurrency ( String $currency )
+
setCurrency ( String $currency )
Sets the configured Currency.
@@ -357,9 +362,7 @@
Author
Since
0.1.0
-
-
Api
-
+ 0.1.2 Add error reporting.
@@ -369,6 +372,16 @@
Api
+
@@ -382,7 +395,7 @@ Api
String
- RESTPATH
+ RESTPATH
diff --git a/doc/class-ep6.ErrorReporting.html b/doc/class-ep6.ErrorReporting.html
new file mode 100644
index 0000000..dc7dd8e
--- /dev/null
+++ b/doc/class-ep6.ErrorReporting.html
@@ -0,0 +1,309 @@
+
+
+
+
+
+
Trait ep6\ErrorReporting
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Trait ErrorReporting
+
+
+
+
This is the functionality to check whether there is an error on last library usage or not.
+
+
+
+
+
+
+
+
+
+
Direct Known Users
+
ep6\ContactInformation ,
+
ep6\Currencies ,
+
ep6\RESTClient ,
+
ep6\RightsOfWithdrawalInformation ,
+
ep6\ShippingInformation ,
+
ep6\Shop ,
+
ep6\TermsAndConditionInformation ,
+
ep6\JSONHandler ,
+
ep6\Locales ,
+
ep6\PrivacyPolicyInformation ,
+
ep6\Product ,
+
ep6\ProductFilter ,
+
ep6\ProductPrice ,
+
ep6\ProductPriceWithQuantity ,
+
ep6\ProductSlideshow
+
+
+
+
+
+
+
+
+ Methods summary
+
+
+
+ public static
+
+ boolean
+
+
+
+
+
+
#
+
error ( )
+
+
+
Checks whether there was an error or not.
+
+
+
+
Checks whether there was an error or not.
+
+
+
+
Returns
+
+ boolean True if there was an error, false if not.
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public static
+
+ String|null
+
+
+
+
+
+
#
+
errorMessage ( )
+
+
+
This function returns the error message of the last happened error.
+
+
+
+
This function returns the error message of the last happened error.
+
+
+
+
Returns
+
+ String|null The error message of the last happened error or null if there is no error message.
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public static
+
+ String|null
+
+
+
+
+
+
#
+
errorNumber ( )
+
+
+
This function returns the error number of the last happened error.
+
+
+
+
This function returns the error number of the last happened error.
+
+
+
+
Returns
+
+ String|null The error number of the last happened error, or null if there is no error.
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/class-ep6.HTTPRequestMethod.html b/doc/class-ep6.HTTPRequestMethod.html
index d768f79..7758f0d 100644
--- a/doc/class-ep6.HTTPRequestMethod.html
+++ b/doc/class-ep6.HTTPRequestMethod.html
@@ -48,6 +48,9 @@
Classes
Product
ProductAttribute
ProductFilter
+
ProductPrice
+
ProductPriceType
+
ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@
Classes
Traits
@@ -100,9 +104,9 @@
Class HTTPRequestMethod
-
The HTTP request 'enum'.
+
The HTTP Request 'enum'.
-
This are the possible HTTP request methods..
+
This are the possible HTTP Request Methods.
@@ -123,7 +127,7 @@
Class HTTPRequestMethod
David Pauli
contact@david-pauli.de
Since:
0.0.1
-
Located at util/RESTClient.class.php
+
Located at util/HTTPRequestMethod.enum.php
@@ -144,7 +148,7 @@ Class HTTPRequestMethod
String
- GET
+ GET
@@ -168,7 +172,7 @@
Class HTTPRequestMethod
String
- POST
+ POST
@@ -192,7 +196,7 @@
Class HTTPRequestMethod
String
- PUT
+ PUT
@@ -216,7 +220,7 @@
Class HTTPRequestMethod
String
- DELETE
+ DELETE
@@ -240,7 +244,7 @@
Class HTTPRequestMethod
String
- PATCH
+ PATCH
@@ -145,20 +147,20 @@ Class Image
#
-
__construct ( String $url )
+
__construct ( String $url )
-
To create a new image object use this constructor with the original URL.
+
To create a new Image object use this constructor with the original URL.
-
To create a new image object use this constructor with the original URL.
+
To create a new Image object use this constructor with the original URL.
Parameters
$url
- The origin URL of the image.
+ The origin URL of the Image.
@@ -176,7 +178,7 @@
Since
-
+
public
@@ -187,21 +189,23 @@ Since
-
#
-
getOriginURL ( )
+
#
+
__toString ( )
-
Gets the original URL of the image.
+
Prints the Image object as a string.
-
Gets the original URL of the image.
+
Prints the Image object as a string.
+
+
This function returns the setted values of the Image object.
Returns
- String The original URL.
+ String The Image as a string.
@@ -211,14 +215,14 @@
Author
Since
- 0.0.0
+ 0.1.1
-
+
public
@@ -229,23 +233,21 @@ Since
-
#
-
__toString ( )
+
#
+
getOriginURL ( )
-
Prints the Image object as a string.
+
Gets the original URL of the Image.
-
Prints the Image object as a string.
-
-
This function returns the setted values of the Image object.
+
Gets the original URL of the Image.
Returns
- String The Image as a string.
+ String The original URL.
@@ -255,7 +257,7 @@
Author
Since
- 0.1.1
+ 0.0.0
diff --git a/doc/class-ep6.Information.html b/doc/class-ep6.Information.html
new file mode 100644
index 0000000..0fd4f6d
--- /dev/null
+++ b/doc/class-ep6.Information.html
@@ -0,0 +1,363 @@
+
+
+
+
+
+
Trait ep6\Information
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Trait Information
+
+
+
+
This is the interface for all information objects.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Namespace: ep6
+
Package: ep6\Shopobjects\Information
+
+
Author:
+ David Pauli
contact@david-pauli.de
+
Since:
+ 0.0.0
+
Since:
+ 0.1.0 Add a timestamp to save the next allowed REST call.
+
Since:
+ 0.1.0 Use a default Locale.
+
Since:
+ 0.1.1 The information object can be echoed.
+
Since:
+ 0.1.1 Unstatic every attributes.
+
Located at shopobjects/information/Information.trait.php
+
+
+
+
+
+
+ Methods summary
+
+
+
+ public
+
+ String
+
+
+
+
+
+
#
+
__toString ( )
+
+
+
Prints the Information object as a string.
+
+
+
+
Prints the Information object as a string.
+
+
This function returns the setted values of the Information object.
+
+
+
+
Returns
+
+ String The Information as a string.
+
+
+
+
Author
+
+
Since
+
+ 0.1.1
+
+
+
+
+
+
+
+
+
+ public
+
+ String|null
+
+
+
+
+
+
#
+
getDescription ( )
+
+
+
Gets the description.
+
+
+
+
Gets the description.
+
+
+
+
Returns
+
+ String|null The localized description or null if the description is unset.
+
+
+
+
Author
+
+
Since
+
+ 0.0.0
+ 0.1.0 Use a reload function.
+ 0.1.0 Use the default Locale.
+ 0.1.1 Unstatic every attributes.
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+ public
+
+ String|null
+
+
+
+
+
+
#
+
getName ( )
+
+
+
+
+
Gets the name.
+
+
+
+
Returns
+
+ String|null The name or null if the name is unset.
+
+
+
+
Author
+
+
Since
+
+ 0.0.0
+ 0.1.0 Use a reload function.
+ 0.1.0 Use the default Locale.
+ 0.1.1 Unstatic every attributes.
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+ public
+
+ String|null
+
+
+
+
+
+
#
+
getNavigationCaption ( )
+
+
+
Gets the navigation caption.
+
+
+
+
Gets the navigation caption.
+
+
+
+
Returns
+
+ String|null The navigation caption or null if the navigation caption is unset.
+
+
+
+
Author
+
+
Since
+
+ 0.0.0
+ 0.1.0 Use a reload function.
+ 0.1.0 Use the default Locale.
+ 0.1.1 Unstatic every attributes.
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/class-ep6.InputValidator.html b/doc/class-ep6.InputValidator.html
index 25bbdf6..19c6f77 100644
--- a/doc/class-ep6.InputValidator.html
+++ b/doc/class-ep6.InputValidator.html
@@ -48,6 +48,9 @@
Classes
Product
ProductAttribute
ProductFilter
+
ProductPrice
+
ProductPriceType
+
ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@
Classes
Traits
@@ -123,9 +127,7 @@
Class InputValidator
0.0.0
Since:
0.1.0 Add function to add float values.
-
Example:
- examples\useValidator.php Test input values with the static Validator object.
-
Located at util/InputValidator.class.php
+
Located at util/InputValidator.class.php
@@ -133,7 +135,7 @@ Class InputValidator
Methods summary
-
+
public static
@@ -144,26 +146,26 @@ Class InputValidator
-
#
-
isHost ( String $parameter )
+
#
+
isArray ( array $parameter )
-
Checks whether a parameter is a host.
+
Checks whether a parameter is an array.
-
Checks whether a parameter is a host.
+
Checks whether a parameter is an array.
Parameters
$parameter
- String to check.
+ Array to check.
Returns
- boolean True if the string is a host, false if not.
+ boolean True if the parameter is an array, false if not.
@@ -175,15 +177,12 @@
Since
0.0.0
-
Api
-
-
-
+
public static
@@ -194,15 +193,15 @@ Api
-
#
-
isShop ( String $parameter )
+
#
+
isAuthToken ( String $parameter )
-
Checks whether a parameter is a shop.
+
Checks whether a parameter is a OAuth authentification token.
-
Checks whether a parameter is a shop.
+
Checks whether a parameter is a OAuth authentification token.
Parameters
@@ -213,7 +212,7 @@
Parameters
Returns
- boolean True if the string is a shop, false if not.
+ boolean True if the string is a OAuth authentification token, false if not.
@@ -225,15 +224,12 @@
Since
0.0.0
-
Api
-
-
-
+
public static
@@ -244,17 +240,15 @@ Api
-
#
-
isAuthToken ( String $parameter )
+
#
+
isCurrency ( String $parameter )
-
Checks whether a parameter is a OAuth authentification token.
-TODO: Finalize this function.
+
Checks whether a parameter is a currency string.
-
Checks whether a parameter is a OAuth authentification token.
-TODO: Finalize this function.
+
Checks whether a parameter is a currency string.
Parameters
@@ -265,7 +259,7 @@
Parameters
Returns
- boolean True if the string is a OAuth authentification token, false if not.
+ boolean True if the string is a currency string, false if not.
@@ -277,15 +271,12 @@
Since
0.0.0
-
Api
-
-
-
+
public static
@@ -296,15 +287,15 @@ Api
-
#
-
isLocale ( String $parameter )
+
#
+
isEmpty ( String $parameter )
-
Checks whether a parameter is a localization string.
+
Checks whether a paramter is empty or null.
-
Checks whether a parameter is a localization string.
+
Checks whether a paramter is empty or null.
Parameters
@@ -315,7 +306,7 @@
Parameters
Returns
- boolean True if the string is a localization string, false if not.
+ boolean True if the parameter is empty or null, false if not.
@@ -326,16 +317,14 @@
Author
Since
0.0.0
-
-
Api
-
+ 0.1.0 Test if the parameter is also the correct type.
-
+
public static
@@ -346,26 +335,26 @@ Api
-
#
-
isCurrency ( String $parameter )
+
#
+
isEmptyArray ( mixed[] $parameter )
-
Checks whether a parameter is a currency string.
+
Checks whether an array is empty or null.
-
Checks whether a parameter is a currency string.
+
Checks whether an array is empty or null.
Parameters
$parameter
- String to check.
+ Array to check.
Returns
- boolean True if the string is a currency string, false if not.
+ boolean True if the array is empty or null, false if not.
@@ -375,17 +364,14 @@
Author
Since
- 0.0.0
-
-
Api
-
+ 0.1.0
-
+
public static
@@ -396,26 +382,28 @@ Api
-
#
-
isRequestMethod ( String $parameter )
+
#
+
isEmptyArrayKey ( mixed[] $array , String $key )
-
Checks whether a parameter is a HTTP request method.
+
Checks whether an array key is unset.
-
Checks whether a parameter is a HTTP request method.
+
Checks whether an array key is unset.
Parameters
- $parameter
- String to check.
+ $array
+ Array to check.
+ $key
+ Key to exists.
Returns
- boolean True if the string is a HTTP request method, false if not.
+ boolean True if the array key is unset, false if not.
@@ -425,18 +413,14 @@
Author
Since
- 0.0.0
- 0.1.0 Use HTTPRequestMethod enum.
-
-
Api
-
+ 0.1.0
-
+
public static
@@ -447,26 +431,26 @@ Api
-
#
-
isOutputRessource ( String $parameter )
+
#
+
isFloat ( float $parameter )
-
Checks whether a parameter is an output ressource.
+
Checks whether a parameter is a float.
-
Checks whether a parameter is an output ressource.
+
Checks whether a parameter is a float.
Parameters
$parameter
- String to check.
+ Float to check.
Returns
- boolean True if the string is an output ressource, false if not.
+ boolean True if the parameter is a float, false if not.
@@ -476,18 +460,14 @@
Author
Since
- 0.0.0
- 0.1.0 Use LogOutput enum.
-
-
Api
-
+ 0.1.0
-
+
public static
@@ -498,15 +478,15 @@ Api
-
#
-
isLogLevel ( String $parameter )
+
#
+
isHost ( String $parameter )
-
Checks whether a parameter is a log level.
+
Checks whether a parameter is a host.
-
Checks whether a parameter is a log level.
+
Checks whether a parameter is a host.
Parameters
@@ -517,7 +497,7 @@
Parameters
Returns
- boolean True if the string is a log level, false if not.
+ boolean True if the string is a host, false if not.
@@ -528,17 +508,13 @@
Author
Since
0.0.0
- 0.1.0 Use LogLevel enum.
-
-
Api
-
-
+
public static
@@ -549,26 +525,26 @@ Api
-
#
-
isRESTCommand ( String $parameter )
+
#
+
isInt ( integer $parameter )
-
Checks whether a parameter is a REST command.
+
Checks whether a parameter is an int.
-
Checks whether a parameter is a REST command.
+
Checks whether a parameter is an int.
Parameters
$parameter
- String to check.
+ Int to check.
Returns
- boolean True if the string is a REST command, false if not.
+ boolean True if the parameter is an int, false if not.
@@ -580,9 +556,6 @@
Since
0.0.0
-
Api
-
-
@@ -600,7 +573,7 @@
Api
#
-
isJSON ( String $parameter )
+
isJSON ( String $parameter )
Checks whether a parameter is a JSON string.
@@ -630,15 +603,12 @@
Since
0.0.0
-
Api
-
-
-
+
public static
@@ -649,30 +619,26 @@ Api
-
#
-
isRangedInt ( integer $parameter , integer|null $minimum = null , integer|null $maximum = null )
+
#
+
isLocale ( String $parameter )
-
Checks whether a parameter is an int with a range.
+
Checks whether a parameter is a localization string.
-
Checks whether a parameter is an int with a range.
+
Checks whether a parameter is a localization string.
Parameters
$parameter
- Int to check.
- $minimum
- The minimum allowed number, null if there is no minimum.
- $maximum
- The maximum allowed number, null if there is no maximum.
+ String to check.
Returns
- boolean True if the parameter is an int, false if not.
+ boolean True if the string is a localization string, false if not.
@@ -684,15 +650,12 @@
Since
0.0.0
-
Api
-
-
-
+
public static
@@ -703,30 +666,26 @@ Api
-
#
-
isRangedFloat ( float $parameter , float|null $minimum = null , float|null $maximum = null )
+
#
+
isLogLevel ( String $parameter )
-
Checks whether a parameter is a float with a range.
+
Checks whether a parameter is a log level.
-
Checks whether a parameter is a float with a range.
+
Checks whether a parameter is a log level.
Parameters
$parameter
- Float to check.
- $minimum
- The minimum allowed number, null if there is no minimum.
- $maximum
- The maximum allowed number, null if there is no maximum.
+ String to check.
Returns
- boolean True if the parameter is an int, false if not.
+ boolean True if the string is a log level, false if not.
@@ -736,10 +695,8 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.0.0
+ 0.1.0 Use LogLevel enum.
@@ -758,7 +715,7 @@
Api
#
-
isProductDirection ( String $parameter )
+
isProductDirection ( String $parameter )
Checks whether a parameter is a product sort direction.
@@ -788,8 +745,52 @@
Since
0.0.0
-
Api
+
+
+
+
+
+
+
+
+ public static
+
+ boolean
+
+
+
+
+
+
#
+
isProductId ( String $parameter )
+
+
+
Checks whether a parameter is a valid product id.
+
+
+
+
Checks whether a parameter is a valid product id.
+
+
+
Parameters
+
+ $parameter
+ String to check.
+
+
+
Returns
+
+ boolean True if the parameter is a valid product id, false if not.
+
+
+
+
Author
+
Since
+
+ 0.0.0
@@ -808,7 +809,7 @@
Api
#
-
isProductSort ( String $parameter )
+
isProductSort ( String $parameter )
Checks whether a parameter is a product sort parameter.
@@ -838,15 +839,12 @@
Since
0.0.0
-
Api
-
-
-
+
public static
@@ -857,15 +855,15 @@ Api
-
#
-
isProductId ( String $parameter )
+
#
+
isOutputRessource ( String $parameter )
-
Checks whether a parameter is a valid product id.
+
Checks whether a parameter is an output ressource.
-
Checks whether a parameter is a valid product id.
+
Checks whether a parameter is an output ressource.
Parameters
@@ -876,7 +874,7 @@
Parameters
Returns
- boolean True if the parameter is a valid product id, false if not.
+ boolean True if the string is an output ressource, false if not.
@@ -887,16 +885,15 @@
Author
Since
0.0.0
-
-
Api
-
+ 0.1.0 Use LogOutput enum.
+ 0.1.2 Add file output ressource.
-
+
public static
@@ -907,26 +904,30 @@ Api
-
#
-
isFloat ( float $parameter )
+
#
+
isRangedFloat ( float $parameter , float|null $minimum = null , float|null $maximum = null )
-
Checks whether a parameter is a float.
+
Checks whether a parameter is a float with a range.
-
Checks whether a parameter is a float.
+
Checks whether a parameter is a float with a range.
Parameters
$parameter
Float to check.
+ $minimum
+ The minimum allowed number, null if there is no minimum.
+ $maximum
+ The maximum allowed number, null if there is no maximum.
Returns
- boolean True if the parameter is a float, false if not.
+ boolean True if the parameter is an int, false if not.
@@ -938,15 +939,12 @@
Since
0.1.0
-
Api
-
-
-
+
public static
@@ -957,21 +955,25 @@ Api
-
#
-
isInt ( integer $parameter )
+
#
+
isRangedInt ( integer $parameter , integer|null $minimum = null , integer|null $maximum = null )
-
Checks whether a parameter is an int.
+
Checks whether a parameter is an int with a range.
-
Checks whether a parameter is an int.
+
Checks whether a parameter is an int with a range.
Parameters
$parameter
Int to check.
+ $minimum
+ The minimum allowed number, null if there is no minimum.
+ $maximum
+ The maximum allowed number, null if there is no maximum.
Returns
@@ -988,15 +990,12 @@
Since
0.0.0
-
Api
-
-
-
+
public static
@@ -1007,26 +1006,26 @@ Api
-
#
-
isArray ( array $parameter )
+
#
+
isRESTCommand ( String $parameter )
-
Checks whether a parameter is an array.
+
Checks whether a parameter is a REST command.
-
Checks whether a parameter is an array.
+
Checks whether a parameter is a REST command.
Parameters
$parameter
- Array to check.
+ String to check.
Returns
- boolean True if the parameter is an array, false if not.
+ boolean True if the string is a REST command, false if not.
@@ -1038,15 +1037,12 @@
Since
0.0.0
-
Api
-
-
-
+
public static
@@ -1057,15 +1053,15 @@ Api
-
#
-
isEmpty ( String $parameter )
+
#
+
isRequestMethod ( String $parameter )
-
Checks whether a paramter is empty or null.
+
Checks whether a parameter is a HTTP request method.
-
Checks whether a paramter is empty or null.
+
Checks whether a parameter is a HTTP request method.
Parameters
@@ -1076,7 +1072,7 @@
Parameters
Returns
- boolean True if the parameter is empty or null, false if not.
+ boolean True if the string is a HTTP request method, false if not.
@@ -1087,17 +1083,14 @@
Author
Since
0.0.0
- 0.1.0 Test if the parameter is also the correct type.
-
-
Api
-
+ 0.1.0 Use HTTPRequestMethod enum.
-
+
public static
@@ -1108,26 +1101,26 @@ Api
-
#
-
isEmptyArray ( mixed[] $parameter )
+
#
+
isShop ( String $parameter )
-
Checks whether an array is empty or null.
+
Checks whether a parameter is a shop.
-
Checks whether an array is empty or null.
+
Checks whether a parameter is a shop.
Parameters
$parameter
- Array to check.
+ String to check.
Returns
- boolean True if the array is empty or null, false if not.
+ boolean True if the string is a shop, false if not.
@@ -1137,17 +1130,14 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.0.0
-
+
public static
@@ -1158,28 +1148,26 @@ Api
-
#
-
isEmptyArrayKey ( mixed[] $array , String $key )
+
#
+
isString ( String $parameter )
-
Checks whether an array key is unset.
+
Checks whether a parameter is a string.
-
Checks whether an array key is unset.
+
Checks whether a parameter is a string.
Parameters
- $array
- Array to check.
- $key
- Key to exists.
+ $parameter
+ Parameter to check.
Returns
- boolean True if the array key is unset, false if not.
+ boolean True if the parameter is a string, false if not.
@@ -1189,10 +1177,7 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.1.2
diff --git a/doc/class-ep6.JSONHandler.html b/doc/class-ep6.JSONHandler.html
index 8295f7c..436bf99 100644
--- a/doc/class-ep6.JSONHandler.html
+++ b/doc/class-ep6.JSONHandler.html
@@ -48,6 +48,9 @@
Classes
Product
ProductAttribute
ProductFilter
+
ProductPrice
+
ProductPriceType
+
ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@
Classes
Traits
@@ -103,6 +107,15 @@
Class JSONHandler
This is a small simple handler to convert JSON into an array and otherwise.
+
+
+ep6\JSONHandler
+
+ uses
+ ep6\ErrorReporting
+
+
+
@@ -121,7 +134,9 @@ Class JSONHandler
David Pauli contact@david-pauli.de
Since:
0.0.0
- Located at util/JSONHandler.class.php
+ Since:
+ 0.1.2 Add error reporting.
+ Located at util/JSONHandler.class.php
@@ -129,37 +144,37 @@ Class JSONHandler
Methods summary
-
+
public static
- mixed[]
+ String
-
#
-
parseJSON ( String $JSON )
+
#
+
createJSON ( mixed[] $array )
-
Call this function with the JSON in parameter.
+
Call this function to create a JSON string from a array.
-
Call this function with the JSON in parameter.
+
Call this function to create a JSON string from a array.
Parameters
- $JSON
- The JSON string to parse.
+ $array
+ The array to make a JSON.
Returns
- mixed[] The array of the JSON element or null if there is an error.
+ String The JSON string.
@@ -170,43 +185,46 @@
Author
Since
0.0.0
+ 0.1.2 Extend the encoding with avoid encode slashes.
+ 0.1.2 Better the warnings.
+ 0.1.2 Add error reporting.
-
+
public static
- String
+ mixed[]
-
#
-
createJSON ( mixed[] $array )
+
#
+
parseJSON ( String $JSON )
-
Call this function to create a JSON string from a array.
+
Call this function with the JSON in parameter.
-
Call this function to create a JSON string from a array.
+
Call this function with the JSON in parameter.
Parameters
- $array
- The array to make a JSON.
+ $JSON
+ The JSON string to parse.
Returns
- String The JSON string.
+ mixed[] The array of the JSON element or null if there is an error.
@@ -217,6 +235,8 @@
Author
Since
0.0.0
+ 0.1.2 Better the warnings.
+ 0.1.2 Add error reporting.
@@ -226,6 +246,16 @@
Since
+
diff --git a/doc/class-ep6.Locales.html b/doc/class-ep6.Locales.html
index 3d4425d..4c1945e 100644
--- a/doc/class-ep6.Locales.html
+++ b/doc/class-ep6.Locales.html
@@ -48,6 +48,9 @@ Classes
Product
ProductAttribute
ProductFilter
+ ProductPrice
+ ProductPriceType
+ ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@ Classes
Traits
@@ -103,6 +107,15 @@ Class Locales
This is the static class for the localization.
+
+
+ep6\Locales
+
+ uses
+ ep6\ErrorReporting
+
+
+
@@ -127,9 +140,9 @@ Class Locales
0.1.0 Add configured used Locale.
Since:
0.1.1 Now the object is echoable.
- Example:
- examples\handleWithLocales.php Handle with locales.
- Located at shopobjects/Locales.class.php
+ Since:
+ 0.1.2 Add error reporting.
+ Located at shopobjects/Locales.class.php
@@ -137,29 +150,33 @@ Class Locales
Methods summary
-
+
public static
-
+ The
-
#
-
resetValues ( )
+
#
+
getDefault ( )
-
This function resets all locales values.
+
Gets the default localization.
-
This function resets all locales values.
+
Gets the default localization.
+
Returns
+
+ The default localization of the shop.
+
Author
@@ -169,17 +186,15 @@
Author
Since
0.0.0
- 0.1.0 Reset used Locale.
-
-
Api
-
+ 0.1.0 Use a reload function.
+ 0.1.2 Add error reporting.
-
+
public static
@@ -190,21 +205,21 @@ Api
-
#
-
getDefault ( )
+
#
+
getItems ( )
-
Gets the default localization.
+
Gets the activated localizations.
-
Gets the default localization.
+
Gets the activated localizations.
Returns
- The default localization of the shop.
+ The possible localizations of the shop.
@@ -216,16 +231,14 @@
Since
0.0.0
0.1.0 Use a reload function.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public static
@@ -236,21 +249,21 @@ Api
-
#
-
getItems ( )
+
#
+
getLocale ( )
-
Gets the activated localizations.
+
Gets the configured Locale.
-
Gets the activated localizations.
+
Gets the configured Locale.
Returns
- The possible localizations of the shop.
+ The configured Locale which is used in REST calls.
@@ -260,44 +273,37 @@
Author
Since
- 0.0.0
- 0.1.0 Use a reload function.
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
-
+
public static
- The
+
-
#
-
getLocale ( )
+
#
+
resetValues ( )
-
Gets the configured Locale.
+
This function resets all locales values.
-
Gets the configured Locale.
+
This function resets all locales values.
-
Returns
-
- The configured Locale which is used in REST calls.
-
Author
@@ -306,10 +312,9 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.0.0
+ 0.1.0 Reset used Locale.
+ 0.1.2 Add error reporting.
@@ -328,7 +333,7 @@
Api
#
-
setLocale ( String $locale )
+
setLocale ( String $locale )
Sets the configured Locale.
@@ -357,9 +362,7 @@
Author
Since
0.1.0
-
-
Api
-
+ 0.1.2 Add error reporting.
@@ -369,6 +372,16 @@
Api
+
@@ -382,7 +395,7 @@ Api
String
- RESTPATH
+ RESTPATH
@@ -144,7 +148,7 @@ Class LogLevel
String
- NOTIFICATION
+ NOTIFICATION
@@ -168,7 +172,7 @@
Class LogLevel
String
- WARNING
+ WARNING
@@ -192,7 +196,7 @@
Class LogLevel
String
- ERROR
+ ERROR
@@ -216,7 +220,7 @@
Class LogLevel
String
- NONE
+ NONE
@@ -240,7 +244,7 @@
Class LogLevel
String
- FORCE
+ FORCE
@@ -144,7 +150,7 @@ Class LogOutput
String
- SCREEN
+ SCREEN
@@ -163,6 +169,30 @@
Class LogOutput
+
+
+ String
+
+
+ FILE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/class-ep6.Logger.html b/doc/class-ep6.Logger.html
index 44e6126..e9fc7dc 100644
--- a/doc/class-ep6.Logger.html
+++ b/doc/class-ep6.Logger.html
@@ -48,6 +48,9 @@ Classes
Product
ProductAttribute
ProductFilter
+ ProductPrice
+ ProductPriceType
+ ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@ Classes
Traits
@@ -123,9 +127,9 @@ Class Logger
0.0.0
Since:
0.0.1 Use LogLevel and LogOutput
- Example:
- examples\logMessages.php Use the Logger to log messages.
- Located at util/Logger.class.php
+ Since:
+ 0.1.2 Add functionality to print into files.
+ Located at util/Logger.class.php
@@ -133,35 +137,36 @@ Class Logger
Methods summary
-
+
- public static
+ public
-
+ String
-
#
-
notify ( String $message )
+
#
+
__toString ( )
-
This function prints notifications.
+
Prints the Logger object as a string.
-
This function prints notifications.
+
Prints the Logger object as a string.
+
This function returns the setted values of the Logger object.
-
Parameters
-
- $message
- The message to print.
-
+
Returns
+
+ String The Logger as a string.
+
+
Author
@@ -169,18 +174,14 @@
Author
Since
- 0.0.0
- 0.0.1 Use LogLevel
-
-
Api
-
+ 0.1.1
-
+
public static
@@ -191,15 +192,15 @@ Api
-
#
-
warning ( String $message )
+
#
+
error ( String $message )
-
This function prints warnings.
+
This function prints errors.
-
This function prints warnings.
+
This function prints errors.
Parameters
@@ -218,16 +219,14 @@
Since
0.0.0
0.0.1 Use LogLevel
-
-
Api
-
+ 0.1.2 Call the printMessage function on another way.
-
+
public static
@@ -238,15 +237,15 @@ Api
-
#
-
error ( String $message )
+
#
+
force ( String $message )
-
This function prints errors.
+
This function definitly prints the message.
-
This function prints errors.
+
This function definitly prints the message.
Parameters
@@ -265,16 +264,14 @@
Since
0.0.0
0.0.1 Use LogLevel
-
-
Api
-
+ 0.1.2 Call the printMessage function on another way.
-
+
public static
@@ -285,15 +282,15 @@ Api
-
#
-
force ( String $message )
+
#
+
notify ( String $message )
-
This function definitly prints the message.
+
This function prints notifications.
-
This function definitly prints the message.
+
This function prints notifications.
Parameters
@@ -312,9 +309,7 @@
Since
0.0.0
0.0.1 Use LogLevel
-
-
Api
-
+ 0.1.2 Call the printMessage function on another way.
@@ -333,7 +328,7 @@
Api
#
-
setLogLevel ( ep6\LogLevel
$level )
+
setLogLevel ( ep6\LogLevel
$level )
This function sets the log level.
@@ -360,9 +355,7 @@
Since
0.0.0
0.0.1 Use LogLevel enum.
0.0.3 Set php error reporting automatically in developing systems.
-
-
Api
-
+ 0.1.2 epages-rest-php log level will not take effect in PHP log level.
@@ -381,7 +374,7 @@
Api
-
+
- public
+ public static
- String
+
-
#
-
__toString ( )
+
#
+
setOutputFile ( String $filename )
-
Prints the Logger object as a string.
+
This function sets the output file.
-
Prints the Logger object as a string.
+
This function sets the output file.
-
This function returns the setted values of the Logger object.
+
+
Parameters
+
+ $filename
+ The filename of the new output file with path on the server.
+
-
Returns
+
Author
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+ public static
+
+
+
+
+
+
+
+
#
+
warning ( String $message )
+
+
+
This function prints warnings.
+
+
+
@@ -151,20 +160,20 @@
Direct known subclasses
#
-
__construct ( mixed[] $priceParameter )
+
__construct ( mixed[] $priceParameter )
-
This is the constructor of the price object.
+
This is the constructor of the Price object.
-
This is the constructor of the price object.
+
This is the constructor of the Price object.
Parameters
$priceParameter
- $priceParamter The price parameter.
+ $priceParamter The price parameter to create the Price object.
@@ -179,40 +188,39 @@
Since
0.1.0 Add functionality to construct.
0.1.1 Parse formatted attribute.
-
Api
-
-
-
+
public
- float
+ String
-
#
-
getAmount ( )
+
#
+
__toString ( )
-
Returns the amount.
+
Prints the Price object as a string.
-
Returns the amount.
+
Prints the Price object as a string.
+
+
This function returns the setted attributes of the Price object.
Returns
- float Gets the amount.
+ String The Price as a string.
@@ -222,42 +230,39 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.1.1
-
+
public
- String
+ float
-
#
-
getTaxType ( )
+
#
+
getAmount ( )
-
Returns the tax type.
+
Returns the amount.
-
Returns the tax type.
+
Returns the amount.
Returns
- String Gets the tax type.
+ float Gets the amount.
@@ -269,9 +274,6 @@
Since
0.1.0
-
Api
-
-
@@ -289,7 +291,7 @@
Api
#
-
getCurrency ( )
+
getCurrency ( )
Returns the currency.
@@ -314,9 +316,6 @@
Since
0.1.0
-
Api
-
-
@@ -334,7 +333,7 @@
Api
-
+
public
@@ -378,23 +377,21 @@ Api
-
#
-
__toString ( )
+
#
+
getTaxType ( )
-
Prints the Price object as a string.
+
Returns the tax type.
-
Prints the Price object as a string.
-
-
This function returns the setted attributes of the Price object.
+
Returns the tax type.
Returns
- String The Price as a string.
+ String Gets the tax type.
@@ -404,7 +401,7 @@
Author
Since
- 0.1.1
+ 0.1.0
@@ -451,77 +448,77 @@
Since
-
+
protected
String|null
- $taxType
+ $currency
-
The tax type of the price.
+
The curreny of the price.
-
The tax type of the price.
+
The curreny of the price.
-
+
protected
String|null
- $currency
+ $formatted
-
The curreny of the price.
+
The formatted price with currency.
-
The curreny of the price.
+
The formatted price with currency.
-
+
protected
String|null
- $formatted
+ $taxType
-
The formatted price with currency.
+
The tax type of the price.
-
The formatted price with currency.
+
The tax type of the price.
diff --git a/doc/class-ep6.PriceWithQuantity.html b/doc/class-ep6.PriceWithQuantity.html
index 4d37e80..b315f8f 100644
--- a/doc/class-ep6.PriceWithQuantity.html
+++ b/doc/class-ep6.PriceWithQuantity.html
@@ -48,6 +48,9 @@ Classes
Product
ProductAttribute
ProductFilter
+ ProductPrice
+ ProductPriceType
+ ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@ Classes
Traits
@@ -100,7 +104,7 @@ Class PriceWithQuantity
-
This is the class for prices which has a quantity.
+
This is the class for Prices which has a Quantity.
@@ -119,6 +123,10 @@ Class PriceWithQuantity
+
@@ -159,14 +167,14 @@ Class PriceWithQuantity
#
-
__construct ( mixed[] $priceParameter , mixed[] $quantityParameter )
+
__construct ( mixed[] $priceParameter , mixed[] $quantityParameter )
-
This is the constructor of the price with quantity object.
+
This is the constructor of the Price With Quantity object.
-
This is the constructor of the price with quantity object.
+
This is the constructor of the Price With Quantity object.
Parameters
@@ -198,7 +206,7 @@
Overrides
-
+
public
@@ -209,21 +217,23 @@ Overrides
-
#
-
getQuantityAmount ( )
+
#
+
__toString ( )
-
Returns the quantity amount.
+
Prints the Price With Quantity object as a string.
-
Returns the quantity amount.
+
Prints the Price With Quantity object as a string.
+
+
This function returns the setted attributes of the Price With Quantity object.
Returns
- String Gets the quantity amount.
+ String The Price With Quantity as a string.
@@ -233,17 +243,16 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.1.1
+
Overrides
+
-
+
public
@@ -254,26 +263,21 @@ Api
-
#
-
getQuantityUnit ( String $locale ,… )
+
#
+
getQuantityAmount ( )
-
Returns the quantity unit.
+
Returns the quantity amount.
-
Returns the quantity unit.
+
Returns the quantity amount.
-
Parameters
-
- $locale ,…
- The localization.
-
Returns
- String Gets the quantity unit.
+ String Gets the quantity amount.
@@ -284,17 +288,13 @@
Author
Since
0.1.0
- 0.1.1 No locale parameter is needed.
-
-
Api
-
-
+
public
@@ -305,23 +305,26 @@ Api
-
#
-
__toString ( )
+
#
+
getQuantityUnit ( String $locale ,… )
-
Prints the Price with quantity object as a string.
+
Returns the quantity unit.
-
Prints the Price with quantity object as a string.
-
-
This function returns the setted attributes of the Price with quantity object.
+
Returns the quantity unit.
+
Parameters
+
+ $locale ,…
+ The localization.
+
Returns
- String The Price with quantity as a string.
+ String Gets the quantity unit.
@@ -331,11 +334,10 @@
Author
Since
- 0.1.1
+ 0.1.0
+ 0.1.1 No locale parameter is needed.
-
Overrides
-
@@ -364,6 +366,59 @@ Overrides
+
+ Properties summary
+
+
+ protected
+ integer|null
+
+
+
+ $quantityAmount
+
+
+
+
+
The quantity amount.
+
+
+
+
+
+
+
+
+
+ protected
+ String|null
+
+
+
+ $quantityUnit
+
+
+
+
+
+
+
+
+
+
Properties inherited from ep6\Price
diff --git a/doc/class-ep6.PrivacyPolicyInformation.html b/doc/class-ep6.PrivacyPolicyInformation.html
index 13720d6..6961b03 100644
--- a/doc/class-ep6.PrivacyPolicyInformation.html
+++ b/doc/class-ep6.PrivacyPolicyInformation.html
@@ -48,6 +48,9 @@ Classes
Product
ProductAttribute
ProductFilter
+ ProductPrice
+ ProductPriceType
+ ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@ Classes
Traits
@@ -100,7 +104,7 @@ Class PrivacyPolicyInformation
-
The privacy policy information.
+
The Privacy Policy Information.
@@ -108,7 +112,9 @@ Class PrivacyPolicyInformation
ep6\PrivacyPolicyInformation
uses
- ep6\InformationTrait
+ ep6\Information ,
+
+ ep6\ErrorReporting
@@ -134,73 +140,38 @@ Class PrivacyPolicyInformation
0.1.1 This object is now echoable.
Since:
0.1.1 Unstatic every attributes.
+ Since:
+ 0.1.2 Add error reporting.
See:
InformationTrait This trait has all information needed objects.
- Located at shopobjects/information/PrivacyPolicyInformation.class.php
+ See:
+ ErrorReporting This trait gives the error reporting functionality.
+ Located at shopobjects/information/PrivacyPolicyInformation.class.php
-
- Methods summary
-
-
-
- public
-
- String
-
-
-
-
-
-
#
-
__toString ( )
-
-
-
Prints the Information object as a string.
-
-
-
-
Prints the Information object as a string.
-
-
This function returns the setted values of the Information object.
-
-
Returns
-
- String The Information as a string.
-
-
-
-
Author
-
-
Since
-
- 0.1.1
-
-
-
-
-
+
-
-
@@ -217,7 +188,7 @@ Since
String
- RESTPATH
+ RESTPATH
@@ -159,14 +176,14 @@ Class Product
#
-
__construct ( mixed[] $productParameter )
+
__construct ( mixed[] $productParameter )
-
This is the constructor of the product.
+
This is the constructor of the Product.
-
This is the constructor of the product.
+
This is the constructor of the Product.
Parameters
@@ -187,16 +204,15 @@
Since
0.1.0 Add price information.
0.1.0 Use a default Locale.
0.1.1 Dont use the locale parameter in calling the product price attribute.
-
-
Api
-
+ 0.1.2 Exclude the REST request to the load() function.
+ 0.1.2 Add error reporting.
-
+
public
@@ -207,21 +223,23 @@ Api
-
#
-
getID ( )
+
#
+
__toString ( )
-
Returns the product id.
+
Prints the Product object as a string.
-
Returns the product id.
+
Prints the Product object as a string.
+
+
This function returns the setted values of the Product object.
Returns
- String The product id.
+ String The Product as a string.
@@ -231,42 +249,44 @@
Author
Since
- 0.0.0
-
-
Api
-
+ 0.1.1
-
+
public
- String
+ float|null
-
#
-
getName ( )
+
#
+
decreaseStockLevel ( float $step = 1.0 )
-
Returns the name in a specific localization.
+
Decreases the stock level.
-
Returns the name in a specific localization.
+
Decreases the stock level.
+
Parameters
+
+ $step
+ The value the stock level should be decreased, default value is 1.
+
Returns
- String The name.
+ float|null The new stock level of the product.
@@ -276,44 +296,42 @@
Author
Since
- 0.0.0
- 0.1.0 Use a default Locale.
- 0.1.1 Fix to call function without locale parameter.
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
-
+
public
- String
+ boolean
-
#
-
getShortDescription ( )
+
#
+
delete ( )
-
Returns the short description in a specific localization.
+
Deletes itself.
-
Returns the short description in a specific localization.
+
Deletes itself.
+
+
Dont use this function. To delete a product its better to use $shop->deleteProduct($product).
Returns
- String The short description.
+ boolean True if the deletion was successful, false if not.
@@ -323,44 +341,46 @@
Author
Since
- 0.0.0
- 0.1.0 Use a default Locale.
- 0.1.1 Fix to call function without locale parameter.
-
-
Api
-
+ 0.1.0
+ 0.1.1 Unstatic every attributes.
+ 0.1.2 Add error reporting.
-
+
public
- String
+ ProductAttributes|null
-
#
-
getDescription ( )
+
#
+
getAttribute ( integer $key )
-
Returns the description in a specific localization.
+
Returns the product attributes.
-
Returns the description in a specific localization.
+
Returns the product attributes.
+
Parameters
+
+ $key
+ The number of product attribute to get.
+
Returns
- String The description.
+ ProductAttributes|null Gets the required product attributes.
@@ -370,44 +390,40 @@
Author
Since
- 0.0.0
- 0.1.0 Use a default Locale.
- 0.1.1 Fix to call function without locale parameter.
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+ ProductAttributes[]
-
#
-
isForSale ( )
+
#
+
getAttributes ( )
-
Returns true if it is for sale.
+
Returns the product attributes.
-
Returns true if it is for sale.
+
Returns the product attributes.
Returns
- boolean True if it is for sale, false if not.
+ ProductAttributes[] Gets the product attributes in an array.
@@ -417,42 +433,41 @@
Author
Since
- 0.0.0
-
-
Api
-
+ 0.1.0
+ 0.1.1 Unstatic every attributes.
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+ String
-
#
-
isSpecialOffer ( )
+
#
+
getAvailibilityText ( )
-
Returns true if it is a special offer.
+
Returns the availibility text.
-
Returns true if it is a special offer.
+
Returns the availibility text.
Returns
- boolean True if it is a special offer, false if not.
+ String The availibility text.
@@ -463,41 +478,41 @@
Author
Since
0.0.0
-
-
Api
-
+ 0.1.0 Use a default Locale.
+ 0.1.1 Fix to call function without locale parameter.
+ 0.1.2 Add error reporting.
-
+
public
- String
+ ep6\ProductPrice
-
#
-
getAvailibilityText ( )
+
#
+
getBasePrice ( )
-
Returns the availibility text in a specific localization.
+
Returns the base price.
-
Returns the availibility text in a specific localization.
+
Returns the base price.
Returns
@@ -507,44 +522,40 @@
Author
Since
- 0.0.0
- 0.1.0 Use a default Locale.
- 0.1.1 Fix to call function without locale parameter.
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
-
+
public
- ep6\Image
+ ep6\ProductPrice
-
#
-
getSmallImage ( )
+
#
+
getDepositPrice ( )
-
Returns the small image.
+
Returns the deposit price.
-
Returns the small image.
+
Returns the deposit price.
Returns
@@ -554,42 +565,40 @@
Author
Since
- 0.0.0
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
-
+
public
- ep6\Image
+ String
-
#
-
getMediumImage ( )
+
#
+
getDescription ( )
-
Returns the medium image.
+
Returns the description.
-
Returns the medium image.
+
Returns the description.
Returns
-
ep6\Image
The medium image.
+ String
The description.
@@ -600,41 +609,41 @@
Author
Since
0.0.0
-
-
Api
-
+ 0.1.0 Use a default Locale.
+ 0.1.1 Fix to call function without locale parameter.
+ 0.1.2 Add error reporting.
-
+
public
- ep6\Image
+ String
-
#
-
getLargeImage ( )
+
#
+
getEAN ( )
-
Returns the large image.
+
Returns the EAN.
-
Returns the large image.
+
Returns the EAN.
Returns
-
ep6\Image
The large image.
+ String
Gets the EAN.
@@ -644,42 +653,39 @@
Author
Since
- 0.0.0
-
-
Api
-
+ 0.1.2
-
+
public
- ep6\Image
+ ep6\ProductPrice
-
#
-
getHotDealImage ( )
+
#
+
getEcoParticipationPrice ( )
-
Returns the hot deal image.
+
Returns the eco participation price.
-
Returns the hot deal image.
+
Returns the eco participation price.
Returns
@@ -689,42 +695,40 @@
Author
Since
- 0.0.0
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
-
+
public
- ep6\PriceWithQuantity
+ String
-
#
-
getPrice ( )
+
#
+
getEnergyLabelsString ( )
-
Returns the price with quantity.
+
Returns the energy labels string.
-
Returns the price with quantity.
+
Returns the energy labels string.
Returns
@@ -734,42 +738,39 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.1.2
-
+
public
- ep6\Price
+ String
-
#
-
getDepositPrice ( )
+
#
+
getEssentialFeatures ( )
-
Returns the deposit price.
+
Returns the essential features.
-
Returns the deposit price.
+
Returns the essential features.
Returns
-
ep6\Price
Gets the deposit price.
+ String
Gets the essential features.
@@ -779,42 +780,39 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.1.2
-
+
public
- ep6\Price
+ ep6\Image
-
#
-
getEcoParticipationPrice ( )
+
#
+
getHotDealImage ( )
-
Returns the eco participation price.
+
Returns the hot deal image.
-
Returns the eco participation price.
+
Returns the hot deal image.
Returns
@@ -824,42 +822,40 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.0.0
+ 0.1.2 Add error reporting.
-
+
public
- ep6\Price
+ String
-
#
-
getWithDepositPrice ( )
+
#
+
getID ( )
-
Returns the with deposit price.
+
Returns the product id.
-
Returns the with deposit price.
+
Returns the product id.
Returns
-
ep6\Price
Gets the with deposit price.
+ String
The product id.
@@ -869,42 +865,40 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.0.0
+ 0.1.2 Add error reporting.
-
+
public
- ep6\Price
+ ep6\Image
-
#
-
getManufactorPrice ( )
+
#
+
getLargeImage ( )
-
Returns the manufactor price.
+
Returns the large image.
-
Returns the manufactor price.
+
Returns the large image.
Returns
@@ -914,42 +908,40 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.0.0
+ 0.1.2 Add error reporting.
-
+
public
- ep6\Price
+ String
-
#
-
getBasePrice ( )
+
#
+
getManufacturer ( )
-
Returns the base price.
+
Returns the name of the manufacturer.
-
Returns the base price.
+
Returns the name of the manufacturer.
Returns
-
ep6\Price
Gets the base price.
+ String
Gets the name of the manufacturer.
@@ -959,42 +951,39 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.1.2
-
+
public
- ep6\ProductSlideshow
+ ep6\ProductPrice
-
#
-
getSlideshow ( )
+
#
+
getManufacturerPrice ( )
-
Returns the slideshow.
+
Returns the manufacturer price.
-
Returns the slideshow.
+
Returns the manufacturer price.
Returns
@@ -1005,42 +994,39 @@
Author
Since
0.1.0
- 0.1.1 Slideshows are not reloadable since now.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- ProductAttributes[]
+ ep6\Image
-
#
-
getAttributes ( )
+
#
+
getMediumImage ( )
-
Returns the product attributes.
+
Returns the medium image.
-
Returns the product attributes.
+
Returns the medium image.
Returns
- ProductAttributes[]
Gets the product attributes in an array.
+
ep6\Image
The medium image.
@@ -1050,48 +1036,40 @@
Author
Since
- 0.1.0
- 0.1.1 Unstatic every attributes.
-
-
Api
-
+ 0.0.0
+ 0.1.2 Add error reporting.
-
+
public
- ProductAttributes|null
+ String
-
#
-
getAttribute ( integer $key )
+
#
+
getName ( )
-
Returns the product attributes.
+
Returns the name.
-
Returns the product attributes.
+
Returns the name.
-
Parameters
-
- $key
- The number of product attribute to get.
-
Returns
- ProductAttributes|null Gets the required product attributes.
+ String The name.
@@ -1101,42 +1079,84 @@
Author
Since
- 0.1.0
+ 0.0.0
+ 0.1.0 Use a default Locale.
+ 0.1.1 Fix to call function without locale parameter.
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+ public
+
+ integer
+
+
+
+
+
+
#
+
getNumberOfSearchKeywords ( )
+
+
+
Returns the amount of search keywords.
+
+
+
+
Returns the amount of search keywords.
+
+
+
+
Returns
+
+ integer Gets the number of search keywords.
+
+
+
+
Author
+
-
Api
+
Since
+ 0.1.2
-
+
public
- float|null
+ ep6\ProductPriceWithQuantity
-
#
-
getStockLevel ( )
+
#
+
getPrice ( )
-
Returns the stock level.
+
Returns the product price with quantity.
-
Returns the stock level.
+
Returns the product price with quantity.
Returns
@@ -1147,47 +1167,86 @@
Author
Since
0.1.0
- 0.1.1 Unstatic every attributes.
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+ public
+
+ String
+
+
+
+
+
+
#
+
getProductNumber ( )
+
+
+
Returns the product number.
+
+
+
+
Returns the product number.
+
+
+
+
Returns
+
+ String Gets the product number.
-
Api
+
+
+
Author
+
+
Since
+ 0.1.2
-
+
public
- float|null
+ String
-
#
-
increaseStockLevel ( float $step = 1.0 )
+
#
+
getSearchKeyword ( integer $number )
-
Increases the stock level.
+
Returns the search keyword.
-
Increases the stock level.
+
Returns the search keyword.
Parameters
- $step
- The value the stock level should be increased, default value is 1.
+ $number
+ The number of the search keyword which is required.
Returns
- float|null The new stock level of the product.
+ String Gets a specific search keyword,, starting with 1.
@@ -1197,47 +1256,84 @@
Author
Since
- 0.1.0
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+ String
+
+
+
+
+
+
#
+
getShortDescription ( )
+
+
+
Returns the short description.
+
+
+
+
Returns the short description.
+
+
+
+
Returns
+
+ String The short description.
+
+
+
+
Author
+
-
Api
+
Since
+ 0.0.0
+ 0.1.0 Use a default Locale.
+ 0.1.1 Fix to call function without locale parameter.
+ 0.1.2 Add error reporting.
-
+
public
- float|null
+ ep6\ProductSlideshow
-
#
-
decreaseStockLevel ( float $step = 1.0 )
+
#
+
getSlideshow ( )
-
Decreases the stock level.
+
Returns the slideshow.
-
Decreases the stock level.
+
Returns the slideshow.
-
Parameters
-
- $step
- The value the stock level should be decreased, default value is 1.
-
Returns
@@ -1248,43 +1344,83 @@
Author
Since
0.1.0
+ 0.1.1 Slideshows are not reloadable since now.
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+ public
+
+ ep6\Image
+
+
+
+
+
+
#
+
getSmallImage ( )
+
+
+
Returns the small image.
+
+
+
+
Returns the small image.
+
+
+
+
Returns
+
+
+
+
Author
+
-
Api
+
Since
+ 0.0.0
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+ float|null
-
#
-
delete ( )
+
#
+
getStockLevel ( )
-
Deletes itself.
+
Returns the stock level.
-
Deletes itself.
-
-
Dont use this function. To delete a product its better to use $shop->deleteProduct($product).
+
Returns the stock level.
Returns
- boolean True if the deletion was successful, false if not.
+ float|null The stock level of the product.
@@ -1296,13 +1432,14 @@
Since
0.1.0
0.1.1 Unstatic every attributes.
+ 0.1.2 Add error reporting.
-
+
public
@@ -1313,23 +1450,21 @@ Since
-
#
-
__toString ( )
+
#
+
getUPC ( )
-
Prints the Product object as a string.
+
Returns the UPC.
-
Prints the Product object as a string.
-
-
This function returns the setted values of the Product object.
+
Returns the UPC.
Returns
- String The Product as a string.
+ String Gets the UPC.
@@ -1339,16 +1474,975 @@
Author
Since
- 0.1.1
+ 0.1.2
-
+
+
+
+ public
+
+ ep6\ProductPrice
+
+
+
+
+
+
#
+
getWithDepositPrice ( )
+
+
+
Returns the with deposit price.
+
+
+
+
Returns the with deposit price.
+
+
+
+
Returns
+
+
Author
+
+
Since
+
+ 0.1.0
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+ public
+
+ float|null
+
+
+
+
+
+
#
+
increaseStockLevel ( float $step = 1.0 )
+
+
+
Increases the stock level.
+
+
+
+
Increases the stock level.
+
+
+
Parameters
+
+ $step
+ The value the stock level should be increased, default value is 1.
+
+
+
Returns
+
+ float|null The new stock level of the product.
+
+
+
+
Author
+
+
Since
+
+ 0.1.0
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+ public
+
+ boolean
+
+
+
+
+
+
#
+
isForSale ( )
+
+
+
Returns true if it is for sale.
+
+
+
+
Returns true if it is for sale.
+
+
+
+
Returns
+
+ boolean True if it is for sale, false if not.
+
+
+
+
Author
+
+
Since
+
+ 0.0.0
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+ public
+
+ boolean
+
+
+
+
+
+
#
+
isSpecialOffer ( )
+
+
+
Returns true if it is a special offer.
+
+
+
+
Returns true if it is a special offer.
+
+
+
+
Returns
+
+ boolean True if it is a special offer, false if not.
+
+
+
+
Author
+
+
Since
+
+ 0.0.0
+ 0.1.2 Add error reporting.
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setDescription ( String $description )
+
+
+
Sets the description of the product.
+
+
+
+
Sets the description of the product.
+
+
+
Parameters
+
+ $description
+ The new description.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setEAN ( String $ean )
+
+
+
Sets the EAN of the product.
+
+
+
+
Sets the EAN of the product.
+
+
+
Parameters
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setEnergyLabelsString ( String $energyLabelsString )
+
+
+
Sets the energy labels string of the product.
+
+
+
+
Sets the energy labels string of the product.
+
+
+
Parameters
+
+ $energyLabelsString
+ The new energy labels string.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setEssentialFeatures ( String $essentialFeatures )
+
+
+
Sets the essential features of the product.
+
+
+
+
Sets the essential features of the product.
+
+
+
Parameters
+
+ $essentialFeatures
+ The new essential features.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setManufacturer ( String $manufacturer )
+
+
+
Sets the manufacturer of the product.
+
+
+
+
Sets the manufacturer of the product.
+
+
+
Parameters
+
+ $manufacturer
+ The new manufacturer.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setName ( String $name )
+
+
+
Sets the name of the product.
+
+
+
+
Sets the name of the product.
+
+
+
Parameters
+
+ $name
+ The new name.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setNumber ( String $number )
+
+
+
Sets the product number of the product.
+
+
+
+
Sets the product number of the product.
+
+
+
Parameters
+
+ $number
+ The new product number.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setSearchKeywords ( String $searchKeywords )
+
+
+
Sets the search keywords of the product.
+
+
+
+
Sets the search keywords of the product.
+
+
+
Parameters
+
+ $searchKeywords
+ The new $search keywords.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setShortDescription ( String $shortDescription )
+
+
+
Sets the short description of the product.
+
+
+
+
Sets the short description of the product.
+
+
+
Parameters
+
+ $shortDescription
+ The new short description.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setUPC ( String $upc )
+
+
+
Sets the UPC of the product.
+
+
+
+
Sets the UPC of the product.
+
+
+
Parameters
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetDescription ( )
+
+
+
Deletes the description value of the product.
+
+
+
+
Deletes the description value of the product.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetEAN ( )
+
+
+
Deletes the EAN value of the product.
+
+
+
+
Deletes the EAN value of the product.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetEnergyLabelsString ( )
+
+
+
Deletes the energy labels string value of the product.
+
+
+
+
Deletes the energy labels string value of the product.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetEssentialFeatures ( )
+
+
+
Deletes the essential features value of the product.
+
+
+
+
Deletes the essential features value of the product.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetManufacturer ( )
+
+
+
Deletes the manufacturer value of the product.
+
+
+
+
Deletes the manufacturer value of the product.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetName ( )
+
+
+
Deletes the name value of the product.
+
+
+
+
Deletes the name value of the product.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetSearchKeywords ( )
+
+
+
Deletes the search keywords of the product.
+
+
+
+
Deletes the search keywords of the product.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetShortDescription ( )
+
+
+
Deletes the short description value of the product.
+
+
+
+
Deletes the short description value of the product.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetUPC ( )
+
+
+
Deletes the UPC value of the product.
+
+
+
+
Deletes the UPC value of the product.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+
@@ -1362,7 +2456,7 @@ Since
String
- RESTPATH
+ RESTPATH
-
+
public
- String|null
+ String
-
#
-
getInternName ( )
+
#
+
__toString ( )
-
Returns the intern name of the attribute.
+
Prints the Product attribute object as a string.
-
Returns the intern name of the attribute.
+
Prints the Product attribute object as a string.
+
+
This function returns the setted values of the Product attribute object.
Returns
- String|null The intern name of the attribute.
+ String The Product attribute as a string.
@@ -214,17 +215,14 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.1.1
-
+
public
@@ -235,21 +233,21 @@ Api
-
#
-
getName ( )
+
#
+
getInternName ( )
-
Returns the name of the attribute.
+
Returns the intern name of the attribute.
-
Returns the name of the attribute.
+
Returns the intern name of the attribute.
Returns
- String|null The name of the attribute.
+ String|null The intern name of the attribute.
@@ -261,40 +259,37 @@
Since
0.1.0
-
Api
-
-
-
+
public
- boolean
+ String|null
-
#
-
isOneValue ( )
+
#
+
getName ( )
-
Returns whether the attribute can one has one value.
+
Returns the name of the attribute.
-
Returns whether the attribute can one has one value.
+
Returns the name of the attribute.
Returns
- boolean True, if the attribute can only have one value.
+ String|null The name of the attribute.
@@ -306,9 +301,6 @@
Since
0.1.0
-
Api
-
-
@@ -326,7 +318,7 @@
Api
#
-
getType ( )
+
getType ( )
Returns the type of the attribute value.
@@ -351,9 +343,6 @@
Since
0.1.0
-
Api
-
-
@@ -371,7 +360,7 @@
Api
#
-
getValues ( )
+
getValues ( )
Returns the possible values of this attribute.
@@ -396,42 +385,37 @@
Since
0.1.0
-
Api
-
-
-
+
public
- String
+ boolean
-
#
-
__toString ( )
+
#
+
isOneValue ( )
-
Prints the Product attribute object as a string.
+
Returns whether the attribute can one has one value.
-
Prints the Product attribute object as a string.
-
-
This function returns the setted values of the Product attribute object.
+
Returns whether the attribute can one has one value.
Returns
- String The Product attribute as a string.
+ boolean True, if the attribute can only have one value.
@@ -441,7 +425,7 @@
Author
Since
- 0.1.1
+ 0.1.0
diff --git a/doc/class-ep6.ProductFilter.html b/doc/class-ep6.ProductFilter.html
index 2c91a49..77228a7 100644
--- a/doc/class-ep6.ProductFilter.html
+++ b/doc/class-ep6.ProductFilter.html
@@ -48,6 +48,9 @@
Classes
Product
ProductAttribute
ProductFilter
+
ProductPrice
+
ProductPriceType
+
ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@
Classes
Traits
@@ -103,6 +107,15 @@
Class ProductFilter
This is a product filter class to search products via the REST call "product".
+
+
+ep6\ProductFilter
+
+ uses
+ ep6\ErrorReporting
+
+
+
@@ -125,9 +138,9 @@ Class ProductFilter
0.1.0 Use a default Locale and Currency.
Since:
0.1.1 The object can be echoed now.
- Example:
- examples\createProductFilter.php Create and use the product filter.
- Located at shopobjects/product/ProductFilter.class.php
+ Since:
+ 0.1.2 Add error reporting.
+ Located at shopobjects/product/ProductFilter.class.php
@@ -147,7 +160,7 @@ Class ProductFilter
#
-
__construct ( String[] $productFilterParameter = array () )
+
__construct ( String[] $productFilterParameter = array () )
This is the constructor to prefill the product filter.
@@ -173,99 +186,49 @@
Since
0.0.1
-
Api
-
-
-
+
public
-
+ String
-
#
-
setProductFilter ( String[] $productFilterParameter )
+
#
+
__toString ( )
-
Fill the product filter with a array.
+
Prints the Product attribute object as a string.
-
Fill the product filter with a array.
-
-
-
Parameters
-
- $productFilterParameter
- The values of a product filter.
-
-
-
-
-
Author
-
-
Since
-
- 0.0.1
- 0.1.0 Use a default Locale and Currency.
-
-
Api
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
+ Prints the Product attribute object as a string.
-
-
#
-
printFilter ( )
+
This function returns the setted values of the Product attribute object.
-
-
This function prints the filter in a FORCE message.
-
-
-
This function prints the filter in a FORCE message.
-
Deprecated
+
Returns
- To print the product filter echo the object itself.
+ String The Product attribute as a string.
-
-
Author
Since
- 0.0.0
- 0.1.0 Use a default Locale and Currency.
- 0.1.1 To print the product filter echo the object itself.
+ 0.1.1
@@ -284,7 +247,7 @@
Since
#
-
hashCode ( )
+
hashCode ( )
This function returns the hash code of the object to equals the object.
@@ -309,49 +272,39 @@
Since
0.0.0
0.1.0 Use a default Locale and Currency.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+ String
-
#
-
setLocale ( String $locale )
+
#
+
getCategoryID ( )
-
This function sets the localization.
+
This function gets the category ID string.
-
This function sets the localization.
+
This function gets the category ID string.
-
Deprecated
-
-
-
Parameters
-
- $locale
- The localiazion to filter.
-
Returns
- boolean True if setting the locale works, false if not.
+ String The category ID string of this product filter.
@@ -362,17 +315,15 @@
Author
Since
0.0.0
- 0.1.0 Deprecate because product filter now use shop configured Locale.
-
-
Api
-
+ 0.1.0 Use attribute unstatic.
+ 0.1.2 Add error reporting.
-
+
public
@@ -383,24 +334,21 @@ Api
-
#
-
getLocale ( )
+
#
+
getDirection ( )
-
This function gets the localization.
+
This function gets the direction.
-
This function gets the localization.
+
This function gets the direction.
-
Deprecated
-
-
Returns
- String The localization of this product filter.
+ String The direction of this product filter.
@@ -411,50 +359,40 @@
Author
Since
0.0.0
- 0.1.0 Deprecate because product filter now use shop configured Locale.
-
-
Api
-
+ 0.1.0 Use attribute unstatic.
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+ integer
-
#
-
setCurrency ( String $currency )
+
#
+
getPage ( )
-
This function sets the currency.
+
This function gets the page.
-
This function sets the currency.
+
This function gets the page.
-
Deprecated
-
-
-
Parameters
-
- $currency
- The currency to filter.
-
Returns
- boolean True if setting the currency works, false if not.
+ integer The page number of this product filter.
@@ -465,45 +403,40 @@
Author
Since
0.0.0
- 0.1.0 Deprecate because product filter now use shop configured Currency.
-
-
Api
-
+ 0.1.0 Use attribute unstatic.
+ 0.1.2 Add error reporting.
-
+
public
- String
+ Products[]
-
#
-
getCurrency ( )
+
#
+
getProducts ( )
-
This function gets the currency.
+
This function returns the products by using the product filter.
-
This function gets the currency.
+
This function returns the products by using the product filter.
-
Deprecated
-
-
Returns
- String The currency of this product filter.
+ Products[] Returns an array of products.
@@ -514,47 +447,41 @@
Author
Since
0.0.0
- 0.1.0 Deprecate because product filter now use shop configured Currency.
-
-
Api
-
+ 0.1.0 Use a default Locale.
+ 0.1.1 Unstatic every attributes.
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+ String
-
#
-
setPage ( integer $page )
+
#
+
getQ ( )
-
This function sets the page to show.
+
This function gets the query search string.
-
This function sets the page to show.
+
This function gets the query search string.
-
Parameters
-
- $page
- The page number to filter.
-
Returns
- boolean True if setting the page works, false if not.
+ String The query search string of this product filter.
@@ -566,16 +493,14 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
@@ -586,21 +511,21 @@ Api
-
#
-
getPage ( )
+
#
+
getResultsPerPage ( )
-
This function gets the page.
+
This function gets the results per page.
-
This function gets the page.
+
This function gets the results per page.
Returns
- integer The page number of this product filter.
+ integer The results per page number of this product filter.
@@ -612,46 +537,39 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+ String
-
#
-
setResultsPerPage ( integer $resultsPerPage )
+
#
+
getSort ( )
-
This function sets the results per page to show.
+
This function gets the sort.
-
This function sets the results per page to show.
+
This function gets the sort.
-
Parameters
-
- $resultsPerPage
- The results per page to filter.
-
Returns
- boolean True if setting the results per page works, false if not.
+ String The sort of this product filter.
@@ -663,42 +581,36 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- integer
+
-
#
-
getResultsPerPage ( )
+
#
+
resetFilter ( )
-
This function gets the results per page.
+
This function reset all product IDs from filter.
-
This function gets the results per page.
+
This function reset all product IDs from filter.
-
Returns
-
- integer The results per page number of this product filter.
-
Author
@@ -708,48 +620,37 @@
Author
Since
0.0.0
- 0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.0 Use a default Locale and Currency.
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+
-
#
-
setDirection ( String $direction )
+
#
+
resetIDs ( )
-
This function sets the direction to show.
+
This function reset all product IDs from filter.
-
This function sets the direction to show.
+
This function reset all product IDs from filter.
-
Parameters
-
- $direction
- The direction to filter.
-
-
Returns
-
- boolean True if setting the direction works, false if not.
-
Author
@@ -760,41 +661,44 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- String
+ boolean
-
#
-
getDirection ( )
+
#
+
setCategoryID ( String $categoryID )
-
This function gets the direction.
+
This function sets the category ID to show.
-
This function gets the direction.
+
This function sets the category ID to show.
+
Parameters
+
+ $categoryID
+ The category ID to filter.
+
Returns
- String The direction of this product filter.
+ boolean True if setting the category ID string works, false if not.
@@ -806,16 +710,14 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
@@ -826,26 +728,26 @@ Api
-
#
-
setSort ( String $sort )
+
#
+
setDirection ( String $direction )
-
This function sets the order parameter to show.
+
This function sets the direction to show.
-
This function sets the order parameter to show.
+
This function sets the direction to show.
Parameters
- $sort
- The sort parameter to filter.
+ $direction
+ The direction to filter.
Returns
- boolean True if setting the sort parameter works, false if not.
+ boolean True if setting the direction works, false if not.
@@ -857,41 +759,44 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- String
+ boolean
-
#
-
getSort ( )
+
#
+
setID ( String $productID )
-
This function gets the sort.
+
This function add a product ID from filter.
-
This function gets the sort.
+
This function add a product ID from filter.
+
Parameters
+
+ $productID
+ The product ID to filter.
+
Returns
- String The sort of this product filter.
+ boolean True if setting the product ID string works, false if not.
@@ -903,16 +808,14 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
@@ -923,26 +826,26 @@ Api
-
#
-
setQ ( String $q )
+
#
+
setPage ( integer $page )
-
This function sets the query search string to show.
+
This function sets the page to show.
-
This function sets the query search string to show.
+
This function sets the page to show.
Parameters
- $q
- The query search string to filter.
+ $page
+ The page number to filter.
Returns
- boolean True if setting the query search string works, false if not.
+ boolean True if setting the page works, false if not.
@@ -954,16 +857,14 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
@@ -974,21 +875,21 @@ Api
-
#
-
getQ ( )
+
#
+
setProductFilter ( $productFilterParameter )
-
This function gets the query search string.
+
Fill the product filter with a array.
-
This function gets the query search string.
+
Fill the product filter with a array.
Returns
- String The query search string of this product filter.
+ String The Product attribute as a string.
@@ -998,18 +899,16 @@
Author
Since
- 0.0.0
- 0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.0.1
+ 0.1.0 Use a default Locale and Currency.
+ 0.1.2 Add error reporting.
-
+
public
@@ -1020,26 +919,26 @@ Api
-
#
-
setCategoryID ( String $categoryID )
+
#
+
setQ ( String $q )
-
This function sets the category ID to show.
+
This function sets the query search string to show.
-
This function sets the category ID to show.
+
This function sets the query search string to show.
Parameters
- $categoryID
- The category ID to filter.
+ $q
+ The query search string to filter.
Returns
- boolean True if setting the category ID string works, false if not.
+ boolean True if setting the query search string works, false if not.
@@ -1051,41 +950,44 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- String
+ boolean
-
#
-
getCategoryID ( )
+
#
+
setResultsPerPage ( integer $resultsPerPage )
-
This function gets the category ID string.
+
This function sets the results per page to show.
-
This function gets the category ID string.
+
This function sets the results per page to show.
+
Parameters
+
+ $resultsPerPage
+ The results per page to filter.
+
Returns
- String The category ID string of this product filter.
+ boolean True if setting the results per page works, false if not.
@@ -1097,16 +999,14 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
@@ -1117,26 +1017,26 @@ Api
-
#
-
setID ( String $productID )
+
#
+
setSort ( String $sort )
-
This function add a product ID from filter.
+
This function sets the order parameter to show.
-
This function add a product ID from filter.
+
This function sets the order parameter to show.
Parameters
- $productID
- The product ID to filter.
+ $sort
+ The sort parameter to filter.
Returns
- boolean True if setting the product ID string works, false if not.
+ boolean True if setting the sort parameter works, false if not.
@@ -1148,9 +1048,7 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
@@ -1169,7 +1067,7 @@
Api
#
-
unsetID ( String $productID )
+
unsetID ( String $productID )
This function delete a product ID from filter.
@@ -1199,189 +1097,24 @@
Since
0.0.0
0.1.0 Use attribute unstatic.
-
-
Api
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
#
-
resetIDs ( )
-
-
-
This function reset all product IDs from filter.
-
-
-
-
This function reset all product IDs from filter.
-
-
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Use attribute unstatic.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
-
-
- public
-
-
-
-
-
-
-
-
#
-
resetFilter ( )
-
-
-
This function reset all product IDs from filter.
-
-
-
-
This function reset all product IDs from filter.
-
-
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Use a default Locale and Currency.
-
-
Api
-
-
-
-
-
-
-
-
-
-
- public
-
- Products[]
-
-
-
-
-
-
#
-
getProducts ( )
-
-
-
This function returns the products by using the product filter.
-
-
-
-
This function returns the products by using the product filter.
-
-
-
-
Returns
-
- Products[] Returns an array of products.
-
-
-
-
Author
-
-
Since
-
- 0.0.0
- 0.1.0 Use a default Locale.
- 0.1.1 Unstatic every attributes.
-
-
Api
-
-
-
-
-
-
-
-
-
-
- public
-
- String
-
-
-
-
-
-
#
-
__toString ( )
-
-
-
Prints the Product attribute object as a string.
-
-
-
-
Prints the Product attribute object as a string.
-
-
This function returns the setted values of the Product attribute object.
-
-
-
-
Returns
-
- String The Product attribute as a string.
-
-
-
-
Author
-
-
Since
-
- 0.1.1
-
+
-
-
+
@@ -1390,8 +1123,6 @@ Since
-
-
Constants summary
@@ -1399,7 +1130,7 @@ Since
String
- RESTPATH
+ RESTPATH
diff --git a/doc/class-ep6.ProductPrice.html b/doc/class-ep6.ProductPrice.html
new file mode 100644
index 0000000..07dadf6
--- /dev/null
+++ b/doc/class-ep6.ProductPrice.html
@@ -0,0 +1,391 @@
+
+
+
+
+
+
Class ep6\ProductPrice
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class ProductPrice
+
+
+
+
This is the class for prices which belongs to a product.
+
+
+
+
+ ep6\Price
+
+
+
+
+
+
+ep6\ProductPrice
+
+ uses
+ ep6\ErrorReporting
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods summary
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
__construct ( String $productID , ep6\ProductPriceType
$type , mixed[] $priceParameter )
+
+
+
This is the constructor of the Product Price object.
+
+
+
+
This is the constructor of the Product Price object.
+
+
+
Parameters
+
+ $productID
+ The product ID to which this price belongs.
+ $type
+ The type of the product price.
+ $priceParameter
+ The price parameter.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
Overrides
+
+
+
+
+
+
+
+
+ public
+
+ String
+
+
+
+
+
+
#
+
__toString ( )
+
+
+
Prints the Product Price object as a string.
+
+
+
+
Prints the Product Price object as a string.
+
+
This function returns the setted attributes of the Product Price object.
+
+
+
+
Returns
+
+ String The Product Price as a string.
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
Overrides
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setAmount ( float $amount )
+
+
+
Sets an the amount of a product price.
+
+
+
+
Sets an the amount of a product price.
+
+
+
Parameters
+
+ $amount
+ The new amount of price.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetAmount ( )
+
+
+
Unsets the amount of a product price.
+
+
+
+
Unsets the amount of a product price.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/class-ep6.ProductPriceType.html b/doc/class-ep6.ProductPriceType.html
new file mode 100644
index 0000000..1c4c19a
--- /dev/null
+++ b/doc/class-ep6.ProductPriceType.html
@@ -0,0 +1,311 @@
+
+
+
+
+
+
Class ep6\ProductPriceType
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class ProductPriceType
+
+
+
+
The Product Price Types 'enum'.
+
+
This are the possible Product Prices Types.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Constants summary
+
+
+ String
+
+
+ PRICE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ String
+
+
+ DEPOSIT
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ String
+
+
+ ECOPARTICIPATION
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#
+
"ecoParticipationPrice"
+
+
+
+
+
+ String
+
+
+ WITHDEPOSITS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#
+
"priceWithDeposits"
+
+
+
+
+
+ String
+
+
+ MANUFACTURER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#
+
"manufacturerPrice"
+
+
+
+
+
+ String
+
+
+ BASE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/class-ep6.ProductPriceWithQuantity.html b/doc/class-ep6.ProductPriceWithQuantity.html
new file mode 100644
index 0000000..d3dba50
--- /dev/null
+++ b/doc/class-ep6.ProductPriceWithQuantity.html
@@ -0,0 +1,424 @@
+
+
+
+
+
+
Class ep6\ProductPriceWithQuantity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class ProductPriceWithQuantity
+
+
+
+
This is the class for prices with quantity which belongs to a product.
+
+
+
+
+ ep6\Price
+
+
+
+
+
+
+ ep6\PriceWithQuantity
+
+
+
+
+
+
+ep6\ProductPriceWithQuantity
+
+ uses
+ ep6\ErrorReporting
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods summary
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
__construct ( String $productID , mixed[] $type , mixed[] $priceParameter , $quantityParameter )
+
+
+
This is the constructor of the product price with quantity object.
+
+
+
+
This is the constructor of the product price with quantity object.
+
+
+
Parameters
+
+ $productID
+ The product ID to which this price belongs.
+ $type
+ $priceParameter The price parameter.
+ $priceParameter
+ $quantityParameter The quantity parameter.
+ $quantityParameter
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
Api
+
+
+
+
Overrides
+
+
+
+
+
+
+
+
+ public
+
+ String
+
+
+
+
+
+
#
+
__toString ( )
+
+
+
Prints the Product Price With Quantity object as a string.
+
+
+
+
Prints the Product Price With Quantity object as a string.
+
+
This function returns the setted attributes of the Product Price With Quantity object.
+
+
+
+
Returns
+
+ String The Product Price With Quantity as a string.
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
Overrides
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
setAmount ( float $amount )
+
+
+
Sets an the amount of a Product Price With Quantity.
+
+
+
+
Sets an the amount of a Product Price With Quantity.
+
+
+
Parameters
+
+ $amount
+ The new amount of price.
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
Api
+
+
+
+
+
+
+
+
+
+
+ public
+
+
+
+
+
+
+
+
#
+
unsetAmount ( )
+
+
+
Unsets the amount of a Product Price With Quantity.
+
+
+
+
Unsets the amount of a Product Price With Quantity.
+
+
+
+
+
+
Author
+
+
Since
+
+ 0.1.2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/class-ep6.ProductSlideshow.html b/doc/class-ep6.ProductSlideshow.html
index 4c4f6f6..bf7fb55 100644
--- a/doc/class-ep6.ProductSlideshow.html
+++ b/doc/class-ep6.ProductSlideshow.html
@@ -48,6 +48,9 @@
Classes
Product
ProductAttribute
ProductFilter
+
ProductPrice
+
ProductPriceType
+
ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@
Classes
Traits
@@ -103,6 +107,15 @@
Class ProductSlideshow
This is the product slideshow class which saves all images of the slideshow.
+
+
+ep6\ProductSlideshow
+
+ uses
+ ep6\ErrorReporting
+
+
+
@@ -127,9 +140,9 @@ Class ProductSlideshow
0.1.1 Delete functionality to reload itself.
Since:
0.1.1 Use unstatic objects.
- Api
-
- Located at shopobjects/product/ProductSlideshow.class.php
+ Since:
+ 0.1.2 Add error reporting.
+ Located at shopobjects/product/ProductSlideshow.class.php
@@ -149,7 +162,7 @@ Class ProductSlideshow
#
-
__construct ( String $productID )
+
__construct ( String $productID )
Constructor of the Slideshow.
@@ -175,40 +188,39 @@
Since
0.1.0
-
Api
-
-
-
+
public
- integer
+ String
-
#
-
getCountImages ( )
+
#
+
__toString ( )
-
Gets the number of available images.
+
Prints the Product slideshow object as a string.
-
Gets the number of available images.
+
Prints the Product slideshow object as a string.
+
+
This function returns the setted values of the Product slideshow object.
Returns
- integer The number of images.
+ String The Product slideshow as a string.
@@ -218,47 +230,39 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.1.1
-
+
public
- ep6\Image
|null
+ integer
-
#
-
getThumbnailImage ( integer $image )
+
#
+
getCountImages ( )
-
Returns a thumbnail image.
+
Gets the number of available images.
-
Returns a thumbnail image.
+
Gets the number of available images.
-
Parameters
-
- $image
- The image number to get
-
Returns
-
ep6\Image
|null
The thumbnail image.
+ integer
The number of images.
@@ -269,17 +273,14 @@
Author
Since
0.1.0
- 0.1.1 Fix bug with returning image.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
@@ -290,15 +291,15 @@ Api
-
#
-
getSmallImage ( integer $image )
+
#
+
getHotDealImage ( integer $image )
-
Returns a small image.
+
Returns a hotdeal image.
-
Returns a small image.
+
Returns a hotdeal image.
Parameters
@@ -309,7 +310,7 @@
Parameters
Returns
@@ -321,16 +322,14 @@
Since
0.1.0
0.1.1 Fix bug with returning image.
-
-
Api
-
+ 0.1.2 Add error reporting and easy the function.
-
+
public
@@ -341,15 +340,15 @@ Api
-
#
-
getHotDealImage ( integer $image )
+
#
+
getLargeImage ( integer $image )
-
Returns a hotdeal image.
+
Returns a large image.
-
Returns a hotdeal image.
+
Returns a large image.
Parameters
@@ -360,7 +359,7 @@
Parameters
Returns
@@ -372,16 +371,14 @@
Since
0.1.0
0.1.1 Fix bug with returning image.
-
-
Api
-
+ 0.1.2 Add error reporting and easy the function.
-
+
public
@@ -392,15 +389,15 @@ Api
-
#
-
getMediumSmallImage ( integer $image )
+
#
+
getMediumLargeImage ( integer $image )
-
Returns a medium small image.
+
Returns a medium large image.
-
Returns a medium small image.
+
Returns a medium large image.
Parameters
@@ -411,7 +408,7 @@
Parameters
Returns
@@ -423,9 +420,7 @@
Since
0.1.0
0.1.1 Fix bug with returning image.
-
-
Api
-
+ 0.1.2 Add error reporting and easy the function.
@@ -444,7 +439,7 @@
Api
#
-
getMediumImage ( integer $image )
+
getMediumImage ( integer $image )
Returns a medium image.
@@ -474,16 +469,14 @@
Since
0.1.0
0.1.1 Fix bug with returning image.
-
-
Api
-
+ 0.1.2 Add error reporting and easy the function.
-
+
public
@@ -494,15 +487,15 @@ Api
-
#
-
getMediumLargeImage ( integer $image )
+
#
+
getMediumSmallImage ( integer $image )
-
Returns a medium large image.
+
Returns a medium small image.
-
Returns a medium large image.
+
Returns a medium small image.
Parameters
@@ -513,7 +506,7 @@
Parameters
Returns
@@ -525,16 +518,14 @@
Since
0.1.0
0.1.1 Fix bug with returning image.
-
-
Api
-
+ 0.1.2 Add error reporting and easy the function.
-
+
public
@@ -545,15 +536,15 @@ Api
-
#
-
getLargeImage ( integer $image )
+
#
+
getSmallImage ( integer $image )
-
Returns a large image.
+
Returns a small image.
-
Returns a large image.
+
Returns a small image.
Parameters
@@ -564,7 +555,7 @@
Parameters
Returns
@@ -576,43 +567,44 @@
Since
0.1.0
0.1.1 Fix bug with returning image.
-
-
Api
-
+ 0.1.2 Add error reporting and easy the function.
-
+
public
- String
+ ep6\Image
|null
-
#
-
__toString ( )
+
#
+
getThumbnailImage ( integer $image )
-
Prints the Product slideshow object as a string.
+
Returns a small image.
-
Prints the Product slideshow object as a string.
-
-
This function returns the setted values of the Product slideshow object.
+
Returns a small image.
+
Parameters
+
+ $image
+ The image number to get
+
Returns
- String
The Product slideshow as a string.
+
ep6\Image
|null
The small image.
@@ -622,7 +614,9 @@
Author
Since
- 0.1.1
+ 0.1.0
+ 0.1.1 Fix bug with returning image.
+ 0.1.2 Add error reporting and easy the function.
@@ -632,6 +626,16 @@
Since
+
@@ -645,7 +649,7 @@ Since
String
- RESTPATH
+ RESTPATH
+
+
+ep6\RESTClient
+
+ uses
+ ep6\ErrorReporting
+
+
+
@@ -131,7 +144,9 @@ Class RESTClient
0.1.1 Add function to change the wait time for next REST request.
Since:
0.1.1 Set $HOST and $SHOP to default value null.
- Located at util/RESTClient.class.php
+ Since:
+ 0.1.2 Add error reporting.
+ Located at util/RESTClient.class.php
@@ -151,7 +166,7 @@ Class RESTClient
#
-
connect ( String $host , String $shop , String $authToken , boolean $isssl )
+
connect ( String $host , String $shop , String $authToken = null , boolean $isssl = null )
The constructor for the main class.
@@ -183,16 +198,15 @@
Since
0.0.0
0.0.1 Use disconnect function on wrong parameters.
-
-
Api
-
+ 0.1.2 Throw warning with wrong parameters.
+ 0.1.2 Add error reporting.
-
+
public static
@@ -203,20 +217,16 @@ Api
-
#
-
printStatus ( )
+
#
+
disconnect ( )
-
This function prints the status of the REST client in a FORCE Logger message.
+
Disconnects and deletes all configuration data.
-
This function prints the status of the REST client in a FORCE Logger message.
+
Disconnects and deletes all configuration data.
-
Deprecated
-
- Echo the object itself to see all values setted.
-
@@ -228,48 +238,46 @@
Author
Since
0.0.0
- 0.1.1 Echo the object itself to see all values setted.
+ 0.1.2 Add error reporting.
-
+
public static
- String
+ mixed[]
-
#
-
sendWithLocalization ( String $command , String $locale , mixed[] $postfields = array () )
+
#
+
send ( String $command , String[] $postfields = array () )
-
This send function sends a special command to the REST server.
+
This send function sends a special command to the REST server with additional parameter.
-
This send function sends a special command to the REST server.
+
This send function sends a special command to the REST server with additional parameter.
Parameters
$command
The path which is requested in the REST client.
- $locale
- The localization to get.
$postfields
Add specific parameters to the REST server.
Returns
- String The returned JSON object or null if something goes wrong.
+ mixed[] The returned elements as array.
@@ -280,48 +288,51 @@
Author
Since
0.0.0
-
-
Api
-
+ 0.0.1 Use HTTPRequestMethod enum.
+ 0.1.0 Allow empty message body if the status code is 204.
+ 0.1.2 Restructure the logging message and fix the PATCH call.
+ 0.1.2 Add error reporting.
-
+
public static
- mixed[]
+ String
-
#
-
send ( String $command , String[] $postfields = array () )
+
#
+
sendWithLocalization ( String $command , String $locale , mixed[] $postfields = array () )
-
This send function sends a special command to the REST server with additional parameter.
+
This send function sends a special command to the REST server.
-
This send function sends a special command to the REST server with additional parameter.
+
This send function sends a special command to the REST server.
Parameters
$command
The path which is requested in the REST client.
+ $locale
+ The localization to get.
$postfields
Add specific parameters to the REST server.
Returns
- mixed[] The returned elements as array.
+ String The returned JSON object or null if something goes wrong.
@@ -332,11 +343,8 @@
Author
Since
0.0.0
- 0.0.1 Use HTTPRequestMethod enum.
- 0.1.0 Allow empty message body if the status code is 204.
-
-
Api
-
+ 0.1.2 Throw warning with wrong parameters.
+ 0.1.2 Add error reporting.
@@ -355,7 +363,7 @@
Api
-
-
-
-
- public static
-
-
-
-
-
-
-
-
#
-
disconnect ( )
-
-
-
Disconnects and deletes all configuration data.
-
-
-
-
Disconnects and deletes all configuration data.
-
-
-
-
-
-
Author
-
-
Since
-
- 0.0.0
-
-
Api
-
+ 0.1.2 Throw warning with wrong parameters.
+ 0.1.2 Add error reporting.
@@ -447,7 +413,7 @@
Api
#
-
setRequestWaitTime ( integer $time )
+
setRequestWaitTime ( integer $time )
Change the time to wait with the next request.
@@ -476,9 +442,8 @@
Author
Since
0.1.1
-
-
Api
-
+ 0.1.2 Throw warning with wrong parameters.
+ 0.1.2 Add error reporting.
@@ -488,6 +453,16 @@
Api
+
@@ -496,12 +471,12 @@
Api
Constants summary
-
+
String
- PATHTOREST
+ HTTP_ACCEPT
@@ -515,17 +490,17 @@
Api
-
#
-
"rs/shops"
+
#
+
"application/vnd.epages.v1+json"
-
+
String
- HTTP_ACCEPT
+ HTTP_CONTENT_TYPE
@@ -539,17 +514,17 @@
Api
-
#
-
"application/vnd.epages.v1+json"
+
#
+
"application/json"
-
+
String
- HTTP_CONTENT_TYPE
+ PATHTOREST
@@ -563,8 +538,8 @@
Api
-
#
-
"application/json"
+
#
+
"rs/shops"
@@ -582,7 +557,7 @@ Api
- $NEXT_RESPONSE_WAIT_TIME
+ $NEXT_RESPONSE_WAIT_TIME
The time in ms the shop object should wait until the next request.
diff --git a/doc/class-ep6.RightsOfWithdrawalInformation.html b/doc/class-ep6.RightsOfWithdrawalInformation.html
index 5312d57..48d9490 100644
--- a/doc/class-ep6.RightsOfWithdrawalInformation.html
+++ b/doc/class-ep6.RightsOfWithdrawalInformation.html
@@ -48,6 +48,9 @@
Classes
Product
ProductAttribute
ProductFilter
+
ProductPrice
+
ProductPriceType
+
ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@
Classes
Traits
@@ -100,7 +104,7 @@
Class RightsOfWithdrawalInformation
-
This class is needed for use the information coming from rights of withdrawal.
+
This class is needed for use the information coming from Rights Of Withdrawal.
@@ -108,7 +112,9 @@ Class RightsOfWithdrawalInformation
ep6\RightsOfWithdrawalInformation
uses
- ep6\InformationTrait
+ ep6\Information ,
+
+ ep6\ErrorReporting
@@ -134,73 +140,38 @@
Class RightsOfWithdrawalInformation
0.1.1 This object is now echoable.
Since:
0.1.1 Unstatic every attributes.
+
Since:
+ 0.1.2 Add error reporting.
See:
InformationTrait This trait has all information needed objects.
-
Located at shopobjects/information/RightsOfWithdrawalInformation.class.php
+
See:
+ ErrorReporting This trait gives the error reporting functionality.
+
Located at shopobjects/information/RightsOfWithdrawalInformation.class.php
-
- Methods summary
-
-
-
- public
-
- String
-
-
-
-
-
-
#
-
__toString ( )
-
-
-
Prints the Information object as a string.
-
-
-
-
Prints the Information object as a string.
-
-
This function returns the setted values of the Information object.
-
-
Returns
-
- String The Information as a string.
-
-
-
-
Author
-
-
Since
-
- 0.1.1
-
-
-
-
-
+
-
-
@@ -217,7 +188,7 @@ Since
String
- RESTPATH
+ RESTPATH
diff --git a/doc/class-ep6.ShippingInformation.html b/doc/class-ep6.ShippingInformation.html
index 43117fc..a912f23 100644
--- a/doc/class-ep6.ShippingInformation.html
+++ b/doc/class-ep6.ShippingInformation.html
@@ -48,6 +48,9 @@
Classes
Product
ProductAttribute
ProductFilter
+
ProductPrice
+
ProductPriceType
+
ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@
Classes
Traits
@@ -100,7 +104,7 @@
Class ShippingInformation
-
This class is needed for the shipping information in the shop.
+
This class is needed for the Shipping Information in the shop.
@@ -108,7 +112,9 @@ Class ShippingInformation
ep6\ShippingInformation
uses
- ep6\InformationTrait
+ ep6\Information ,
+
+ ep6\ErrorReporting
@@ -134,73 +140,38 @@
Class ShippingInformation
0.1.1 This object is now echoable.
Since:
0.1.1 Unstatic every attributes.
+
Since:
+ 0.1.2 Add error reporting.
See:
InformationTrait This trait has all information needed objects.
-
Located at shopobjects/information/ShippingInformation.class.php
+
See:
+ ErrorReporting This trait gives the error reporting functionality.
+
Located at shopobjects/information/ShippingInformation.class.php
-
- Methods summary
-
-
-
- public
-
- String
-
-
-
-
-
-
#
-
__toString ( )
-
-
-
Prints the Information object as a string.
-
-
-
-
Prints the Information object as a string.
-
-
This function returns the setted values of the Information object.
-
-
Returns
-
- String The Information as a string.
-
-
-
-
Author
-
-
Since
-
- 0.1.1
-
-
-
-
-
+
-
-
@@ -217,7 +188,7 @@ Since
String
- RESTPATH
+ RESTPATH
+
+
+ep6\Shop
+
+ uses
+ ep6\ErrorReporting
+
+
+
@@ -127,9 +140,9 @@ Class Shop
0.1.1 Now the shop can be printed via echo.
Since:
0.1.1 Save their own shop credentials and use Information objects unstatic.
- Example:
- examples\connectingShop.php Create a new epage 6 shop object and disconnect.
- Located at Shop.class.php
+ Since:
+ 0.1.2 Add error reporting.
+ Located at Shop.class.php
@@ -149,7 +162,7 @@ Class Shop
#
-
__construct ( String $host , String $shop , String $authToken , boolean $isssl = true )
+
__construct ( String $host , String $shop , String $authToken , boolean $isssl = true )
The constructor for the shop class.
@@ -181,20 +194,14 @@
Since
0.0.0
0.1.1 Save the own login credentials.
-
-
Api
-
-
-
Source
-
- 2 1 Calls the REST client and connect.
+ 0.1.2 Add error reporting.
-
+
public
@@ -205,15 +212,15 @@ Source
-
#
-
useShop ( )
+
#
+
__destruct ( )
-
Use this shop from now.
+
The destructor for the main class.
-
Use this shop from now.
+
The destructor for the main class.
@@ -225,39 +232,48 @@
Author
Since
- 0.1.1
-
-
Api
-
+ 0.0.0
+ 0.1.1 Unset the own shop credentials.
-
+
public
-
+ boolean
-
#
-
__destruct ( )
+
#
+
deleteProduct ( ep6\Product
& $product )
-
The destructor for the main class.
+
Deletes a product.
-
The destructor for the main class.
+
Deletes a product.
+
This function try to deletes the product in the shop. It also unset the given Product object.
+
Parameters
+
+ $product
+ product to delete.
+
+
+
Returns
+
+ boolean True if the deletion works, false if not.
+
Author
@@ -266,52 +282,43 @@
Author
Since
- 0.0.0
- 0.1.1 Unset the own shop credentials.
-
-
Api
-
-
-
Source
-
- 2 1 Disconnect the REST client.
+ 0.1.0
+ 0.1.2 Add error reporting.
-
+
public
-
+ ep6\ContactInformation
|null
-
#
-
printStatus ( )
+
#
+
getContactInformation ( )
-
Prints the connection status via "FORCE".
+
Get the contact information.
-
Prints the connection status via "FORCE".
+
Get the contact information.
-
This function will print the current values of the REST client.
-
Deprecated
+
+
Returns
- Echo the object itself to see all values setted.
+
ep6\ContactInformation
|null
The contact information of the shop or null if the REST call will fail.
-
-
Author
David Pauli
contact@david-pauli.de
@@ -319,39 +326,40 @@
Author
Since
0.0.0
- 0.1.1 Echo the object itself to see all values setted.
+ 0.1.1 Create an unstatic Information object.
+ 0.1.2 Add error reporting.
-
+
public
- String|null
+ mixed[]|null
-
#
-
getDefaultLocales ( )
+
#
+
getCurrencies ( )
-
Returns the default localization.
+
Returns all currencies.
-
Returns the default localization.
+
Returns all currencies.
Returns
- String|null Default localization or null if the REST call does fail.
+ mixed[]|null All currencies in an array or null if the REST call will fail.
@@ -362,41 +370,39 @@
Author
Since
0.0.0
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- mixed[]|null
+ String|null
-
#
-
getLocales ( )
+
#
+
getCurrency ( )
-
Returns all localizations.
+
Returns configured Currency.
-
Returns all localizations.
+
Returns configured Currency.
Returns
- mixed[]|null All localizations in an array or null if the REST call does fail.
+ String|null The Currency which is configured for REST calls.
@@ -406,10 +412,8 @@
Author
Since
- 0.0.0
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
@@ -428,7 +432,7 @@
Api
-
+
public
- mixed[]|null
+ String|null
-
#
-
getCurrencies ( )
+
#
+
getDefaultLocales ( )
-
Returns all currencies.
+
Returns the default localization.
-
Returns all currencies.
+
Returns the default localization.
Returns
- mixed[]|null All currencies in an array or null if the REST call will fail.
+ String|null Default localization or null if the REST call does fail.
@@ -497,9 +499,7 @@
Author
Since
0.0.0
-
-
Api
-
+ 0.1.2 Add error reporting.
@@ -518,7 +518,7 @@
Api
#
-
getLocale ( )
+
getLocale ( )
Returns configured Locale.
@@ -542,91 +542,39 @@
Author
Since
0.1.0
-
-
Api
-
+ 0.1.2 Add error reporting.
-
-
-
- public
-
- boolean
-
-
-
-
-
-
#
-
setLocale ( String $locale )
-
-
-
Set configured Locale.
-
-
-
-
Set configured Locale.
-
-
-
Parameters
-
- $locale
- The new used Locale.
-
-
-
Returns
-
- boolean True if set the Locale works, false if not.
-
-
-
-
Author
-
-
Since
-
- 0.1.0
-
-
Api
-
-
-
-
-
-
-
-
+
public
- String|null
+ mixed[]|null
-
#
-
getCurrency ( )
+
#
+
getLocales ( )
-
Returns configured Currency.
+
Returns all localizations.
-
Returns configured Currency.
+
Returns all localizations.
Returns
- String|null The Currency which is configured for REST calls.
+ mixed[]|null All localizations in an array or null if the REST call does fail.
@@ -636,47 +584,40 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.0.0
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+ ep6\PrivacyPolicyInformation
|null
-
#
-
setCurrency ( String $currency )
+
#
+
getPrivacyPolicyInformation ( )
-
Set configured Currency.
+
Get the privacy policy information.
-
Set configured Currency.
+
Get the privacy policy information.
-
Parameters
-
- $currency
- $locale The new used Locale.
-
Returns
- boolean
True if set the Locale works, false if not.
+
ep6\PrivacyPolicyInformation
|null
The privacy policy information of the shop or null if the REST call will fail.
@@ -686,42 +627,41 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.0.0
+ 0.1.1 Create an unstatic Information object.
+ 0.1.2 Add error reporting.
-
+
public
- ep6\ContactInformation
|null
+ ep6\RightsOfWithdrawalInformation
|null
-
#
-
getContactInformation ( )
+
#
+
getRightsOfWithdrawalInformation ( )
-
Get the contact information.
+
Get the rights of withdrawal information.
-
Get the contact information.
+
Get the rights of withdrawal information.
Returns
@@ -733,41 +673,39 @@
Since
0.0.0
0.1.1 Create an unstatic Information object.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- ep6\PrivacyPolicyInformation
|null
+ ep6\ShippingInformation
|null
-
#
-
getPrivacyPolicyInformation ( )
+
#
+
getShippingInformation ( )
-
Get the privacy policy information.
+
Get the shipping information.
-
Get the privacy policy information.
+
Get the shipping information.
Returns
@@ -779,41 +717,39 @@
Since
0.0.0
0.1.1 Create an unstatic Information object.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- ep6\RightsOfWithdrawalInformation
|null
+ TermsAndCondiditonInformation
-
#
-
getRightsOfWithdrawalInformation ( )
+
#
+
getTermsAndConditionInformation ( )
-
Get the rights of withdrawal information.
+
Get the terms and condition information.
-
Get the rights of withdrawal information.
+
Get the terms and condition information.
Returns
-
ep6\RightsOfWithdrawalInformation
|null
The rights of withdrawal information of the shop or null if the REST call will fail.
+ TermsAndCondiditonInformation
The terms and condition information of the shop or null if the REST call fails.
@@ -825,41 +761,44 @@
Since
0.0.0
0.1.1 Create an unstatic Information object.
-
-
Api
-
+ 0.1.2 Add error reporting.
-
+
public
- ep6\ShippingInformation
|null
+ boolean
-
#
-
getShippingInformation ( )
+
#
+
setCurrency ( String $currency )
-
Get the shipping information.
+
Set configured Currency.
-
Get the shipping information.
+
Set configured Currency.
+
Parameters
+
+ $currency
+ $locale The new used Locale.
+
Returns
-
ep6\ShippingInformation
|null
The shipping information of the shop or null if the REST call fails.
+ boolean
True if set the Locale works, false if not.
@@ -869,43 +808,45 @@
Author
Since
- 0.0.0
- 0.1.1 Create an unstatic Information object.
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
-
+
public
- TermsAndCondiditonInformation
+ boolean
-
#
-
getTermsAndConditionInformation ( )
+
#
+
setLocale ( String $locale )
-
Get the terms and condition information.
+
Set configured Locale.
-
Get the terms and condition information.
+
Set configured Locale.
+
Parameters
+
+ $locale
+ The new used Locale.
+
Returns
- TermsAndCondiditonInformation The terms and condition information of the shop or null if the REST call fails.
+ boolean True if set the Locale works, false if not.
@@ -915,51 +856,37 @@
Author
Since
- 0.0.0
- 0.1.1 Create an unstatic Information object.
-
-
Api
-
+ 0.1.0
+ 0.1.2 Add error reporting.
-
+
public
- boolean
+
-
#
-
deleteProduct ( ep6\Product
& $product )
+
#
+
useShop ( )
-
Deletes a product.
+
Use this shop from now.
-
Deletes a product.
+
Use this shop from now.
-
This function try to deletes the product in the shop. It also unset the given Product object.
-
Parameters
-
- $product
- product to delete.
-
-
-
Returns
-
- boolean True if the deletion works, false if not.
-
Author
@@ -968,10 +895,8 @@
Author
Since
- 0.1.0
-
-
Api
-
+ 0.1.1
+ 0.1.2 Add error reporting.
@@ -981,6 +906,16 @@
Api
+
diff --git a/doc/class-ep6.TermsAndConditionInformation.html b/doc/class-ep6.TermsAndConditionInformation.html
index 371f5aa..bffb0dc 100644
--- a/doc/class-ep6.TermsAndConditionInformation.html
+++ b/doc/class-ep6.TermsAndConditionInformation.html
@@ -48,6 +48,9 @@ Classes
Product
ProductAttribute
ProductFilter
+ ProductPrice
+ ProductPriceType
+ ProductPriceWithQuantity
ProductSlideshow
RESTClient
RightsOfWithdrawalInformation
@@ -59,7 +62,8 @@ Classes
Traits
@@ -100,7 +104,7 @@ Class TermsAndConditionInformation
-
This class is required for showing the information of terms and condition.
+
This class is required for showing the information of Terms And Condition.
@@ -108,7 +112,9 @@ Class TermsAndConditionInformation
ep6\TermsAndConditionInformation
uses
- ep6\InformationTrait
+ ep6\Information ,
+
+ ep6\ErrorReporting
@@ -134,73 +140,38 @@ Class TermsAndConditionInformation
0.1.1 This object is now echoable.
Since:
0.1.1 Unstatic every attributes.
+ Since:
+ 0.1.2 Add error reporting.
See:
InformationTrait This trait has all information needed objects.
- Located at shopobjects/information/TermsAndConditionInformation.class.php
+ See:
+ ErrorReporting This trait gives the error reporting functionality.
+ Located at shopobjects/information/TermsAndConditionInformation.class.php
-
- Methods summary
-
-
-
- public
-
- String
-
-
-
-
-
-
#
-
__toString ( )
-
-
-
Prints the Information object as a string.
-
-
-
-
Prints the Information object as a string.
-
-
This function returns the setted values of the Information object.
-
-
Returns
-
- String The Information as a string.
-
-
-
-
Author
-
-
Since
-
- 0.1.1
-
-
-
-
-
+
-
-
@@ -217,7 +188,7 @@ Since
String
- RESTPATH
+ RESTPATH
diff --git a/doc/elementlist.js b/doc/elementlist.js
index f8550ea..916e1bd 100644
--- a/doc/elementlist.js
+++ b/doc/elementlist.js
@@ -1,3 +1,3 @@
var ApiGen = ApiGen || {};
-ApiGen.elements = [["c","ep6\\ContactInformation"],["c","ep6\\Currencies"],["c","ep6\\HTTPRequestMethod"],["c","ep6\\Image"],["c","ep6\\InformationTrait"],["c","ep6\\InputValidator"],["c","ep6\\JSONHandler"],["c","ep6\\Locales"],["c","ep6\\Logger"],["c","ep6\\LogLevel"],["c","ep6\\LogOutput"],["c","ep6\\Price"],["c","ep6\\PriceWithQuantity"],["c","ep6\\PrivacyPolicyInformation"],["c","ep6\\Product"],["c","ep6\\ProductAttribute"],["c","ep6\\ProductFilter"],["c","ep6\\ProductSlideshow"],["c","ep6\\RESTClient"],["c","ep6\\RightsOfWithdrawalInformation"],["c","ep6\\ShippingInformation"],["c","ep6\\Shop"],["c","ep6\\TermsAndConditionInformation"]];
+ApiGen.elements = [["c","ep6\\ContactInformation"],["c","ep6\\Currencies"],["c","ep6\\ErrorReporting"],["c","ep6\\HTTPRequestMethod"],["c","ep6\\Image"],["c","ep6\\Information"],["c","ep6\\InputValidator"],["c","ep6\\JSONHandler"],["c","ep6\\Locales"],["c","ep6\\Logger"],["c","ep6\\LogLevel"],["c","ep6\\LogOutput"],["c","ep6\\Price"],["c","ep6\\PriceWithQuantity"],["c","ep6\\PrivacyPolicyInformation"],["c","ep6\\Product"],["c","ep6\\ProductAttribute"],["c","ep6\\ProductFilter"],["c","ep6\\ProductPrice"],["c","ep6\\ProductPriceType"],["c","ep6\\ProductPriceWithQuantity"],["c","ep6\\ProductSlideshow"],["c","ep6\\RESTClient"],["c","ep6\\RightsOfWithdrawalInformation"],["c","ep6\\ShippingInformation"],["c","ep6\\Shop"],["c","ep6\\TermsAndConditionInformation"]];
diff --git a/doc/index.html b/doc/index.html
index 20e4d62..a8c1df0 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -47,6 +47,9 @@
Classes
ep6\Product
ep6\ProductAttribute
ep6\ProductFilter
+
ep6\ProductPrice
+
ep6\ProductPriceType
+
ep6\ProductPriceWithQuantity
ep6\ProductSlideshow
ep6\RESTClient
ep6\RightsOfWithdrawalInformation
@@ -58,7 +61,8 @@
Classes
Traits
@@ -112,6 +116,6 @@
Overview
-
+