| /dokuwiki/inc/Feed/ |
| H A D | FeedCreatorOptions.php | 8 * Hold the options for feed generation 36 /** @var array[] the set options */ 37 public $options = [ variable in dokuwiki\\Feed\\FeedCreatorOptions 56 * Initialize the options from the request, falling back to config defaults 59 * @param array $options additional options to set (for testing) 61 public function __construct($options = []) argument 66 $this->options['type'] = $INPUT->valid( 72 $this->options['feed_mode'] = $INPUT->str('mode', 'recent'); 73 $this->options['link_to'] = $INPUT->valid( 78 $this->options['item_content'] = $INPUT->valid( [all …]
|
| H A D | FeedCreator.php | 13 protected $options; variable in dokuwiki\\Feed\\FeedCreator 16 * @param FeedCreatorOptions $options 18 public function __construct(FeedCreatorOptions $options) argument 20 $this->options = $options; 23 $this->feed->title = $this->options->get('title'); 24 $this->feed->description = $this->options->get('subtitle'); 39 $items = match ($this->options->get('feed_mode')) { 49 'opt' => &$this->options->options, 59 return $this->feed->createFeed($this->options->getType()); 84 if ($this->options->get('show_summary') && $proc->getSummary()) { [all …]
|
| /dokuwiki/bin/ |
| H A D | render.php | 5 use splitbrain\phpcli\Options; alias 25 * Register options and arguments on the given $options object 27 * @param Options $options 30 protected function setup(Options $options) argument 32 $options->setHelp( 39 … $options->registerOption('renderer', 'The renderer mode to use. Defaults to xhtml', 'r', 'mode'); 45 * Arguments and options have been parsed when this is run 47 * @param Options $options 51 protected function main(Options $options) argument 53 $renderer = $options->getOpt('renderer', 'xhtml');
|
| H A D | striplangs.php | 5 use splitbrain\phpcli\Options; alias 17 * Register options and arguments on the given $options object 19 * @param Options $options 22 protected function setup(Options $options) argument 25 $options->setHelp( 30 $options->registerOption( 36 $options->registerOption( 46 * Arguments and options have been parsed when this is run 48 * @param Options $options 51 protected function main(Options $options) argument [all …]
|
| H A D | indexer.php | 6 use splitbrain\phpcli\Options; alias 21 * Register options and arguments on the given $options object 23 * @param Options $options 26 protected function setup(Options $options) argument 28 $options->setHelp( 33 $options->registerOption( 38 $options->registerOption( 48 * Arguments and options have been parsed when this is run 50 * @param Options $options 53 protected function main(Options $options) argument [all …]
|
| H A D | plugin.php | 8 use splitbrain\phpcli\Options; alias 18 * Register options and arguments on the given $options object 20 * @param Options $options 23 protected function setup(Options $options) argument 25 $options->setHelp('Excecutes Plugin command line tools'); 26 …$options->registerArgument('plugin', 'The plugin CLI you want to run. Leave off to see list', fals… 32 * Arguments and options have been parsed when this is run 34 * @param Options $options 37 protected function main(Options $options) argument 40 $argv = $options->getArgs(); [all …]
|
| H A D | dwpage.php | 5 use splitbrain\phpcli\Options; alias 21 * Register options and arguments on the given $options object 23 * @param Options $options 26 protected function setup(Options $options) argument 29 $options->registerOption( 34 $options->registerOption( 40 $options->setHelp( 46 $options->registerCommand( 54 $options->registerArgument( 60 $options->registerArgument( [all …]
|
| H A D | wantedpages.php | 7 use splitbrain\phpcli\Options; alias 28 * Register options and arguments on the given $options object 30 * @param Options $options 33 protected function setup(Options $options) argument 35 $options->setHelp( 39 $options->registerArgument( 45 $options->registerOption( 52 $options->registerOption( 62 * Arguments and options have been parsed when this is run 64 * @param Options $options [all …]
|
| H A D | gittool.php | 7 use splitbrain\phpcli\Options; alias 21 * Register options and arguments on the given $options object 23 * @param Options $options 26 protected function setup(Options $options) argument 28 $options->setHelp( 35 $options->registerArgument( 41 $options->registerCommand( 46 $options->registerArgument( 53 $options->registerCommand( 58 $options->registerArgument( [all …]
|
| /dokuwiki/inc/Form/ |
| H A D | OptGroup.php | 7 protected $options = []; variable in dokuwiki\\Form\\OptGroup 12 * @param array $options The available options 14 public function __construct($label, $options) argument 17 $this->options($options); 26 * @return string[] the values that have been set (options exist) 33 if (isset($this->options[$value])) { 42 * Get or set the options of the optgroup 44 * Options can be given as associative array (value => label) or as an 54 * @param null|array $options 57 public function options($options = null) function in dokuwiki\\Form\\OptGroup [all …]
|
| H A D | DropdownElement.php | 22 * @param array $options The available options 25 public function __construct($name, $options, $label = '') argument 29 $this->optGroups[''] = new OptGroup(null, $options); 34 * Add an `<optgroup>` and respective options 37 * @param array $options 41 public function addOptGroup($label, $options) argument 46 $this->optGroups[$label] = new OptGroup($label, $options); 55 * * the value being an array of options as defined in @param null|array $optGroups 57 * @see OptGroup::options() 66 …new \InvalidArgumentException(hsc('Argument must be an associative array of label => [options]!')); [all …]
|
| /dokuwiki/vendor/splitbrain/slika/src/ |
| H A D | Slika.php | 18 /** these can be overwritten using the options array in run() */ 36 * @param array $options 40 public static function run($imagePath, $options = []) argument 42 $options = array_merge(self::DEFAULT_OPTIONS, $options); 44 if (is_executable($options['imconvert'])) { 45 return new ImageMagickAdapter($imagePath, $options); 49 return new GdAdapter($imagePath, $options);
|
| H A D | Adapter.php | 14 /** @var array Adapter Options */ 15 protected $options; variable in splitbrain\\slika\\Adapter 21 * @param array $options set options 24 public function __construct($imagepath, $options = []) argument 35 $this->options = array_merge(Slika::DEFAULT_OPTIONS, $options);
|
| /dokuwiki/vendor/splitbrain/php-cli/src/ |
| H A D | Base.php | 19 /** @var Options the option parser */ 20 protected $options; variable in splitbrain\\phpcli\\Base 99 $this->options = new Options($this->colors); 103 * Register options and arguments on the given $options object 105 * @param Options $options 110 abstract protected function setup(Options $options); argument 115 * Arguments and options have been parsed when this is run 117 * @param Options $options 122 abstract protected function main(Options $options); argument 127 …* Executes the setup() routine, adds default options, initiate the options parsing and argument ch… [all …]
|
| /dokuwiki/lib/scripts/jquery/ |
| H A D | jquery.cookie.js | 55 var config = $.cookie = function (key, value, options) { 60 options = $.extend({}, config.defaults, options); 62 if (typeof options.expires === 'number') { 63 var days = options.expires, t = options.expires = new Date(); 69 …options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max… 70 options.path ? '; path=' + options.path : '', 71 options.domain ? '; domain=' + options.domain : '', 72 options.secure ? '; secure' : '' 107 $.removeCookie = function (key, options) { argument 112 // Must not alter options, thus extending a fresh object... [all …]
|
| /dokuwiki/lib/plugins/usermanager/ |
| H A D | cli.php | 5 use splitbrain\phpcli\Options; alias 19 protected function setup(Options $options) argument 22 $options->setHelp( 27 $options->registerCommand('list', 'List users'); 28 $options->registerOption('verbose', 'Show detailed user information', 'v', false, 'list'); 31 $options->registerCommand('add', 'Add an user to auth backend'); 32 $options->registerArgument('login', 'Username', true, 'add'); 33 $options->registerArgument('mail', 'Email address', true, 'add'); 34 $options->registerArgument('name', 'Full name', false, 'add'); 35 $options->registerArgument('groups', 'Groups to be added, comma-seperated', false, 'add'); [all …]
|
| /dokuwiki/vendor/splitbrain/php-cli/ |
| H A D | README.md | 30 use splitbrain\phpcli\Options; 34 // register options and arguments 35 protected function setup(Options $options) 37 $options->setHelp('A very minimal example that does nothing but print a version'); 38 $options->registerOption('version', 'print version', 'v'); 42 protected function main(Options $options) 44 if ($options->getOpt('version')) { 47 echo $options->help(); 62 - implement the ```setup($options)``` method and register options, arguments, commands and set help… 63 - ``$options->setHelp()`` adds a general description [all …]
|
| /dokuwiki/lib/plugins/extension/ |
| H A D | cli.php | 12 use splitbrain\phpcli\Options; alias 26 protected function setup(Options $options) argument 29 $options->useCompactHelp(); 30 $options->setHelp( 41 $options->registerCommand('search', 'Search for an extension'); 42 …$options->registerOption('max', 'Maximum number of results (default 10)', 'm', 'number', 'search'); 43 … $options->registerOption('verbose', 'Show detailed extension information', 'v', false, 'search'); 44 $options->registerArgument('query', 'The keyword(s) to search for', true, 'search'); 47 $options->registerCommand('list', 'List installed extensions'); 48 … $options->registerOption('verbose', 'Show detailed extension information', 'v', false, 'list'); [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/HTTP/ |
| H A D | FileClient.php | 27 private $options; variable in SimplePie\\HTTP\\FileClient 30 … redirects?: int, useragent?: string, force_fsockopen?: bool, curl_options?: array<mixed>} $options 32 public function __construct(Registry $registry, array $options = []) argument 35 $this->options = $options; 60 $this->options['timeout'] ?? 10, 61 $this->options['redirects'] ?? 5, 63 $this->options['useragent'] ?? Misc::get_default_useragent(), 64 $this->options['force_fsockopen'] ?? false, 65 $this->options['curl_options'] ?? []
|
| /dokuwiki/.github/ |
| H A D | release.php | 30 protected function setup(\splitbrain\phpcli\Options $options) argument 32 $options->setHelp('This tool is used to gather and check data for building a release'); 34 $options->registerCommand('new', 'Get environment for creating a new release'); 35 …$options->registerOption('type', 'The type of release to build', null, join('|', self::TYPES), 'ne… 36 …$options->registerOption('date', 'The date to use for the version. Defaults to today', null, 'YYYY… 37 …$options->registerOption('name', 'The codename to use for the version. Defaults to the last used o… 39 $options->registerCommand('current', 'Get environment of the current release'); 42 protected function main(\splitbrain\phpcli\Options $options) argument 44 switch ($options->getCmd()) { 46 $this->prepareNewEnvironment($options); [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/Cache/ |
| H A D | MySQL.php | 31 * Options 35 protected $options; variable in SimplePie\\Cache\\MySQL 53 $this->options = [ 65 … $this->options = array_replace_recursive($this->options, \SimplePie\Cache::parse_URL($location)); 68 $this->options['dbname'] = substr($this->options['path'], 1); 71 …l:dbname={$this->options['dbname']};host={$this->options['host']};port={$this->options['port']}", … 89 if (!in_array($this->options['extras']['prefix'] . 'cache_data', $db)) { 90 …$query = $this->mysql->exec('CREATE TABLE `' . $this->options['extras']['prefix'] . 'cache_data` (… 92 …trigger_error("Can't create " . $this->options['extras']['prefix'] . "cache_data table, check perm… 98 if (!in_array($this->options['extras']['prefix'] . 'items', $db)) { [all …]
|
| H A D | Redis.php | 35 * Options 39 protected $options; variable in SimplePie\\Cache\\Redis 53 …* @param Base::TYPE_FEED|Base::TYPE_IMAGE|array<string, mixed>|null $options Either TYPE_FEED for … 55 public function __construct(string $location, string $name, $options = null) argument 69 if (!is_null($options) && is_array($options)) { 70 $this->options = $options; 72 $this->options = [ 78 $this->name = $this->options['prefix'] . $name; 102 if ($this->options['expire']) { 103 $this->cache->expire($this->name, $this->options['expire']); [all …]
|
| H A D | Memcache.php | 34 * Options 38 protected $options; variable in SimplePie\\Cache\\Memcache 56 $this->options = [ 64 … $this->options = array_replace_recursive($this->options, \SimplePie\Cache::parse_URL($location)); 66 $this->name = $this->options['extras']['prefix'] . md5("$name:$type"); 69 $this->cache->addServer($this->options['host'], (int) $this->options['port']); 83 …he->set($this->name, serialize($data), MEMCACHE_COMPRESSED, (int) $this->options['extras']['timeou… 128 …return $this->cache->set($this->name, $data, MEMCACHE_COMPRESSED, (int) $this->options['extras']['…
|
| H A D | Memcached.php | 34 * Options 37 protected $options; variable in SimplePie\\Cache\\Memcached 53 $this->options = [ 61 … $this->options = array_replace_recursive($this->options, \SimplePie\Cache::parse_URL($location)); 63 $this->name = $this->options['extras']['prefix'] . md5("$name:$type"); 66 $this->cache->addServer($this->options['host'], (int)$this->options['port']); 134 … $this->cache->set($this->name . '_mtime', time(), (int)$this->options['extras']['timeout']); 135 return $this->cache->set($this->name, $data, (int)$this->options['extras']['timeout']);
|
| /dokuwiki/_test/tests/Form/ |
| H A D | DropdownElementTest.php | 16 $options = array('first', 'second', 'third'); 17 $element = $form->addDropdown('foo', $options, 'label text'); 25 … $options = array('first' => 'A first Label', 'second' => 'The second Label', 'third' => 'Just 3'); 26 $element->options($options); 40 $options = $pq->find('option'); 41 $this->assertTrue($options->count() == 3); 57 $options = array( 72 $form->addDropdown('foo', $options, 'label text'); 80 $options = $pq->find('option'); 81 $this->assertEquals(3, $options->count()); [all …]
|