GObject.Object
Midgard.Config
Import line: | Midgard = imports.gi.Midgard; |
GIR File: | Midgard-10.05.gir |
C documentation: | MidgardConfig |
Class : | Config |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
authtype : String
|
Midgard.Config | |
blobdir : String
|
Midgard.Config | |
cachedir : String
|
Midgard.Config | |
database : String
|
Midgard.Config | |
database : String
read only
|
Midgard.Config | |
dbdir : String
|
Midgard.Config | |
dbdir : String
read only
|
Midgard.Config | |
dbpass : String
|
Midgard.Config | |
dbpass : String
read only
|
Midgard.Config | |
dbport : Number
read only
|
Midgard.Config | |
dbtype : String
|
Midgard.Config | |
dbtype : String
read only
|
Midgard.Config | |
dbuser : String
|
Midgard.Config | |
dbuser : String
read only
|
Midgard.Config | |
host : String
|
Midgard.Config | |
host : String
read only
|
Midgard.Config | |
logfilename : String
|
Midgard.Config | |
logfilename : String
read only
|
Midgard.Config | |
loglevel : String
|
Midgard.Config | |
loglevel : String
read only
|
Midgard.Config | |
midgardpassword : String
|
Midgard.Config | |
midgardusername : String
|
Midgard.Config | |
pamfile : String
|
Midgard.Config | |
parent : GObject.Object
read only
|
Midgard.Config | |
port : Number
|
Midgard.Config | |
sharedir : String
|
Midgard.Config | |
tablecreate : Boolean
|
Midgard.Config | |
tablecreate : Boolean
read only
|
Midgard.Config | |
tableupdate : Boolean
|
Midgard.Config | |
tableupdate : Boolean
read only
|
Midgard.Config | |
testunit : Boolean
|
Midgard.Config | |
vardir : String
|
Midgard.Config |
Method / Constructor | Defined By | |
---|---|---|
new Midgard.Config
(Object properties)
Create a new Midgard.Config
Create a new Midgard.Config
|
||
List all available configuration files.
List all available configuration files. If user value is set to TRUE, all available files from ~/.midgard/conf.d will be listed. Only system files ( usually from /etc/midgard/conf.d ) will be listed if user value is set to FALSE. Returned array should be freed when no longer needed.
|
Midgard.Config | |
copy
()
:
Midgard.Config
|
Midgard.Config | |
create_blobdir
()
:
Boolean
Creates directories for blobs
Creates directories for blobs
|
Midgard.Config | |
get_authtype
()
:
String
|
Midgard.Config | |
get_blobdir
()
:
String
|
Midgard.Config | |
get_database_host
()
:
String
|
Midgard.Config | |
get_database_name
()
:
String
|
Midgard.Config | |
get_database_password
()
:
String
|
Midgard.Config | |
get_database_port
()
:
Number
|
Midgard.Config | |
get_database_type
()
:
String
|
Midgard.Config | |
get_database_username
()
:
String
|
Midgard.Config | |
get_logfile
()
:
String
|
Midgard.Config | |
get_loglevel
()
:
String
|
Midgard.Config | |
get_midgard_password
()
:
String
|
Midgard.Config | |
get_midgard_username
()
:
String
|
Midgard.Config | |
get_pamfile
()
:
String
|
Midgard.Config | |
get_schema_dir
()
:
String
|
Midgard.Config | |
get_table_create
()
:
Boolean
|
Midgard.Config | |
get_table_update
()
:
Boolean
|
Midgard.Config | |
get_testunit
()
:
Boolean
|
Midgard.Config | |
Midgard.Config | ||
This method reads configuration file from the given name and sets MidgardConfig object's properties.
This method reads configuration file from the given name and sets MidgardConfig object's properties. Such initialized MidgardConfig instance may be reused among midgard-core and midgard-php extension for example, without any need to re-read configuration file and without any need to re-initalize MidgardConfig object instance. Set TRUE as user boolean value to read files from user's home directory.
|
Midgard.Config | |
Midgard.Config | ||
Saves configuration file for the given MidgardConfig.
Saves configuration file for the given MidgardConfig. This method saves configuration file with the given name. If third user parameter is set to TRUE, then configuration file will be saved in ~/.midgard2/conf.d directory. User's conf.d directory will be created if doesn't exist. directory doesn't exist or file can not be saved.
|
Midgard.Config | |
set_authtype
(String authtype)
:
none
|
Midgard.Config | |
set_blobdir
(String blobdir)
:
none
|
Midgard.Config | |
set_database_host
(String host)
:
none
|
Midgard.Config | |
set_database_name
(String name)
:
none
|
Midgard.Config | |
set_database_password
(String password)
:
none
|
Midgard.Config | |
set_database_port
(Number port)
:
none
|
Midgard.Config | |
set_database_type
(String type)
:
none
|
Midgard.Config | |
set_database_username
(String username)
:
none
|
Midgard.Config | |
set_logfile
(String logfile)
:
none
|
Midgard.Config | |
set_loglevel
(String loglevel)
:
none
|
Midgard.Config | |
set_midgard_password
(String password)
:
none
|
Midgard.Config | |
set_midgard_username
(String username)
:
none
|
Midgard.Config | |
set_pamfile
(String pamfile)
:
none
|
Midgard.Config | |
set_schema_dir
(String dir)
:
none
|
Midgard.Config | |
set_table_create
(Boolean toggle)
:
none
|
Midgard.Config | |
set_table_update
(Boolean toggle)
:
none
|
Midgard.Config | |
set_testunit
(Boolean toggle)
:
none
|
Midgard.Config |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Midgard.Connection
Method |
Opens a MidgardConnection with the given configuration.
|