linea21-utils
[ class tree: linea21-utils ] [ index: linea21-utils ] [ all elements ]

Procedural File: lib_common.php

Source Location: /lib/lib_common.php



Page Details:



Tags:

author:  linea21 <info@linea21.com>
version:  $id SVN
access:  public
filesource:  Source Code for this file
license:  http://opensource.org/licenses/gpl-3.0.html








availableLanguages [line 1104]

array availableLanguages( )

availableLanguages()

Return available languages




[ Top ]



cancel_button [line 889]

string cancel_button( $back_uri $back_uri)

cancel_button() génére un bouton de retour



Parameters

$back_uri   $back_uri  
[ Top ]



check4newVersion [line 1189]

string check4newVersion( )

check4newVersion()

Display a link to download new version if available




[ Top ]



checkdate_validity [line 773]

boolean checkdate_validity( string $date, [string $msg = ''])

checkdate_validity() Vérifie la validité d'une date



Tags:

return:  true or error message (string)


Parameters

string   $date  
string   $msg   (optionnal)
[ Top ]



cutBody [line 319]

array cutBody( string $text)

cutBody() Renvoie un texte en 2 parties dans un tableau



Parameters

string   $text  
[ Top ]



cutText [line 300]

void cutText( string $content, integer $length, [integer $abbr = 0], [string $end = '...'])

cutText() Découpe un texte à une longeur donnée.



Parameters

string   $content  
integer   $length  
integer   $abbr  
string   $end  
[ Top ]



date_compare [line 521]

boolean date_compare( $date1 $date1, $date2 $date2, $op $op)

date_compare() Compare 2 dates with a given operator.



Parameters

$date1   $date1  
$date2   $date2  
$op   $op  
[ Top ]



date_rfc2822 [line 701]

string date_rfc2822( string $date)

date_rfc2822()

Format date to RFC 2822 date format




Tags:

return:  (exemple : Thu, 21 Dec 2000 16:01:07 +0200)


Parameters

string   $date  
[ Top ]



debugEnabled [line 1159]

void debugEnabled( )

debugEnabled Display a debug alert



[ Top ]



display_errors [line 795]

void display_errors( string $msg)

display_errors() Affichage d'un message d'erreur utilisateur



Tags:

return:  (echo)


Parameters

string   $msg  
[ Top ]



Display_linkin_page [line 921]

void Display_linkin_page( array $table_link, integer $total, integer $debut, [integer $pas = SELECT_LIMIT])

Display_linkin_page()



Parameters

array   $table_link  
integer   $total  
integer   $debut  
integer   $pas  
[ Top ]



display_statut [line 980]

string display_statut( string $statut)

display_statut() renvoie le statut en pleines lettres



Parameters

string   $statut  
[ Top ]



distInclude [line 579]

void distInclude( string $file, $default_dist)

distInclude() Include the required file if no user file is found, includes the dist/ version file.

Localized files have the priority




Parameters

string   $file  
   $default_dist  
[ Top ]



empty_nc [line 727]

string empty_nc( string $content)

empty_nc() retourne le contenu ou N.C



Parameters

string   $content  
[ Top ]



empty_none [line 742]

string empty_none( string $content)

empty_none() retourne le contenu ou 'aucun'



Parameters

string   $content  
[ Top ]



empty_numeric [line 757]

string empty_numeric( string $content)

empty_none() retourne le contenu ou 0



Parameters

string   $content  
[ Top ]



EnlargeImage [line 342]

string EnlargeImage( string $uri, [string $style = ''], [string $alt_desc = ''])

EnlargeImage() Miniatures; agrandissement onclick



Parameters

string   $uri  
string   $style  
string   $alt_desc  
[ Top ]



ExcedMaxSize [line 857]

boolean ExcedMaxSize( string $path, integer $width_max)

ExcedMaxSize() Teste si une image dépasse ou non la taille autorisée (en pixels)



Parameters

string   $path  
integer   $width_max  
[ Top ]



