ご注意ください

このWikiに書かれた情報は、Risoluto1.x系に関するものです。 Risoluto1.x系は開発が終了しており、現在Risoluto2.x系の開発が進められています。

最近の更新

2012-10-11
2012-04-05
2012-03-27

Últimos archivo liberados

risoluto (1.3.1)2011-09-27 15:41
risoluto-upgrade (1.3.0 to 1.3.1)2011-10-24 15:51
simpleblog (1.4.0)2011-10-19 14:50
simpleblog-upgrade (1.2.0 to 1.3.0)2011-07-21 23:13
simplepage (1.3.0)2011-10-19 14:45
simplepage-upgrade (1.1.0 to 1.2.0)2011-07-21 23:15

Wikiガイド

サイドバー

Return

Class reference:RisolutoConf class(risoluto_conf.php)

Abstruction of the class

Risolute adopts Ini as a format for configuration file. This class loads the Ini formatted configuration file, then parse it to provide method to retrieve the information.

How to create class instance

  1. require_once( RISOLUTO_FUNC . 'risoluto_conf.php' );
  2. $instance = new RisolutoConf();

What this class depends on

  • None

Contents of class

Class variable

$arr_parsedconf

Scopeprivate(static)
Typearray
PurposeConfiguration information after parsing will be stored.

$bool_parsestatus

Scopeprivate(static)
Typeboolean
PurposeResult if it was parsed (true: parsed / false: not parsed).

Class method

__construct()

Scopepublic
Parameternone
Return valuenone
PurposeConstructor of this class (no actual processing).

__clone()

Scopepublic
ParameterNone
Return valueNone
Type of return valuenone
PurposeClone method of this class (no actual processing).

is_Parsed()

Scopepublic
Parameter none
Return valueResult of function execution (true: parsed / false: not parsed).
Type of return valueboolean
Purpose Answer if the configration file used by this class was parsed or not.
  1. $result = $instance->is_Parsed();
  2. var_dump( $result );

parse()

Scopepublic
Parameter string $path pas for ini file
Return valueResult of function execution (true: normal termination / false: abnormal termination)
Type of return value boolean
PurposeAfter loading, parse the Ini file assigned by parameter. If it can not be parsed by any reason, return false.
  1. $result = $instance->parse( RISOLUTO_CONF . 'risoluto.ini' );
  2. var_dump( $result );

get()

Scopepublic
Parameterstring $section Section of searching target / string $key Key for searching target
Return valueArray applied for the section or value for key. If neither of them exists, it will be null.
Type of return valuestring
PurposeIn case only section was assigned from ini file, all values in the section will be returned as an array. If a key was assigned, a value of the key will be retuned.
  1. $instance->parse( RISOLUTO_CONF . 'risoluto.ini' );
  2. $result = $instance->get( 'DBS', 'DEFAULT_DSN' );
  3. var_dump( $result );

Return