Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
System_Asset_Config Class Reference
Inheritance diagram for System_Asset_Config:
Config MySource_Object

Public Member Functions

 __construct ()
 
 save ($vars, $backup_existing=FALSE, $send_message=TRUE)
 
 _paintConfigVar ($var_name, $value, $var_export=true)
 
- Public Member Functions inherited from Config
 __construct ()
 
 save ($vars, $backup_existing=FALSE, $send_message=TRUE)
 
 acquireLock ()
 
 canAcquireLock ()
 
 releaseLock ()
 
 updateLock ()
 
 getLockInfo ()
 
 writeAccess ()
 
 paintBackend (&$o)
 
 processBackend (&$o)
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Data Fields

 $config_vars
 
- Data Fields inherited from Config
 $config_vars = Array()
 
 $config_file = ''
 
 $name = ''
 
- Data Fields inherited from MySource_Object
 $_tmp
 

Additional Inherited Members

- Protected Member Functions inherited from Config
 _paintConfigVar ($var_name, $value, $var_export=TRUE)
 

Detailed Description

Definition at line 31 of file system_asset_config.inc.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 44 of file system_asset_config.inc.

Member Function Documentation

_paintConfigVar (   $var_name,
  $value,
  $var_export = true 
)

Paint out the code for the config file for the passed config

This allows extra things to be added for special cases

Parameters
string$namethe config var name
mixed$valuethe value that the config var has
boolean$var_exportwhether to run the value through var_export or not
Returns
boolean whether the value is valid or not

Definition at line 82 of file system_asset_config.inc.

save (   $vars,
  $backup_existing = FALSE,
  $send_message = TRUE 
)

Rewrites the conf file with current variables

Parameters
Array$varsthe array with any new values (that are allowed to be edited) Array('[config_var_name]' => [scalar value])
boolean$backup_existingwhether we should backup the existing config file first
boolean$send_messagewhether to send a message using the messaging system
Returns
boolean indicates whether the file was written public

Definition at line 63 of file system_asset_config.inc.

Field Documentation

$config_vars
Initial value:
= Array(
'PRINT_SYSTEM_ASSETS' => Array('editable' => 0, 'default' => ''),
)

Definition at line 35 of file system_asset_config.inc.


The documentation for this class was generated from the following file: