Diglin\Ricardo\Core\Helper
Synopsis
- // methods
- public static string getJsonTimestamp()
- public static string getJsonDate()
- public static bool|int getPictureExtension()
Methods
public
- getJsonDate() — Convert PHP date like date('Y-m-d H:m:i') to .NET Json '/Date(123456789+0200)/'
- getJsonTimestamp() — Json Date coming from Ricardo API are formatted as the following '/Date(1400795100000+0200)/' We return the Unix timestamp part
- getPictureExtension() — Get the Picture Extension ID from the picture filename
History
-
2014-12-03T20:43:38+01:00 (commit #bc8529c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Fix issue with empty or 0 optional properties (an optional property can have the value 0 and must be sent)
-
2014-10-06T14:17:38+02:00 (commit #bf96f34)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Change Partner ID to Partner Key to keep ricardo terminology
-
2014-09-28T11:22:59+02:00 (commit #3e11a2c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Update the License to OSL v3.0, add license file, change code header and composer.json
-
2014-09-07T17:07:03+02:00 (commit #00bd231)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Insert Article Implementation and test
-
2014-08-02T19:36:47+02:00 (commit #f95fc40)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Set any related dates be returned as a timestamp
-
2014-07-30T20:54:56+02:00 (commit #63608a6)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Simplify date format, work on timestamp base UTC+0
-
2014-07-07T18:27:40+02:00 (commit #3b6fa9d)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-2] [FEATURE] finish to implement the System Service for the PHP library.
-
2014-07-01T13:49:07+02:00 (commit #37b2bde)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Add test for Helper, add to the helper a method to convert in both directions date from/to json/php, add the Ricardo Service System and its test (still in progress), improve information of error curl message, add method into the testAbstract to get the latest api debug
-
2014-06-22T17:08:27+02:00 (commit #61fc8b6)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Add PhpUnit Tests for Security, SellerAccount (in progress) and System (in progress) Services. Add a way to configure the unit test, documentation exist to configure it thanks to a readme file Implement the security protocol at the manager level