summaryrefslogtreecommitdiffstats
path: root/lib/public/util.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 21:07:08 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 21:07:08 +0200
commite2fb094693e94d425fa9f59278806ef636fc127b (patch)
treec6c6b9535faa7f32b78fc3b0fedd24d85ffd0752 /lib/public/util.php
parentab584719049965f78d244879ce2a400a1955eec6 (diff)
downloadnextcloud-server-e2fb094693e94d425fa9f59278806ef636fc127b.tar.gz
nextcloud-server-e2fb094693e94d425fa9f59278806ef636fc127b.zip
some more porting
Diffstat (limited to 'lib/public/util.php')
-rw-r--r--lib/public/util.php39
1 files changed, 38 insertions, 1 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 3e647fc6605..c4a73a5a7fc 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -40,6 +40,15 @@ class Util {
const FATAL=4;
/**
+ * get the current installed version of ownCloud
+ * @return array
+ */
+ public static function getVersion(){
+ return(\OC_Util::getVersion());
+ }
+
+
+ /**
* send an email
*
* @param string $toaddress
@@ -81,10 +90,38 @@ class Util {
\OC_Util::addStyle($application, $file);
}
+ /**
+ * add a javascript file
+ *
+ * @param appid $application
+ * @param filename $file
+ */
+ public static function addScript( $application, $file = null ){
+ \OC_Util::addScript($application, $file);
+ }
-}
+ /**
+ * @brief Add a custom element to the header
+ * @param string tag tag name of the element
+ * @param array $attributes array of attributes for the element
+ * @param string $text the text content for the element
+ */
+ public static function addHeader( $tag, $attributes, $text=''){
+ \OC_Util::addHeader($tag, $attribute, $text);
+ }
+ /**
+ * formats a timestamp in the "right" way
+ *
+ * @param int timestamp $timestamp
+ * @param bool dateOnly option to ommit time from the result
+ */
+ public static function formatDate( $timestamp,$dateOnly=false){
+ return(\OC_Util::formatDate($timestamp,$dateOnly));
+ }
+}
+
?>