Diglin\Ricardo\Core\Helper

Synopsis

class Helper {
}

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