Lines Matching defs:data
26 * Initialize the repository (cache), fetches data for all installed plugins
52 $data = $httpclient->post(self::EXTENSION_REPOSITORY_API, $request_data);
53 if ($data !== false) {
55 $extensions = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
85 $data = $httpclient->get(self::EXTENSION_REPOSITORY_API . '?cmd=ping');
86 if ($data === false) {
89 } elseif ($data !== '1') {
105 * Get the remote data of an individual plugin or template
107 * @param string $name The plugin name to get the data for, template names need to be prefix by 'template:'
108 * @return array The data or null if nothing was found (possibly no repository access)
121 $data = $httpclient->get(self::EXTENSION_REPOSITORY_API . '?fmt=json&ext[]=' . urlencode($name));
122 if ($data !== false) {
124 $result = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
155 $data = $httpclient->post(self::EXTENSION_REPOSITORY_API, $query);
156 if ($data === false) return [];
158 $result = json_decode($data, true, 512, JSON_THROW_ON_ERROR);