xref: /plugin/vshare/helper.php (revision 5895dcbaf50020ca1f8fb63a4a2057581cbcca11)
1b82f24afSAndreas Gohr<?php
2b82f24afSAndreas Gohr
3*5895dcbaSAndreas Gohruse dokuwiki\Extension\Plugin;
4*5895dcbaSAndreas Gohr
5b82f24afSAndreas Gohr/**
6b82f24afSAndreas Gohr * DokuWiki Plugin vshare (Helper Component)
7b82f24afSAndreas Gohr *
8b82f24afSAndreas Gohr * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
9b82f24afSAndreas Gohr * @author  Andreas Gohr <andi@splitbrain.org>
10b82f24afSAndreas Gohr */
11*5895dcbaSAndreas Gohrclass helper_plugin_vshare extends Plugin
12b82f24afSAndreas Gohr{
13b82f24afSAndreas Gohr    /**
14b82f24afSAndreas Gohr     * Loads the configures sites and their data
15b82f24afSAndreas Gohr     *
16b82f24afSAndreas Gohr     * @return array
17b82f24afSAndreas Gohr     */
18b82f24afSAndreas Gohr    public static function loadSites()
19b82f24afSAndreas Gohr    {
20b82f24afSAndreas Gohr        return parse_ini_file(__DIR__ . '/sites.ini', true, INI_SCANNER_RAW);
21b82f24afSAndreas Gohr    }
22b82f24afSAndreas Gohr}
23