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

Class: config_file

Source Location: /class/class.config_file.php

Class Overview




Variables

Methods



Class Details

[line 18]


[ Top ]


Class Variables

$authorized_db_sections = array ('DATABASE_SETTINGS')

[line 31]


Type:   mixed


[ Top ]

$authorized_release_sections = array ('LANGUAGE_SETTINGS','NOTIFICATION_SETTINGS','LOCALES_SETTINGS','MODULES_SETTINGS','DEBUG_SETTINGS', 'COMMENT_SETTINGS', 'SYSTEM_SETTINGS', 'SERVER_SETTINGS','MAIL_SETTINGS','MAIL_INFORMATIONS', 'SUPPORT_SETTINGS','LOGS_SETTINGS')

[line 30]


Type:   mixed


[ Top ]

$authorized_theme_sections = array ('THEME_SETTINGS')

[line 32]


Type:   mixed


[ Top ]

$a_file =

[line 36]


Type:   mixed


[ Top ]

$backup_config_path =  '../tmp/backup/config/'

[line 29]


Type:   mixed


[ Top ]

$config_params =

[line 34]


Type:   mixed


[ Top ]

$config_path =  '../config/'

[line 27]


Type:   mixed


[ Top ]

$dispatcher =  null

[line 42]



Tags:

access:  protected

Type:   mixed


[ Top ]

$extra_configfile =  false

[line 23]


Type:   mixed


[ Top ]

$file_config =  "config.ini"

[line 20]


Type:   mixed


[ Top ]

$file_release =  "release.ini"

[line 21]


Type:   mixed


[ Top ]

$ini_path =  '../config/'

[line 28]


Type:   mixed


[ Top ]

$php_extension =  ".php"

[line 33]


Type:   mixed


[ Top ]

$release_params =

[line 35]


Type:   mixed


[ Top ]

$section_database =  "database"

[line 26]


Type:   mixed


[ Top ]

$section_main =  "config"

[line 24]


Type:   mixed


[ Top ]

$section_theme =  "theme"

[line 25]


Type:   mixed


[ Top ]

$theme_admin = 'THEME_ADMIN'

[line 40]


Type:   mixed


[ Top ]

$theme_list_admin = 'THEME_LIST_ADMIN'

[line 41]


Type:   mixed


[ Top ]

$theme_list_public = 'THEME_LIST_PUBLIC'

[line 39]


Type:   mixed


[ Top ]

$theme_public = 'THEME_PUBLIC'

[line 38]


Type:   mixed


[ Top ]

$theme_settings = 'THEME_SETTINGS'

[line 37]


Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 50]

void __construct( [ $extraconfigfile = false])

config_file::__construct()

constructeur de classe




Tags:

access:  public


Parameters:

   $extraconfigfile  

[ Top ]

method backupParams [line 201]

boolean backupParams( string $file_name)

config_file::backupParams()

sauvegarde le fichier $file_name dans le répertoire de backup




Tags:

access:  public


Parameters:

string   $file_name  

[ Top ]

method convert_type [line 602]

int convert_type( unknown_type $var)

config_file::convert_type()

conversion d'une variable en entier ou en float selon son contenu




Tags:

return:  or float
access:  public


Parameters:

unknown_type   $var  

[ Top ]

method getDatabaseParams [line 246]

string getDatabaseParams( [string $updatable = false], [string $hidden = false])

config_file::getDatabaseParams()

retourne le contenu HTML en édition ou non des sections éditables




Tags:

access:  public


Parameters:

string   $updatable   : champ texte modifiable
string   $hidden   : présence d'input type hidden

[ Top ]

method getOneThemeParams [line 423]

string getOneThemeParams( [string $updatable = false], [string $hidden = false], [string $selected = false], string $value, string $field_name, string $radio_name, $type)

config_file::getOneThemeParams()

retourne les informations relatives à un thème




Tags:

access:  public


Parameters:

string   $updatable  
string   $hidden  
string   $selected  
string   $value  
string   $field_name  
string   $radio_name  
   $type  

[ Top ]

method getParams [line 263]

string getParams( string $file_name, [string $updatable = false], [string $hidden = false])

config_file::getParams()

retourne le contenu HTML en édition ou non des sections éditables




Tags:

access:  public


Parameters:

string   $updatable   : champ texte modifiable
string   $hidden   : présence d'input type hidden
string   $file_name  

[ Top ]

method getPhpInfo [line 625]

string getPhpInfo( )

config_file::getPhpInfo()

Retourne un string contenant les informations php en html




Tags:

access:  public


[ Top ]

method getReleaseParams [line 230]

string getReleaseParams( [string $updatable = false], [string $hidden = false])

config_file::getReleaseParams()

retourne le contenu HTML en édition ou non des sections éditables




Tags:

access:  public


Parameters:

string   $updatable   : champ texte modifiable
string   $hidden   : présence d'input type hidden

[ Top ]

method getThemeParams [line 361]

string getThemeParams( [string $updatable = false], [string $hidden = false])

config_file::getThemeParams()

retourne le contenu HTML en édition ou non des sections éditables




Tags:

access:  public


Parameters:

string   $updatable   : champ texte modifiable
string   $hidden   : présence d'input type hidden

[ Top ]

method init [line 71]

void init( void 0)

config_file::init()

charge les paramètres des fichiers ini et les place en constante globale avec define




Tags:

access:  public


Parameters:

void   0  

[ Top ]

method parseConfig [line 486]

array parseConfig( string $file_name, [ $whithsection = true])

config_file::parseConfig()

retourne un tableau contenant les paramètres du fichier ini $file_name




Tags:

access:  public


Parameters:

string   $file_name  
   $whithsection  

[ Top ]

method setParams [line 115]

void setParams( array $array)

config_file::setParams()

Ecrase les valeurs contenues dans le tableau stocké dans l'attribut $this->config_params pour mise à jour des valeurs




Tags:

access:  public


Parameters:

array   $array   new values to override to params

[ Top ]

method writePhpParams [line 467]

boolean writePhpParams( string $file_name)

config_file::writePhpParams()

écrit le fichier $file_name dans le répertoire de config, au format PHP




Tags:

access:  public


Parameters:

string   $file_name  

[ Top ]

method writeReleaseParams [line 180]

boolean writeReleaseParams( )

config_file::writeReleaseParams()

écrit dans le fichier ini les paramètres du tableau $release_params




Tags:

access:  public


[ Top ]


Documentation generated on Thu, 20 Mar 2014 16:46:06 +0100 by phpDocumentor 1.4.1