formatDate [line 674]

string formatDate( string $date, [boolean $db = false])

formatDate() Renvoie la date aux formats yyyy-mm-dd ou dd-mm-yyyy suivant le cas de départ Si $db == true renvoie toujours la date au format yyyy-mm-dd



Parameters

string   $date  
boolean   $db  
[ Top ]



formatNavTitle [line 361]

string formatNavTitle( string $content)

formatNavTitle() Formatage des titres ( interface admin )



Parameters

string   $content  
[ Top ]



formatText [line 404]

string formatText( $content $content, [string $format = -1])

formatText() Formatage de texte pour affichage



Parameters

string   $format  
$content   $content  
[ Top ]



formatTextli [line 376]

string formatTextli( string $content)

formatTextli() Formatage des listes ( interface admin )



Parameters

string   $content  
[ Top ]



formatTitleh2 [line 390]

string formatTitleh2( string $content)

formatTitleh2() Formatage des titres h2 ( interface admin )



Parameters

string   $content  
[ Top ]



GenerateXhtmlPage [line 1128]

void GenerateXhtmlPage( $string $string, [integer $time = 2], [unknown $redirect = SITE_CITY_URL])

GenerateXhtmlPage()



Parameters

integer   $time  
unknown   $redirect  
$string   $string  
[ Top ]



GetAllPhotoUri [line 872]

array GetAllPhotoUri( string $path, [string $opt = -1])

GetAllPhotoUri() renvoie les paths des photos dans un tableau



Parameters

string   $path  
string   $opt  
[ Top ]



GetDisplayUserRight [line 902]

string GetDisplayUserRight( string $indice, [string $module = -1])

GetDisplayUserRight() renvoie les droits d'un utilisateur



Parameters

string   $indice  
string   $module  
[ Top ]



getHttpParameters [line 48]

string getHttpParameters( [ $prefix = '?'])

getHttpParameters()

Renvoie les paramètres HTTP sous forme de chaîne de caractères




Parameters

   $prefix  
[ Top ]



getmicrotime [line 1093]

float getmicrotime( )

getmicrotime() renvoie le temps en microsecondes



[ Top ]



get_min_name [line 841]

string get_min_name( string $path)

get_min_name() obtenir le nom de la miniature d'un fichier



Parameters

string   $path  
[ Top ]



get_temp_name [line 826]

string get_temp_name( string $path)

get_temp_name() obtenir le nom temporaire d'un fichier



Parameters

string   $path  
[ Top ]



implode_with_keys [line 34]

string implode_with_keys( string $glue, string $array)

implode_with_keys()

implode avec clefs associées renvoyées sous forme de chaîne de caractères




Parameters

string   $glue  
string   $array  
[ Top ]



IncludedatePickerJs [line 224]

void IncludedatePickerJs( )

IncludedatePickerJs()

Include jQuery date Picker if needed




[ Top ]



IncludeJsTreeJs [line 134]

void IncludeJsTreeJs( )

IncludeJsTreeJs()

Include jQuery Jstree plugin




[ Top ]



IncludeLightboxJs [line 183]

void IncludeLightboxJs( )

IncludeLightboxJs()

Include Lightbox jQuery plugin if needed




[ Top ]



IncludeMultiSelectJs [line 202]

void IncludeMultiSelectJs( )

IncludeMultiSelectJs()

Include jQuery multiSelect plugin if needed




[ Top ]



IncludeRichTextEditor [line 149]

void IncludeRichTextEditor( )

IncludeRichTextEditor()

Include RichTextEditor if enabled




[ Top ]



IncludeTextCornerJs [line 125]

void IncludeTextCornerJs( )

IncludeTextCornerJs()

Include jQuery text-corner plugin if no js wysiwyg are enabled




[ Top ]



IncludeTextResizerJs [line 106]

void IncludeTextResizerJs( )

IncludeTextResizerJs()

