start formatting for Doxygen

This commit is contained in:
friendica 2013-02-25 17:09:40 -08:00
parent ddc478a331
commit ea3940c4b0
69 changed files with 93 additions and 91 deletions

View File

@ -1,4 +1,5 @@
<?php <?php
/** @file */
require_once('include/config.php'); require_once('include/config.php');
require_once('include/network.php'); require_once('include/network.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
if(class_exists('BaseObject')) if(class_exists('BaseObject'))
return; return;

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function abook_connections($channel_id, $sql_conditions = '') { function abook_connections($channel_id, $sql_conditions = '') {

View File

@ -1,4 +1,5 @@
<?php <?php /** @file */
if(class_exists('Conversation')) if(class_exists('Conversation'))
return; return;

View File

@ -1,4 +1,5 @@
<?php <?php /** @file */
if(class_exists('Item')) if(class_exists('Item'))
return; return;

View File

@ -1,6 +1,6 @@
<?php <?php /** @file */
if(! class_exists("Photo")) {
class Photo { class Photo {
private $image; private $image;
@ -605,7 +605,7 @@ class Photo {
} }
return $r; return $r;
} }
}} }
/** /**

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/* /*
* Abstraction class for dealing with alternate networks (which of course do not exist, hence the abstraction) * Abstraction class for dealing with alternate networks (which of course do not exist, hence the abstraction)

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('library/HTML5/Parser.php'); require_once('library/HTML5/Parser.php');
require_once('include/crypto.php'); require_once('include/crypto.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/config.php'); require_once('include/config.php');
require_once('include/network.php'); require_once('include/network.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/** /**
* *
*/ */

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function profile_activity($changed, $value) { function profile_activity($changed, $value) {
$a = get_app(); $a = get_app();

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once("bbcode.php"); require_once("bbcode.php");
require_once("datetime.php"); require_once("datetime.php");

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/* /*
* File/attach API with the potential for revision control. * File/attach API with the potential for revision control.

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/security.php'); require_once('include/security.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once("include/oembed.php"); require_once("include/oembed.php");
require_once("include/event.php"); require_once("include/event.php");

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once("include/oembed.php"); require_once("include/oembed.php");
require_once('include/event.php'); require_once('include/event.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/** /**
* cache api * cache api

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('boot.php'); require_once('boot.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/** /**
* *

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function contact_profile_assign($current,$foreign_net) { function contact_profile_assign($current,$foreign_net) {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function follow_widget() { function follow_widget() {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/items.php'); require_once('include/items.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('boot.php'); require_once('boot.php');
require_once('include/cli_startup.php'); require_once('include/cli_startup.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('library/ASNValue.class.php'); require_once('library/ASNValue.class.php');
require_once('library/asn1.php'); require_once('library/asn1.php');

View File

@ -1,8 +1,8 @@
<?php <?php /** @file */
// two-level sort for timezones. // two-level sort for timezones.
if(! function_exists('timezone_cmp')) {
function timezone_cmp($a, $b) { function timezone_cmp($a, $b) {
if(strstr($a,'/') && strstr($b,'/')) { if(strstr($a,'/') && strstr($b,'/')) {
if ( t($a) == t($b)) return 0; if ( t($a) == t($b)) return 0;
@ -12,10 +12,10 @@ function timezone_cmp($a, $b) {
if(strstr($b,'/')) return 1; if(strstr($b,'/')) return 1;
if ( t($a) == t($b)) return 0; if ( t($a) == t($b)) return 0;
return ( t($a) < t($b)) ? -1 : 1; return ( t($a) < t($b)) ? -1 : 1;
}} }
// emit a timezone selector grouped (primarily) by continent // emit a timezone selector grouped (primarily) by continent
if(! function_exists('select_timezone')) {
function select_timezone($current = 'America/Los_Angeles') { function select_timezone($current = 'America/Los_Angeles') {
$timezone_identifiers = DateTimeZone::listIdentifiers(); $timezone_identifiers = DateTimeZone::listIdentifiers();
@ -52,13 +52,13 @@ function select_timezone($current = 'America/Los_Angeles') {
} }
$o .= '</optgroup></select>'; $o .= '</optgroup></select>';
return $o; return $o;
}} }
// return a select using 'field_select_raw' template, with timezones // return a select using 'field_select_raw' template, with timezones
// groupped (primarily) by continent // groupped (primarily) by continent
// arguments follow convetion as other field_* template array: // arguments follow convetion as other field_* template array:
// 'name', 'label', $value, 'help' // 'name', 'label', $value, 'help'
if (!function_exists('field_timezone')){
function field_timezone($name='timezone', $label='', $current = 'America/Los_Angeles', $help){ function field_timezone($name='timezone', $label='', $current = 'America/Los_Angeles', $help){
$options = select_timezone($current); $options = select_timezone($current);
$options = str_replace('<select id="timezone_select" name="timezone">','', $options); $options = str_replace('<select id="timezone_select" name="timezone">','', $options);
@ -69,7 +69,7 @@ function field_timezone($name='timezone', $label='', $current = 'America/Los_Ang
'$field' => array($name, $label, $current, $help, $options), '$field' => array($name, $label, $current, $help, $options),
)); ));
}} }
// General purpose date parse/convert function. // General purpose date parse/convert function.
// $from = source timezone // $from = source timezone
@ -77,7 +77,7 @@ function field_timezone($name='timezone', $label='', $current = 'America/Los_Ang
// $s = some parseable date/time string // $s = some parseable date/time string
// $fmt = output format // $fmt = output format
if(! function_exists('datetime_convert')) {
function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d H:i:s") { function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d H:i:s") {
// Defaults to UTC if nothing is set, but throws an exception if set to empty string. // Defaults to UTC if nothing is set, but throws an exception if set to empty string.
@ -124,7 +124,7 @@ function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d
$d->setTimeZone($to_obj); $d->setTimeZone($to_obj);
return($d->format($fmt)); return($d->format($fmt));
}} }
// wrapper for date selector, tailored for use in birthday fields // wrapper for date selector, tailored for use in birthday fields
@ -180,7 +180,7 @@ function datesel_format($f) {
// $m = already selected month // $m = already selected month
// $d = already selected day // $d = already selected day
if(! function_exists('datesel')) {
function datesel($f,$pre,$ymin,$ymax,$allow_blank,$y,$m,$d) { function datesel($f,$pre,$ymin,$ymax,$allow_blank,$y,$m,$d) {
$o = ''; $o = '';
@ -231,9 +231,9 @@ function datesel($f,$pre,$ymin,$ymax,$allow_blank,$y,$m,$d) {
$o .= "</select>"; $o .= "</select>";
return $o; return $o;
}} }
if(! function_exists('timesel')) {
function timesel($pre,$h,$m) { function timesel($pre,$h,$m) {
$o = ''; $o = '';
@ -250,7 +250,7 @@ function timesel($pre,$h,$m) {
$o .= "</select>"; $o .= "</select>";
return $o; return $o;
}} }
@ -264,7 +264,7 @@ function timesel($pre,$h,$m) {
// Results relative to current timezone // Results relative to current timezone
// Limited to range of timestamps // Limited to range of timestamps
if(! function_exists('relative_date')) {
function relative_date($posted_date,$format = null) { function relative_date($posted_date,$format = null) {
$localtime = datetime_convert('UTC',date_default_timezone_get(),$posted_date); $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])); return sprintf( $format,$r, (($r == 1) ? $str[0] : $str[1]));
} }
} }
}} }
@ -341,7 +341,7 @@ function age($dob,$owner_tz = '',$viewer_tz = '') {
// $month[1] = 'January'; // $month[1] = 'January';
// to match human usage. // to match human usage.
if(! function_exists('get_dim')) {
function get_dim($y,$m) { function get_dim($y,$m) {
$dim = array( 0, $dim = array( 0,
@ -353,7 +353,7 @@ function get_dim($y,$m) {
if(((($y % 4) == 0) && (($y % 100) != 0)) || (($y % 400) == 0)) if(((($y % 4) == 0) && (($y % 100) != 0)) || (($y % 400) == 0))
return 29; return 29;
return $dim[2]; return $dim[2];
}} }
// Returns the first day in month for a given month, year // 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 // returns 0 = Sunday through 6 = Saturday
// Months start at 1. // Months start at 1.
if(! function_exists('get_first_dim')) {
function get_first_dim($y,$m) { function get_first_dim($y,$m) {
$d = sprintf('%04d-%02d-01 00:00', intval($y), intval($m)); $d = sprintf('%04d-%02d-01 00:00', intval($y), intval($m));
return datetime_convert('UTC','UTC',$d,'w'); return datetime_convert('UTC','UTC',$d,'w');
}} }
// output a calendar for the given month, year. // output a calendar for the given month, year.
// if $links are provided (array), e.g. $links[12] => 'http://mylink' , // 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 // 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='') { function cal($y = 0,$m = 0, $links = false, $class='') {
@ -442,6 +440,6 @@ function cal($y = 0,$m = 0, $links = false, $class='') {
$o .= '</tr></table>'."\r\n"; $o .= '</tr></table>'."\r\n";
return $o; return $o;
}} }

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/datetime.php'); require_once('include/datetime.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/cli_startup.php'); require_once('include/cli_startup.php');
require_once('include/zot.php'); require_once('include/zot.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/permissions.php'); require_once('include/permissions.php');

View File

@ -1,4 +1,5 @@
g<?php <?php /** @file */
require_once('boot.php'); require_once('boot.php');
require_once('include/zot.php'); require_once('include/zot.php');
require_once('include/cli_startup.php'); require_once('include/cli_startup.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function notification($params) { function notification($params) {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function format_event_html($ev) { function format_event_html($ev) {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('boot.php'); require_once('boot.php');
require_once('include/cli_startup.php'); require_once('include/cli_startup.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/* /*
* Features management * Features management

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
// //

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once("library/Smarty/libs/Smarty.class.php"); require_once("library/Smarty/libs/Smarty.class.php");

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/cli_startup.php'); require_once('include/cli_startup.php');
require_once('include/zot.php'); require_once('include/zot.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function group_add($uid,$name) { function group_add($uid,$name) {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/* /*
html2bbcode.php html2bbcode.php
Converter for HTML to BBCode Converter for HTML to BBCode

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once "html2bbcode.php"; require_once "html2bbcode.php";
function breaklines($line, $level, $wraplength = 75) function breaklines($line, $level, $wraplength = 75)

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/zot.php'); require_once('include/zot.php');
require_once('include/crypto.php'); require_once('include/crypto.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function network_query($a,$arr) { function network_query($a,$arr) {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/bbcode.php'); require_once('include/bbcode.php');
require_once('include/oembed.php'); require_once('include/oembed.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function js_strings() { function js_strings() {
return replace_macros(get_markup_template('js_strings.tpl'), array( return replace_macros(get_markup_template('js_strings.tpl'), array(

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/** /**

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/* Private Message backend API */ /* Private Message backend API */

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function nav(&$a) { function nav(&$a) {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once("boot.php"); require_once("boot.php");
require_once('include/queue_fn.php'); require_once('include/queue_fn.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function format_notification($item) { function format_notification($item) {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
/** /**
* OAuth server * OAuth server
* Based on oauth2-php <http://code.google.com/p/oauth2-php/> * Based on oauth2-php <http://code.google.com/p/oauth2-php/>

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function oembed_replacecb($matches){ function oembed_replacecb($matches){
// logger('oembedcb'); // logger('oembedcb');
$embedurl=$matches[1]; $embedurl=$matches[1];

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('boot.php'); require_once('boot.php');
require_once('include/cli_startup.php'); require_once('include/cli_startup.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function get_perms() { function get_perms() {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/permissions.php'); require_once('include/permissions.php');
require_once('include/items.php'); require_once('include/items.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once("include/friendica_smarty.php"); require_once("include/friendica_smarty.php");

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('boot.php'); require_once('boot.php');
require_once('include/cli_startup.php'); require_once('include/cli_startup.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function advanced_profile(&$a) { function advanced_profile(&$a) {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function gender_selector($current="",$suffix="") { function gender_selector($current="",$suffix="") {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once("boot.php"); require_once("boot.php");
require_once('include/cli_startup.php'); require_once('include/cli_startup.php');
require_once('include/queue_fn.php'); require_once('include/queue_fn.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function update_queue_time($id) { function update_queue_time($id) {
logger('queue: requeue item ' . $id); logger('queue: requeue item ' . $id);

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function authenticate_success($user_record, $login_initial = false, $interactive = false,$return = false,$update_lastlog = false) { function authenticate_success($user_record, $login_initial = false, $interactive = false,$return = false,$update_lastlog = false) {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
// Session management functions. These provide database storage of PHP // Session management functions. These provide database storage of PHP
// session info. // session info.

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/zot.php'); require_once('include/zot.php');

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
function system_down() { function system_down() {
echo <<< EOT echo <<< EOT

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
define ("KEY_NOT_EXISTS", '^R_key_not_Exists^'); define ("KEY_NOT_EXISTS", '^R_key_not_Exists^');
class Template { class Template {

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
// This is our template processor. // This is our template processor.
// $s is the string requiring macro substitution. // $s is the string requiring macro substitution.

View File

@ -1,4 +1,4 @@
<?php <?php /** @file */
require_once('include/crypto.php'); require_once('include/crypto.php');
require_once('include/items.php'); require_once('include/items.php');

View File

@ -1 +1 @@
2013-02-24.234 2013-02-25.235