[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/ -> Config.class.php (sommaire)

(pas de description)

Poids: 1029 lignes (34 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

PMA_Config:: (33 méthodes):
  __construct()
  checkSystem()
  checkOutputCompression()
  checkClient()
  checkGd2()
  checkWebServer()
  checkWebServerOs()
  checkPhpVersion()
  __wakeup()
  loadDefaults()
  load()
  setSource()
  checkConfigFolder()
  checkConfigSource()
  get()
  set()
  getSource()
  PMA_Config()
  getMtime()
  checkPmaAbsoluteUri()
  checkCollationConnection()
  checkFontsize()
  checkUpload()
  checkUploadSize()
  checkIsHttps()
  isHttps()
  checkCookiePath()
  getCookiePath()
  enableBc()
  save()
  getFontsizeOptions()
  getFontsizeSelection()
  getFontsizeForm()


Classe: PMA_Config  - X-Ref

Configuration class

__construct($source = null)   X-Ref
constructor

param: string  source to read config from

checkSystem()   X-Ref
sets system and application settings


checkOutputCompression()   X-Ref
wether to use gzip output compression or not


checkClient()   X-Ref
Determines platform (OS), browser and version of the user
Based on a phpBuilder article:


checkGd2()   X-Ref
Whether GD2 is present


checkWebServer()   X-Ref
Whether the Web server php is running on is IIS


checkWebServerOs()   X-Ref
Whether the os php is running on is windows or not


checkPhpVersion()   X-Ref
detects PHP version


__wakeup()   X-Ref
re-init object after loading from session file
checks config file for changes and relaods if neccessary


loadDefaults()   X-Ref
loads default values from default source

return: boolean     success

load($source = null)   X-Ref
loads configuration from $source, usally the config file
should be called on object creation and from __wakeup if config file
has changed

param: string $source  config file

setSource($source)   X-Ref
set source

param: string  $source

checkConfigFolder()   X-Ref
checks if the config folder still exists and terminates app if true


checkConfigSource()   X-Ref
check config source

return: boolean wether source is valid or not

get($setting)   X-Ref
returns specific config setting

param: string  $setting
return: mixed   value

set($setting, $value)   X-Ref
sets configuration variable

param: string  $setting    configuration option
param: string  $value      new value for configuration option

getSource()   X-Ref
returns source for current config

return: string  config source

PMA_Config($source = null)   X-Ref
old PHP 4 style constructor


getMtime()   X-Ref
returns time of last config change.

return: int  Unix timestamp

checkPmaAbsoluteUri()   X-Ref
$cfg['PmaAbsoluteUri'] is a required directive else cookies won't be
set properly and, depending on browsers, inserting or updating a
record might fail


checkCollationConnection()   X-Ref
check selected collation_connection


checkFontsize()   X-Ref
checks for font size configuration, and sets font size as requested by user


checkUpload()   X-Ref
checks if upload is enabled


checkUploadSize()   X-Ref
Maximum upload size as limited by PHP
Used with permission from Moodle (http://moodle.org) by Martin Dougiamas

this section generates $max_upload_size in bytes

checkIsHttps()   X-Ref
check for https


isHttps()   X-Ref


checkCookiePath()   X-Ref
detect correct cookie path


getCookiePath()   X-Ref


enableBc()   X-Ref
enables backward compatibility


save()   X-Ref


getFontsizeOptions($current_size = '100%')   X-Ref
returns options for font size selection

param: string  $current_size   current selected font size with unit
return: array   selectable font sizes

getFontsizeSelection()   X-Ref
returns html selectbox for font sizes

param: string  $current_size   currently slected font size with unit
return: string  html selectbox

getFontsizeForm()   X-Ref
return complete font size selection form

param: string  $current_size   currently slected font size with unit
return: string  html selectbox



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics