Overview

Classes

  • Ws_logged_inModel
  • Ws_permissionsModel
  • Ws_role_permModel
  • Ws_rolesModel
  • Ws_user_roleModel
  • Ws_userModel
  • WsAuth
  • WsauthController
  • WsChart
  • WsConfig
  • WsController
  • WsDatabase
  • WsForm
  • WsImage
  • WsLocalize
  • WsModel
  • WsModelForm
  • WsModelGridView
  • WsUrl

Functions

  • __autoload
  • callHook
  • WsErrorHandler
  • Overview
  • Class

Class WsConfig

WsConfig Sets or fetch config variables. Good practice is to define all default config variables in 'protected/config/config.php' file.

Example usage:

// get database driver name
$cs = WsConfig::get('db_driver');

// set database host name to localhost
WsConfig::set('db_host', 'localhost');
Located at WsConfig.class.php
Methods summary
public static boolean
# set( string $_name, string $_value )

Sets global configuration variable.

Sets global configuration variable.

Parameters

$_name
Variable name
$_value
Variable value

Returns

boolean
True on success
public static string
# get( string $_name )

Fetch global configuration variable.

Fetch global configuration variable.

Parameters

$_name
Variable name

Returns

string
Value of variable
public static boolean
# exists( string $_name )

Check if config variable exists

Check if config variable exists

Parameters

$_name
Variable name

Returns

boolean
True or False
API documentation generated by ApiGen