X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=dav%2Fcommon%2Fwdcal_configuration.php;h=c7b66fb1187c2f4a0d67ccf6b7a36cd9073e9edc;hb=418bb9e711a2fa260f824be26b31879a4db7db9a;hp=8d53edee9e218611d95b790806e32f72bf0a8ffd;hpb=ecb88c93f0403854858ef16ec0bb0ae52b73dd4f;p=friendica-addons.git diff --git a/dav/common/wdcal_configuration.php b/dav/common/wdcal_configuration.php index 8d53edee..c7b66fb1 100644 --- a/dav/common/wdcal_configuration.php +++ b/dav/common/wdcal_configuration.php @@ -40,6 +40,13 @@ abstract class wdcal_local return $format; } + /** + * @static + * @abstract + * @return string + */ + abstract static function getLanguageCode(); + /** * @abstract * @static @@ -77,6 +84,13 @@ abstract class wdcal_local */ abstract function date_timestamp2local($ts); + /** + * @abstract + * @param int $ts + * @return string + */ + abstract function date_timestamp2localDate($ts); + /** * @abstract * @return int @@ -119,6 +133,14 @@ abstract class wdcal_local class wdcal_local_us extends wdcal_local { + /** + * @static + * @return string + */ + static function getLanguageCode() { + return "en"; + } + /** * @return string */ @@ -152,6 +174,14 @@ class wdcal_local_us extends wdcal_local { return date("m/d/Y H:i", $ts); } + /** + * @param int $ts + * @return string + */ + function date_timestamp2localDate($ts) { + return date("l, F jS Y", $ts); + } + /** * @return int */ @@ -198,6 +228,14 @@ class wdcal_local_us extends wdcal_local { class wdcal_local_de extends wdcal_local { + /** + * @static + * @return string + */ + static function getLanguageCode() { + return "de"; + } + /** * @return string */ @@ -231,6 +269,14 @@ class wdcal_local_de extends wdcal_local { return date("d.m.Y H:i", $ts); } + /** + * @param int $ts + * @return string + */ + function date_timestamp2localDate($ts) { + return date("l, j. F Y", $ts); + } + /** * @return int */