Home
last modified time | relevance | path

Searched full:options (Results 1 – 25 of 160) sorted by relevance

1234567

/dokuwiki/inc/Feed/
H A DFeedCreatorOptions.php8 * Hold the options for feed generation
36 /** @var array[] the set options */
37 public $options = [ variable in dokuwiki\\Feed\\FeedCreatorOptions
58 * Initialize the options from the request, falling back to config defaults
61 * @param array $options additional options to set (for testing)
63 public function __construct($options = []) argument
68 $this->options['type'] = $INPUT->valid(
74 $this->options['feed_mode'] = $INPUT->str('mode', 'recent');
75 $this->options['link_to'] = $INPUT->valid(
80 $this->options['item_content'] = $INPUT->valid(
[all …]
H A DFeedCreator.php14 protected $options; variable in dokuwiki\\Feed\\FeedCreator
17 * @param FeedCreatorOptions $options
19 public function __construct(FeedCreatorOptions $options) argument
21 $this->options = $options;
24 $this->feed->title = $this->options->get('title');
25 $this->feed->description = $this->options->get('subtitle');
40 $items = match ($this->options->get('feed_mode')) {
50 'opt' => &$this->options->options,
60 return $this->feed->createFeed($this->options->getType());
85 if ($this->options->get('show_summary') && $proc->getSummary()) {
[all …]
/dokuwiki/bin/
H A Drender.php5 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 Dstriplangs.php5 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 Dindexer.php6 use splitbrain\phpcli\Options; alias
22 * Register options and arguments on the given $options object
24 * @param Options $options
27 protected function setup(Options $options) argument
29 $options->setHelp(
34 $options->registerOption(
39 $options->registerOption(
49 * Arguments and options have been parsed when this is run
51 * @param Options $options
54 protected function main(Options $options) argument
[all …]
H A Dplugin.php8 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 Ddwpage.php5 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 Dwantedpages.php7 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 Dgittool.php7 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(
52 $options->registerOption(
60 $options->registerCommand(
[all …]
/dokuwiki/inc/Form/
H A DOptGroup.php7 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 DDropdownElement.php22 * @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/_test/tests/Feed/
H A DFeedCreatorOptionsTest.php13 $options = new FeedCreatorOptions(['feed_mode' => 'recent']);
14 $this->assertNotNull($options->getCacheKey());
19 $options = new FeedCreatorOptions(['feed_mode' => 'list', 'namespace' => 'wiki']);
20 $this->assertNull($options->getCacheKey());
25 $options = new FeedCreatorOptions(['feed_mode' => 'search', 'search_query' => 'test']);
26 $this->assertNull($options->getCacheKey());
31 $options = new FeedCreatorOptions(['feed_mode' => 'foobar']);
32 $this->assertNull($options->getCacheKey());
91 $options = new FeedCreatorOptions(['items' => 0]);
92 $this->assertSame(1, $options->options['items']);
[all …]
/dokuwiki/vendor/splitbrain/slika/src/
H A DSlika.php18 /** 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 DAdapter.php14 /** @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 DBase.php19 /** @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 Djquery.cookie.js55 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();
69options.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/vendor/splitbrain/php-cli/
H A DREADME.md30 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/usermanager/
H A Dcli.php5 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/lib/plugins/extension/
H A Dcli.php12 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 DFileClient.php27 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 Drelease.php30 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 DRedis.php35 * 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 DMySQL.php31 * 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 DMemcache.php34 * 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 DMemcached.php34 * 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']);

1234567