Include jQuery text-resizer plugin if no js wysiwyg are enabled




[ Top ]



IncludeTimeline [line 82]

void IncludeTimeline( )

IncludeTimeline()

Include SIMILE Timeline JS code if needed




[ Top ]



isNullDate [line 712]

void isNullDate( $date)



Parameters

   $date  
[ Top ]



linkin_content [line 1027]

string linkin_content( string $content, [string $option = 'ALL'])

linkin_content() Cherche les liens et emails dans du contenu -> linkage



Parameters

string   $content  
string   $option  
[ Top ]



linkin_page [line 955]

string linkin_page( string $string_uri, integer $total, integer $debut, [integer $pas = SELECT_LIMIT])

linkin_page() création d'un navigateur de pages numérotées



Parameters

string   $string_uri  
integer   $total  
integer   $debut  
integer   $pas  
[ Top ]



ln10filename [line 557]

string ln10filename( string $file)

ln10filename() Build a localized filename according to the cuurent language



Parameters

string   $file  
[ Top ]



num_phpversion [line 283]

integer num_phpversion( )

num_phpversion() Retourne un entier comme numéro de version PHP



[ Top ]



optimize [line 18]

string optimize( string $buffer)

optimize()

callback method to ob_start()




Parameters

string   $buffer  
[ Top ]



QuickBoxNow [line 1054]

string QuickBoxNow( string $module, string $h1, string $liste, [string $suffixclass = ''])

QuickBoxNow() Génération de la quickbox



Parameters

string   $module  
string   $h1  
string   $liste  
string   $suffixclass  
[ Top ]



ReloadIndex [line 1075]

void ReloadIndex( string $item)

ReloadIndex() Chargement de l'index après destruction de sessions



Parameters

string   $item  
[ Top ]



ReplaceInvalidChars [line 436]

string ReplaceInvalidChars( string $str)

ReplaceInvalidChars() Remplacement des caractères invalides par leurs entités HTML



Parameters

string   $str  
[ Top ]



stripAccents [line 458]

void stripAccents( $string)



Parameters

   $string  
[ Top ]



stripText [line 468]

void stripText( $text)



Parameters

   $text  
[ Top ]



strip_input [line 60]

string strip_input( string $str, [string $exceptions = false])

strip_input()

Remove PHP and HTML code




Parameters

string   $str  
string   $exceptions  
[ Top ]



SureCreateDir [line 250]

integer SureCreateDir( string $pathname, integer $perms)

SureCreateDir() Créer un dossier s'il n'existe pas.



Parameters

string   $pathname  
integer   $perms  
[ Top ]



SureRemoveDir [line 265]

integer SureRemoveDir( $dir, $DeleteMe)

SureRemoveDir() Supprime le contenu d'un dossier et le dossier lui-même si précisé.



Parameters

   $dir  
   $DeleteMe  
[ Top ]



system_error [line 810]

void system_error( [string $msg = ERROR_SYSTEM])

system_error() Affichage d'un message d'erreur syst�me



Tags:

return:  (echo)


Parameters

string   $msg  
[ Top ]



themeInclude [line 624]

void themeInclude( string $file, [string $path = 0])

themeInclude() Include the required file if no user file is found in theme, includes the default module version file.



Parameters

string   $file  
string   $path  
[ Top ]



themePath [line 650]

string themePath( string $file, [string $path = 0])

themePath() check if a template file version exists or not if no user file is found in theme, return the default module version file.



Parameters

string   $file  
string   $path  
[ Top ]



toStringSqlDate [line 490]

string toStringSqlDate( [string $format = 'short'])

toStringSqlDate() Renvoie la date au format SQL



Parameters

string   $format  
[ Top ]



_debug [line 1171]

void _debug( $string $string, $mode)

_debug()

Display a debug message in html code




Parameters

$string   $string  
   $mode  
[ Top ]



Documentation generated on Fri, 16 Oct 2009 09:35:34 +0200 by phpDocumentor 1.4.1