Skip to content

Commit

Permalink
Merge pull request #73 from dpauli/enhancement/Finalize-0.1.0-#72
Browse files Browse the repository at this point in the history
Finalize 0.1.0 #72
  • Loading branch information
panvid committed Jan 28, 2016
2 parents f180492 + 290e323 commit 2fb955c
Show file tree
Hide file tree
Showing 55 changed files with 6,644 additions and 3,424 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# 0.1.0 (28.01.2016)

## Enhancements
- #1 Get the product price.
- #4 Delete a product.
- #29 Gets the slideshow of a product.
- #30 Get attributes and their values of the product.
- #32 Get stock level of product.
- #34 Set the stock level of product.
- #36 Use *enums* for LogLevel and LogOutput.
- #37 Use *enums* for HTTPRequestMethod.
- #52 Extend the test suite - Step 1.
- #63 You don't can set the requested Locale in get functions from now. Used Locale can be set in Shop object.

## Bugfixes
- #38 Precache shop values for a while.
- #51 Allow requests without a AuthToken.
- #53 Delete whitespaces on line ending.
- #55 Fix README file.
- #60 Fix product search without a defined Locale.
- #66 Unstatic some variables and the productFilter class.

# 0.0.3 (17.12.2015)

## Enhancements
Expand Down
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,21 @@ This are the information which are provided with the epages REST SDK since now.

| Feature | GET | PUT | POST | DELETE | PATCH | information |
| --- | :---: | :---: | :---: | :---: | :---: | --- |
| locales | **** | **-** | **-** | **-** | **?** |
| carts | **** | **** | **** | **** | **?** |
| categories | **** | **** | **-** | **-** | **?** |
| currencies | **** | **-** | **-** | **-** | **?** |
| legal | **** | **-** | **-** | **-** | **?** | won't do, it's not needed |
| legal/contact-information | **** | **** | **-** | **-** | **?** |
| legal/privacy-policy | **** | **** | **-** | **-** | **?** |
| legal/terms-and-condition | **** | **** | **-** | **-** | **?** |
| legal/rights-of-withdrawal | **** | **** | **-** | **-** | **?** |
| legal/shipping-information | **** | **** | **-** | **-** | **?** |
| products | **** | **-** | **-** | **-** | **?** |
| legal/terms-and-condition | **** | **** | **-** | **-** | **?** |
| locales | **** | **-** | **-** | **-** | **?** |
| products | **** | **-** | **-** | **** | **?** |
| products/<id>/custom-attributes | **** | **-** | **-** | **.** | **?** |
| products/<id>/stock-level | **** | **** | **-** | **-** | **?** |
| products/export | **** | **-** | **-** | **-** | **?** |
| categories | **** | **** | **-** | **-** | **?** |
| carts | **** | **** | **** | **** | **?** |
| sales | **** | **** | **** | **** | **?** |
| search/product-suggest | **** | **-** | **-** | **-** | **?** |
| shpping-methods | **** | **-** | **-** | **-** | **?** |

Expand Down Expand Up @@ -69,11 +72,11 @@ $products = $productFilter->getProducts();
// print the products
foreach ($products as $product) {

echo "<h2>" . htmlentities($product->getName("de_DE")) . "</h2>";
echo "<h2>" . htmlentities($product->getName()) . "</h2>";
echo "<p>";
echo "<img style=\"float:left\" src=\"" . $product->getSmallImage()->getOriginURL() . "\"/>";
echo "<strong>ProductID:</strong> " . $product->getID() . "<br/>";
echo "<strong>Description:</strong> " . htmlentities($product->getDescription("de_DE")) . "<br/><br/>";
echo "<strong>Description:</strong> " . htmlentities($product->getDescription()) . "<br/><br/>";
echo "<strong>This product is ";
if (!$product->isForSale()) {
echo "NOT ";
Expand Down Expand Up @@ -114,7 +117,7 @@ echo $shop->getDefaultCurrencies();
// prints the name of the contact information in default language and in german
$contactInformation = $shop->getContactInformation();
echo $contactInformation->getDefaultName();
echo $contactInformation->getName("de_DE");
echo $contactInformation->getName();
```

## Utilities
Expand All @@ -129,10 +132,10 @@ The force printer also can print arrays in a simple structure.

By default all notification messages are print. To change this use:
```php
ep6\Logger::setLogLevel("NOTIFICATION"); // shows all messages
ep6\Logger::setLogLevel("WARNING"); // shows warning and error messages
ep6\Logger::setLogLevel("ERROR"); // shows only error messages
ep6\Logger::setLogLevel("NONE"); // don't log anything
ep6\Logger::setLogLevel(ep6\LogLevel::NOTIFICATION); // shows all messages
ep6\Logger::setLogLevel(ep6\LogLevel::WARNING); // shows warning and error messages
ep6\Logger::setLogLevel(ep6\LogLevel::ERROR); // shows only error messages
ep6\Logger::setLogLevel(ep6\LogLevel::NONE); // don't log anything
```
### InputValidator

Expand Down
Binary file added build/epages-rest-php-0.1.0.phar
Binary file not shown.
Binary file modified build/epages-rest-php.phar
Binary file not shown.
7 changes: 3 additions & 4 deletions doc/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ <h3>Classes</h3>
<li><a href="class-ep6.PriceWithQuantity.html">ep6\PriceWithQuantity</a></li>
<li><a href="class-ep6.PrivacyPolicyInformation.html">ep6\PrivacyPolicyInformation</a></li>
<li><a href="class-ep6.Product.html">ep6\Product</a></li>
<li><a href="class-ep6.ProductAttribute.html">ep6\ProductAttribute</a></li>
<li><a href="class-ep6.ProductFilter.html">ep6\ProductFilter</a></li>
<li><a href="class-ep6.ProductSlideshow.html">ep6\ProductSlideshow</a></li>
<li><a href="class-ep6.RESTClient.html">ep6\RESTClient</a></li>
<li><a href="class-ep6.RightsOfWithdrawalInformation.html">ep6\RightsOfWithdrawalInformation</a></li>
<li><a href="class-ep6.ShippingInformation.html">ep6\ShippingInformation</a></li>
Expand Down Expand Up @@ -88,9 +90,6 @@ <h3>Traits</h3>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
Expand All @@ -100,7 +99,7 @@ <h3>Traits</h3>
<h1>Page not found</h1>
<p>The requested page could not be found.</p>
<p>You have probably clicked on a link that is outdated and points to a page that does not exist any more or you have made an typing error in the address.</p>
<p>To continue please try to find requested page in the menu, take a look at <a href="tree.html">the tree view</a> of the whole project or use search field on the top.</p>
<p>To continue please try to find requested page in the menu, or use search field on the top.</p>
</div>

<div id="footer">
Expand Down
Loading

0 comments on commit 2fb955c

Please sign in to comment.