| /dokuwiki/lib/plugins/popularity/ |
| H A D | helper.php | 15 * The url where the data should be sent 31 * Name of the file which determine when the popularity data was manually 33 * (If this file doesn't exist, the data has never been sent) 51 * @return boolean TRUE if we should send data once a month, FALSE otherwise 59 * Send the data, to the submit url 61 * @param string $data The popularity data 64 public function sendData($data) argument 68 $status = $httpClient->sendRequest($this->submitUrl, ['data' => $data], 'POST'); 76 * Compute the last time the data was sent. If it has never been sent, we return 0. 91 * @return string The popularity data as a string [all …]
|
| /dokuwiki/_test/tests/Extension/ |
| H A D | EventTest.php | 9 static public function staticFunc(&$data) argument 11 $data['test'] = strtoupper($data['test']); 14 public function dynamicFunc(&$data) argument 16 $data['test'] = strtoupper($data['test']); 21 $data = 'test'; 22 $result = Event::createAndTrigger('TESTTRIGGER', $data, 'strtoupper'); 28 $data = ['test' => 'test']; 29 Event::createAndTrigger('TESTTRIGGER', $data, [$this, 'dynamicFunc']); 30 $this->assertEquals(['test' => 'TEST'], $data); 35 $data = ['test' => 'test']; [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/Cache/ |
| H A D | DB.php | 22 * Converts a given {@see SimplePie} object into data to be stored 24 * @param \SimplePie\SimplePie $data 25 …* @return array{string, array<string, Item>} First item is the serialized data for storage, second… 27 protected static function prepare_simplepie_object_for_cache(\SimplePie\SimplePie $data) argument 29 $items = $data->get_items(); 44 if (isset($data->data['child'][\SimplePie\SimplePie::NAMESPACE_ATOM_10]['feed'][0])) { 45 … $channel = &$data->data['child'][\SimplePie\SimplePie::NAMESPACE_ATOM_10]['feed'][0]; 46 … } elseif (isset($data->data['child'][\SimplePie\SimplePie::NAMESPACE_ATOM_03]['feed'][0])) { 47 … $channel = &$data->data['child'][\SimplePie\SimplePie::NAMESPACE_ATOM_03]['feed'][0]; 48 } elseif (isset($data->data['child'][\SimplePie\SimplePie::NAMESPACE_RDF]['RDF'][0])) { [all …]
|
| H A D | Memcached.php | 14 * Caches data to memcached 20 * prefixed with `sp_` and data will expire after 3600 seconds 49 …:TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data 70 * Save data to the cache 71 …array<mixed>|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, … 74 public function save($data) argument 76 if ($data instanceof \SimplePie\SimplePie) { 77 $data = $data->data; 80 return $this->setData(serialize($data)); 84 * Retrieve the data saved to the cache [all …]
|
| H A D | Memcache.php | 13 * Caches data to memcache 19 * prefixed with `sp_` and data will expire after 3600 seconds 52 …:TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data 73 * Save data to the cache 75 …array<mixed>|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, … 78 public function save($data) argument 80 if ($data instanceof \SimplePie\SimplePie) { 81 $data = $data->data; 83 …return $this->cache->set($this->name, serialize($data), MEMCACHE_COMPRESSED, (int) $this->options[… 87 * Retrieve the data saved to the cache [all …]
|
| H A D | File.php | 11 * Caches data to the filesystem 51 …:TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data 62 * Save data to the cache 64 …array<mixed>|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, … 67 public function save($data) argument 70 if ($data instanceof \SimplePie\SimplePie) { 71 $data = $data->data; 74 $data = serialize($data); 75 return (bool) file_put_contents($this->name, $data); 81 * Retrieve the data saved to the cache [all …]
|
| H A D | Redis.php | 14 * Caches data to redis 20 * prefixed with `simple_primary-` and data will expire after 3600 seconds 53 …rray<string, mixed>|null $options Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data 91 * Save data to the cache 93 …array<mixed>|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, … 96 public function save($data) argument 98 if ($data instanceof \SimplePie\SimplePie) { 99 $data = $data->data; 101 $response = $this->cache->set($this->name, serialize($data)); 110 * Retrieve the data saved to the cache [all …]
|
| H A D | Base.php | 39 …:TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data 44 * Save data to the cache 46 …array<mixed>|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, … 49 public function save($data); argument 52 * Retrieve the data saved to the cache 54 * @return array<mixed> Data for SimplePie::$data
|
| /dokuwiki/vendor/kissifrot/php-ixr/src/DataType/ |
| H A D | Value.php | 7 private $data; variable in IXR\\DataType\\Value 10 public function __construct($data, $type = null) argument 12 $this->data = $data; 19 foreach ($this->data as $key => $value) { 20 $this->data[$key] = new Value($value); 24 for ($i = 0, $j = count($this->data); $i < $j; $i++) { 25 $this->data[$i] = new Value($this->data[$i]); 32 if ($this->data === true || $this->data === false) { 35 if (is_integer($this->data)) { 38 if (is_double($this->data)) { [all …]
|
| H A D | Base64.php | 12 private $data; variable in IXR\\DataType\\Base64 14 public function __construct($data) argument 16 $this->data = $data; 21 return '<base64>' . base64_encode($this->data) . '</base64>';
|
| /dokuwiki/_test/data/meta/ |
| H A D | mailinglist.changes | 5 1362525359 127.0.0.1 E mailinglist pubcie [Data entry] 6 1362525899 127.0.0.1 E mailinglist pubcie [Data entry] 8 1362526039 127.0.0.1 E mailinglist pubcie [Data entry] 10 1362526167 127.0.0.1 E mailinglist pubcie [Data entry] 11 1362526767 127.0.0.1 E mailinglist pubcie [Data entry] 12 1362526861 127.0.0.1 E mailinglist pubcie [Data entry] 13 1362527046 127.0.0.1 E mailinglist pubcie [Data entry] 14 1362527164 127.0.0.1 E mailinglist pubcie [Data entry] 18 1368612506 127.0.0.1 E mailinglist pubcie [Data entry] 19 1368612599 127.0.0.1 E mailinglist pubcie [Data entry] [all …]
|
| /dokuwiki/inc/Subscriptions/ |
| H A D | SubscriberRegexBuilder.php | 14 * @param string|array $data 17 * @throws Exception when no data is passed 21 public function buildRegex($user = null, $style = null, $data = null) argument 26 $data = (array)$data; 31 $data = array_filter(array_map(trim(...), $data)); 40 $data = array_map(preg_quote_cb(...), $data); 45 $data = implode('|', $data); 47 // any data at all? 48 if ($user . $style . $data === '') { 49 throw new Exception('no data passed'); [all …]
|
| /dokuwiki/_test/tests/inc/search/ |
| H A D | search.test.php | 14 $data = array(); 17 search($data, dirname(__FILE__) . '/data', 'search_allpages', array('depth' => 0), 'ns1'); 18 $this->assertEquals(3, count($data)); 21 $data = array(); 22 … search($data, dirname(__FILE__) . '/data', 'search_allpages', array('depth' => 1), 'ns1/ns3'); 23 $this->assertEquals(0, count($data)); 26 $data = array(); 27 search($data, dirname(__FILE__) . '/data', 'search_allpages', array('depth' => 2), 'ns1'); 28 $this->assertEquals(2, count($data)); 32 $data = array(); [all …]
|
| /dokuwiki/lib/exe/ |
| H A D | fetch.php | 46 // prepare data for plugin events 47 $data = [ variable 65 'font-src' => "'self' data:", 72 $evt = new Event('FETCH_MEDIA_STATUS', $data); 75 if ($data['status'] > 300 && $data['status'] <= 304) { 77 send_redirect($data['statusmessage']); 80 if ($data['status'] != 200) { 81 http_status($data['status'], $data['statusmessage']); 84 if ($data['status'] > 203) { 85 echo $data['statusmessage']; [all …]
|
| /dokuwiki/lib/plugins/extension/ |
| H A D | Manager.php | 16 /** @var array the data from the manager.dat */ 17 protected array $data = []; variable in dokuwiki\\plugin\\extension\\Manager 28 $this->data = $this->readFile(); 40 $this->data['downloadurl'] = $url; 41 if (isset($this->data['installed'])) { 43 $this->data['updated'] = date('r'); 46 $this->data['installed'] = date('r'); 49 $data = ''; 50 foreach ($this->data as $k => $v) { 51 $data .= $k . '=' . $v . DOKU_LF; [all …]
|
| /dokuwiki/inc/ |
| H A D | PrefCookie.php | 6 * The preference cookie is used to store small user preference data 10 * Data is stored as key#value#key#value string, with all keys and values being urlencoded 17 protected array $data = []; variable in dokuwiki\\PrefCookie 20 * Initialize the class from the cookie data 24 $this->data = $this->decodeData($_COOKIE[self::COOKIENAME] ?? ''); 36 return $this->data[$pref] ?? $default; 51 if (isset($this->data[$pref])) { 52 unset($this->data[$pref]); 55 $this->data[$pref] = $value; 70 ksort($this->data); // sort by key [all …]
|
| /dokuwiki/.github/workflows/ |
| H A D | deletedFiles.yml | 2 # It compares the current master with the data/deleted.files file and cleans the file from any re-i… 3 # It compares the current master with the stable branch and adds all deleted files to the data/dele… 34 … grep -v "^$E$" data/deleted.files > data/deleted.files.tmp && mv data/deleted.files{.tmp,} 43 if grep -q "^$F$" data/deleted.files; then 46 if ( ! test -f "data/deleted.files.tmp"); then 47 … removed on/ && !found {print input; found=1} 1' data/deleted.files > data/deleted.files.tmp && cp… 49 … removed on/ && !found {print input; found=1} 1' data/deleted.files > data/deleted.files.tmp && cp… 51 if (test -f "data/deleted.files.tmp"); then 52 …removed on/ && !found {printf("\n"); found=1} 1' data/deleted.files > data/deleted.files.tmp && mv… 53 sed -i "s/^# newly removed/# removed on $(date -I)/" data/deleted.files
|
| /dokuwiki/_test/tests/inc/ |
| H A D | httpclient_http.test.php | 18 $data = $http->get($this->server . '/get?foo=bar'); 22 $this->assertFalse($data === false, $http->errorInfo()); 23 $resp = json_decode($data, true); 35 $data = $http->dget($this->server . '/get', ['foo' => 'bar']); 39 $this->assertFalse($data === false, $http->errorInfo()); 40 $resp = json_decode($data, true); 52 $data = $http->get($this->server . '/gzip'); 56 $this->assertFalse($data === false, $http->errorInfo()); 57 $resp = json_decode($data, true); 69 $data = $http->post($this->server . '/post', ['foo' => 'bar']); [all …]
|
| /dokuwiki/inc/Feed/ |
| H A D | FeedItemProcessor.php | 9 * Accept more or less arbitrary data to represent data to later construct a feed item from. 10 * Provide lazy loading accessors to all the data we need for feed generation. 18 protected $data; variable in dokuwiki\\Feed\\FeedItemProcessor 24 * @param array $data Needs to have at least an 'id' key 26 public function __construct($data) argument 28 if (!isset($data['id'])) throw new RuntimeException('Missing ID'); 29 $this->id = cleanID($data['id']); 30 $this->data = $data; 56 if ($this->data['rev'] ?? 0) return $this->data['rev']; 58 if (isset($this->data['date'])) { [all …]
|
| H A D | FeedPageProcessor.php | 11 * Accept more or less arbitrary data to represent a page and provide lazy loading accessors 12 * to all the data we need for feed generation. 19 // region data processors 80 // region data accessors 89 if (!isset($this->data['abstract'])) { 92 $this->data['abstract'] = (string)$meta['description']['abstract']; 94 $this->data['abstract'] = ''; 97 return $this->data['abstract']; 107 $this->data['rev'] = filemtime(wikiFN($this->id)); 108 $this->data['exists'] = true; [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/ |
| H A D | Source.php | 22 public $data = []; variable in SimplePie\\Source 27 * @param array<string, mixed> $data 29 public function __construct(Item $item, array $data) argument 32 $this->data = $data; 48 return md5(serialize($this->data)); 58 if (isset($this->data['child'][$namespace][$tag])) { 59 return $this->data['child'][$namespace][$tag]; 75 * @param string $data 80 public function sanitize(string $data, $type, string $base = '') argument 82 return $this->item->sanitize($data, $type, $base); [all …]
|
| /dokuwiki/inc/Action/ |
| H A D | Export.php | 28 * Event data: 29 * data['id'] -- page id 30 * data['mode'] -- requested export mode 31 * data['headers'] -- export headers 32 * data['output'] -- export output 98 // prepare event data 99 $data = []; 100 $data['id'] = $ID; 101 $data['mode'] = $mode; 102 $data['headers'] = $headers; [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/HTTP/ |
| H A D | Parser.php | 92 * Input data 96 protected $data = ''; variable in SimplePie\\HTTP\\Parser 99 * Input data length (to avoid calling strlen() everytime this is needed) 127 * Create an instance of the class with the input data 129 * @param string $data Input data 130 …* @param Psr7Compatible $psr7Compatible Whether the data types are in format compatible with PSR-7. 132 public function __construct(string $data, bool $psr7Compatible = false) argument 134 $this->data = $data; 135 $this->data_length = strlen($this->data); 140 * Parse the input data [all …]
|
| /dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/ |
| H A D | JSONCreator.php | 14 $data = array(); 16 $data['version'] = 'https://jsonfeed.org/version/1.1'; 17 $data['title'] = (string)$this->title; 18 $data['home_page_url'] = (string)$this->link; 19 $data['feed_url'] = (string)$this->syndicationURL; 20 $data['description'] = (string)$this->description; 21 $data['user_comment'] = 'Created by ' . FEEDCREATOR_VERSION; 23 $data['icon'] = $this->image->url; 26 $data['language'] = $this->language; 29 $data['items'] = array(); [all …]
|
| /dokuwiki/lib/plugins/popularity/lang/en/ |
| H A D | lang.php | 4 $lang['submit'] = 'Send Data'; 5 $lang['autosubmit'] = 'Automatically send data once a month'; 6 $lang['submissionFailed'] = 'The data couldn\'t be sent due to the following error:'; 7 $lang['submitDirectly'] = 'You can send the data manually by submitting the following form.'; 9 $lang['lastSent'] = 'The data has been sent';
|