1<?php
2/**
3 * Configuration ptions for the phpipam plugin
4 * https://www.dokuwiki.org/devel:configuration#configuration_metadata
5 */
6
7if ( !defined('DOKU_PLUGIN') )
8    define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/') ;
9
10// PHPIPAM REST API
11$meta['api_url']       = array( 'string', '_pattern' => '#https?://\w+#', '_delimiter' => '#' ) ;
12$meta['api_app']       = array( 'string', '_pattern' => '/\w+/' ) ;
13$meta['api_key']       = array( 'string', '_pattern' => '/[a-f0-9]*/' ) ;
14$meta['api_usr']       = array( 'string', '_pattern' => '/\w*/' ) ;
15$meta['api_pwd']       = array( 'password', '_code' => 'plain' ) ;
16$meta['api_taf']       = array( 'onoff' ) ;
17
18// Output Presentation Options : PHPIPAM
19$meta['opo_cf1']       = array( 'string', '_pattern' => '/\w*/' ) ;
20$meta['opo_cf2']       = array( 'string', '_pattern' => '/\w*/' ) ;
21$meta['opo_efa']       = array( 'string', '_pattern' => '/[\w,]*/' ) ;
22$meta['opo_efs']       = array( 'string', '_pattern' => '/[\w,]*/' ) ;
23$meta['opo_efd']       = array( 'string', '_pattern' => '/[\w,]*/' ) ;
24$meta['opo_efl']       = array( 'string', '_pattern' => '/[\w,]*/' ) ;
25$meta['opo_efv']       = array( 'string', '_pattern' => '/[\w,]*/' ) ;
26$meta['opo_efr']       = array( 'string', '_pattern' => '/[\w,]*/' ) ;
27#$meta['opo_ef2']       = array( 'string', '_pattern' => '/[\w,]*/' ) ;
28$meta['opo_l10']       = array( 'dirchoice', '_dir' => DOKU_PLUGIN.'phpipam/lang/' ) ;
29$meta['opo_mdn']       = array( 'string', '_pattern' => '/[\w\.]*/' ) ;
30$meta['opo_url']       = array( 'string', '_pattern' => '#(https?://\w+)?#', '_delimiter' => '#' ) ;
31
32// Output Presentation Options : XHTML+CSS
33$meta['opo_dat']       = array( 'onoff' ) ;
34$meta['opo_eca']       = array( 'onoff' ) ;
35$meta['opo_dsc']       = array( 'multichoice', '_other' => 'exists', '_choices' => array('dl','tr','ul','p','pre') ) ;
36$meta['opo_lst']       = array( 'multichoice', '_other' => 'exists', '_choices' => array('ul','tr','dl', 'p') ) ;
37#$meta['opo_css']       = array( 'dirchoice', '_dir' => DOKU_PLUGIN.'phpipam/ui/' ) ;
38
39// ex: se ai et ts=4 st=4 bf :
40// vi: se ai et ts=4 st=4 bf :
41// vim: set ai et ts=4 st=4 bf sts=4 cin ff=unix fenc=utf-8 : enc=utf-8
42// atom:set useSoftTabs tabLength=4 lineending=lf encoding=utf-8
43// -*- Mode: tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
44?>
45