diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/Components.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/Components.php | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/Components.php b/www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/Components.php new file mode 100644 index 00000000..f1aea129 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/Components.php @@ -0,0 +1,77 @@ +<?php + +namespace SMW\DataValues\Time; + +/** + * @private + * + * @license GNU GPL v2+ + * @since 3.0 + * + * @author mwjames + */ +class Components { + + /** + * @var array + */ + public static $months = [ + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + 'July', + 'August', + 'September', + 'October', + 'November', + 'December' + ]; + + /** + * @var array + */ + public static $monthsShort = [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'Jun', + 'Jul', + 'Aug', + 'Sep', + 'Oct', + 'Nov', + 'Dec' + ]; + + /** + * @var [] + */ + private $components = []; + + /** + * @since 3.0 + * + * @param array $components + */ + public function __construct( array $components = [] ) { + $this->components = $components; + } + + /** + * @since 3.0 + */ + public function get( $key ) { + + if ( isset( $this->components[$key] ) ) { + return $this->components[$key]; + } + + return false; + } + +} |