From ea3940c4b0b8232e2de0771811b9f90ade9ee45f Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 25 Feb 2013 17:09:40 -0800 Subject: start formatting for Doxygen --- boot.php | 1 + include/BaseObject.php | 2 +- include/Contact.php | 2 +- include/ConversationObject.php | 3 ++- include/ItemObject.php | 3 ++- include/Photo.php | 6 +++--- include/ProtoDriver.php | 2 +- include/Scrape.php | 2 +- include/account.php | 2 +- include/acl_selectors.php | 2 +- include/activities.php | 2 +- include/api.php | 2 +- include/attach.php | 2 +- include/auth.php | 2 +- include/bb2diaspora.php | 2 +- include/bbcode.php | 2 +- include/cache.php | 2 +- include/cli_startup.php | 2 +- include/config.php | 2 +- include/contact_selectors.php | 2 +- include/contact_widgets.php | 2 +- include/conversation.php | 2 +- include/cronhooks.php | 2 +- include/crypto.php | 2 +- include/datetime.php | 42 ++++++++++++++++++++---------------------- include/dba.php | 2 +- include/deliver.php | 2 +- include/dir_fns.php | 2 +- include/directory.php | 3 ++- include/enotify.php | 2 +- include/event.php | 2 +- include/expire.php | 2 +- include/fcontact.php | 2 +- include/features.php | 2 +- include/follow.php | 2 +- include/friendica_smarty.php | 2 +- include/gprobe.php | 2 +- include/group.php | 2 +- include/html2bbcode.php | 2 +- include/html2plain.php | 2 +- include/identity.php | 2 +- include/iquery.php | 2 +- include/items.php | 2 +- include/js_strings.php | 2 +- include/language.php | 2 +- include/message.php | 2 +- include/nav.php | 2 +- include/network.php | 2 +- include/notifier.php | 2 +- include/notify.php | 2 +- include/oauth.php | 2 +- include/oembed.php | 2 +- include/onepoll.php | 2 +- include/permissions.php | 2 +- include/photos.php | 2 +- include/plugin.php | 2 +- include/poller.php | 2 +- include/profile_advanced.php | 2 +- include/profile_selectors.php | 2 +- include/queue.php | 2 +- include/queue_fn.php | 2 +- include/security.php | 2 +- include/session.php | 2 +- include/socgraph.php | 2 +- include/system_unavailable.php | 2 +- include/template_processor.php | 2 +- include/text.php | 2 +- include/zot.php | 2 +- version.inc | 2 +- 69 files changed, 93 insertions(+), 91 deletions(-) diff --git a/boot.php b/boot.php index 8d2e7c6e8..8031c43fa 100644 --- a/boot.php +++ b/boot.php @@ -1,4 +1,5 @@ '; return $o; -}} +} // return a select using 'field_select_raw' template, with timezones // groupped (primarily) by continent // arguments follow convetion as other field_* template array: // 'name', 'label', $value, 'help' -if (!function_exists('field_timezone')){ + function field_timezone($name='timezone', $label='', $current = 'America/Los_Angeles', $help){ $options = select_timezone($current); $options = str_replace('"; return $o; -}} +} + -if(! function_exists('timesel')) { function timesel($pre,$h,$m) { $o = ''; @@ -250,7 +250,7 @@ function timesel($pre,$h,$m) { $o .= ""; return $o; -}} +} @@ -264,7 +264,7 @@ function timesel($pre,$h,$m) { // Results relative to current timezone // Limited to range of timestamps -if(! function_exists('relative_date')) { + function relative_date($posted_date,$format = null) { $localtime = datetime_convert('UTC',date_default_timezone_get(),$posted_date); @@ -300,7 +300,7 @@ function relative_date($posted_date,$format = null) { return sprintf( $format,$r, (($r == 1) ? $str[0] : $str[1])); } } -}} +} @@ -341,7 +341,7 @@ function age($dob,$owner_tz = '',$viewer_tz = '') { // $month[1] = 'January'; // to match human usage. -if(! function_exists('get_dim')) { + function get_dim($y,$m) { $dim = array( 0, @@ -353,7 +353,7 @@ function get_dim($y,$m) { if(((($y % 4) == 0) && (($y % 100) != 0)) || (($y % 400) == 0)) return 29; return $dim[2]; -}} +} // Returns the first day in month for a given month, year @@ -361,11 +361,11 @@ function get_dim($y,$m) { // returns 0 = Sunday through 6 = Saturday // Months start at 1. -if(! function_exists('get_first_dim')) { + function get_first_dim($y,$m) { $d = sprintf('%04d-%02d-01 00:00', intval($y), intval($m)); return datetime_convert('UTC','UTC',$d,'w'); -}} +} // output a calendar for the given month, year. // if $links are provided (array), e.g. $links[12] => 'http://mylink' , @@ -376,8 +376,6 @@ function get_first_dim($y,$m) { // TODO: provide (prev,next) links, define class variations for different size calendars - -if(! function_exists('cal')) { function cal($y = 0,$m = 0, $links = false, $class='') { @@ -442,6 +440,6 @@ function cal($y = 0,$m = 0, $links = false, $class='') { $o .= ''."\r\n"; return $o; -}} +} diff --git a/include/dba.php b/include/dba.php index d1502af12..3117744aa 100644 --- a/include/dba.php +++ b/include/dba.php @@ -1,4 +1,4 @@ - diff --git a/include/oembed.php b/include/oembed.php index 6fc4c5371..7ef6d561f 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -1,4 +1,4 @@ -