Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
40b823bc
Commit
40b823bc
authored
12 years ago
by
Frank Karlitschek
Browse files
Options
Downloads
Patches
Plain Diff
some more docu fixes
parent
d2b0de61
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/public/template.php
+16
-7
16 additions, 7 deletions
lib/public/template.php
with
16 additions
and
7 deletions
lib/public/template.php
+
16
−
7
View file @
40b823bc
...
...
@@ -46,10 +46,9 @@ function image_path( $app, $image ){
/**
* @brief make OC_Helper::mimetypeIcon available as a simple function
* Returns the path to the image of this file type.
* @param $mimetype mimetype
* @returns link to the image
*
* For further information have a look at OC_Helper::mimetypeIcon
*/
function
mimetype_icon
(
$mimetype
){
return
(
\mimetype_icon
(
$mimetype
));
...
...
@@ -58,10 +57,9 @@ function mimetype_icon( $mimetype ){
/**
* @brief make OC_Helper::humanFileSize available as a simple function
* Makes 2048 to 2 kB.
* @param $bytes size in bytes
* @returns size as string
*
* For further information have a look at OC_Helper::humanFileSize
*/
function
human_file_size
(
$bytes
){
return
(
\human_file_size
(
$bytes
));
...
...
@@ -69,7 +67,9 @@ function human_file_size( $bytes ){
/**
* TODO
* @brief Return the relative date in relation to today. Returns something like "last hour" or "two month ago"
* @param $timestamp unix timestamp
* @returns human readable interpretation of the timestamp
*/
function
relative_modified_date
(
$timestamp
)
{
return
(
\relative_modified_date
(
$timestamp
));
...
...
@@ -77,7 +77,9 @@ function relative_modified_date($timestamp) {
/**
* TODO
* @brief Return a human readable outout for a file size.
* @param $byte size of a file in byte
* @returns human readable interpretation of a file size
*/
function
simple_file_size
(
$bytes
)
{
return
(
\simple_file_size
(
$bytes
));
...
...
@@ -85,13 +87,20 @@ function simple_file_size($bytes) {
/**
* TODO
* @brief Generate html code for an options block.
* @param $options the options
* @param $selected which one is selected?
* @param $params the parameters
* @returns html options
*/
function
html_select_options
(
$options
,
$selected
,
$params
=
array
())
{
return
(
\html_select_options
(
$options
,
$selected
,
$params
=
array
()));
}
/**
* This class provides the templates for owncloud.
*/
class
Template
extends
\OC_Template
{
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment