內容簡介
wp-IniFileLoad 是一個簡單的外掛程式。
此外掛程式提供了從 IniFile 中載入 WordPress 所需的公用資料的功能。
結果以關聯陣列形式返回。
IniFile 格式
Ini 檔的結構與 php.ini 相同。
結果以關聯陣列形式返回。(例如: sample01.ini)
區域 "data" 和 "function" 被定義為特殊區域。(例如: sample03.ini)
區域 "data" 以 "data" 鍵存放。(例如: sample01.ini)
您可以在區域名稱中兩個名稱之間放一個空格(除 "function" 之外)。當您撰寫區域名稱時,它會被解析為雙重關聯陣列。(例如: sample02.ini)
當存在帶有值的 lambda 函數的 "function" 區域時,結果會被轉換。(例如: sample03.ini)
除了 "data" 和 "function" 以外的區域會以 "option" 鍵存放。(例如: sample01.ini)
更新紀錄
版本 1.0
2008.02.23
第一個版本。
版本 1.1
2008.03.12
INI 數據具有緩存。我新增了 wp_clear_inidata 和 wp_reload_inifile 函數。
版本 1.1.1
2008.04.11
我將雙重關聯陣列不再限定為 "data" 區域。
外掛標籤
開發者團隊
原文外掛簡介
wp-IniFileLoad is a simple plug-in.
This plug in offers functions to load necessary common data from IniFile in your WordPress.
The result is returned an associative array for.
IniFile Format
The structure of the ini file is the same as the php.ini’s.
The result is returned an associative array for.(eg. sample01.ini)
Section “data” and “function” are defined as a special section.(eg. sample03.ini)
Section “data” is put in a “data” key.(eg. sample01.ini)
You can put a space between two names in a section name (exclude “function”). When you wrote the section name, it is parsed to a double associative arrays.(eg. sample02.ini)
When there is a “function” section, with a lambda function defined with a value, the result is converted.(eg. sample03.ini)
The section except “data” and “function” is put in an “option” key.(eg. sample01.ini)
History
ver. 1.0
2008.02.23
first version.
ver. 1.1
2008.03.12
INI data came to have cache. And I added function wp_clear_inidata and wp_reload_inifile.
ver. 1.1.1
2008.04.11
I did not limit a double associative array to a “data” section.
