1<?php
2/**
3 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
4 * @author     Martyn Eggleton <martyn@access-space.org>
5 */
6// must be run within Dokuwiki
7if(!defined('DOKU_INC')) die();
8
9if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
10require_once(DOKU_PLUGIN.'syntax.php');
11require_once(DOKU_INC.'inc/infoutils.php');
12
13
14/**
15 * This is the base class for all syntax classes, providing some general stuff
16 */
17class helper_plugin_dataloop extends DokuWiki_Plugin {
18
19    /**
20     * constructor
21     */
22    function helper_plugin_dataloop(){
23        if(!function_exists('sqlite_open')){
24            msg('data plugin: SQLite support missing in this PHP install - plugin will not work',-1);
25        }
26    }
27
28    /**
29     * return some info
30     */
31    function getInfo($sName = null){
32        $aInfo =  array(
33            'author' => 'Martyn Eggleton for access-space.org (based on Andreas Gohr)',
34            'email'  => 'martyn@access-space.org',
35            'date'   => '2009-08-06',
36            'name'   => 'Data Loop Plugin',
37            'desc'   => 'Adds new output options to work with "Structured Data Plugin"',
38            'url'    => 'http://www.dokuwiki.org/plugin:dataloop',
39        );
40				if ($sName)
41				{
42					$aInfo['name'] = $sName;
43				}
44				return $aInfo;
45    }
46}
47