phpDocumentor Developer
[ class tree: Developer ] [ index: Developer ] [ all elements ]

Procedural File: Helper.php

Source Location: /core/Helper.php

Page Details

This file contains a random assortment of useful functions and classes.

Author:  Stefan Winter <stefan.winter@restena.lu>
Author:  Tomasz Wolniewicz <twoln@umk.pl>
Includes
require_once ('DBConnection.php') [line 20]
[ Top ]

require_once (dirname(dirname(__FILE__))."/config/_config.php") [line 19]

necessary includes

[ Top ]


Functions
calculateCommonHostSuffix  [line 63]

string calculateCommonHostSuffix( array $hosts  )
Parameters:
array   $hosts:  list of strings (hosts)

API Tags:
Return:  the common suffix


[ Top ]
debug  [line 31]

void debug( $level, $t  )

write debug messages to the log

Parameters:
   $level: 
   $t: 


[ Top ]
downloadFile  [line 98]

void downloadFile( $url  )
Parameters:
   $url: 


[ Top ]
error  [line 22]

void error( $t  )
Parameters:
   $t: 


[ Top ]
fetch_raw_db_data  [line 48]

void fetch_raw_db_data( $table, $row  )
Parameters:
   $table: 
   $row: 


[ Top ]
getLocalisedValue  [line 134]

string getLocalisedValue( array $val_arr, string $locale  )

pick a proper value for a given language

Parameters:
array   $val_arr:  an array of (locale,content) records
string   $locale:  locale language code

API Tags:
Return:  localised value corresponding to the chosen locale or to the defalut locale C if a better mach was not available


[ Top ]
uuid  [line 118]

UUID uuid( [string $prefix = '']  )

generates a UUID

Parameters:
string   $prefix:  an extra prefix to set before the UUID

API Tags:
Return:  (possibly prefixed)


[ Top ]


Documentation generated on Wed, 08 Apr 2015 07:12:46 +0000 by phpDocumentor 1.4.4