External data (расширение MediaWiki)

Материал из свободной русской энциклопедии «Традиция»
(перенаправлено с «ExternalData»)
Перейти к навигации Перейти к поиску
External Data
Язык программирования:
PHP
Операционная система:
Linux и др.
Носитель:
gerrit


Системные требования:
PHP 7.4+, MediaWiki 1.35+
Разработчик:
Ярон Корен, Александр Машин и др.



Дата появления:
12 января 2009
Текущая версия:
3.3
Дата выхода текущей версии:
ноябрь 2023
Статус:
поддерживается



Лицензия:
GNU GPL 2.0

External Data  — расширение MediaWiki, позволяющее встраивать на страницах вики внешнее содержимое с веб-страниц, из баз данных, файлов и вывода программ.

Функциональность[править | править код]

  1. <graph>
  2. Graphviz
  3. Mscgen

Шаблоны:

Диаграмма классов[править | править код]

Выаодится средствами External Data.

Иерархия классов EDParserFunctions EDParserFunctions EDScribunto EDScribunto Scribunto_LuaLibraryBase Scribunto_LuaLibraryBase EDScribunto->Scribunto_LuaLibraryBase EDConnectorPreparedOdbc EDConnectorPreparedOdbc EDConnectorPrepared EDConnectorPrepared EDConnectorPreparedOdbc->EDConnectorPrepared EDConnectorDb EDConnectorDb EDConnectorPrepared->EDConnectorDb EDConnectorDirectory EDConnectorDirectory EDConnectorPath EDConnectorPath EDConnectorDirectory->EDConnectorPath EDConnectorBase EDConnectorBase EDConnectorPath->EDConnectorBase EDConnectorPreparedPostgresql EDConnectorPreparedPostgresql EDConnectorPreparedPostgresql->EDConnectorPrepared EDConnectorFile EDConnectorFile EDConnectorFile->EDConnectorPath EDConnectorWeb EDConnectorWeb EDConnectorHttp EDConnectorHttp EDConnectorWeb->EDConnectorHttp EDConnectorHttp->EDConnectorBase EDConnectorDb->EDConnectorBase EDConnectorSoap EDConnectorSoap EDConnectorSoap->EDConnectorHttp EDConnectorRdbms EDConnectorRdbms EDConnectorComposed EDConnectorComposed EDConnectorRdbms->EDConnectorComposed EDConnectorComposed->EDConnectorDb EDConnectorExe EDConnectorExe EDConnectorExe->EDConnectorBase EDConnectorSqlite EDConnectorSqlite EDConnectorSqlite->EDConnectorRdbms EDConnectorSql EDConnectorSql EDConnectorSql->EDConnectorRdbms EDConnectorLdap EDConnectorLdap EDConnectorLdap->EDConnectorBase EDConnectorDirectoryWalker EDConnectorDirectoryWalker EDConnectorDirectoryWalker->EDConnectorDirectory EDConnectorDummy EDConnectorDummy EDConnectorDummy->EDConnectorBase EDConnectorInline EDConnectorInline EDConnectorInline->EDConnectorBase EDConnectorOdbcMssql EDConnectorOdbcMssql EDConnectorOdbc EDConnectorOdbc EDConnectorOdbcMssql->EDConnectorOdbc EDConnectorOdbc->EDConnectorComposed EDConnectorPostgresql EDConnectorPostgresql EDConnectorPostgresql->EDConnectorRdbms EDConnectorMongodb EDConnectorMongodb EDConnectorMongodb->EDConnectorComposed EDConnectorPreparedMysql EDConnectorPreparedMysql EDConnectorPreparedMysql->EDConnectorPrepared EDReparseJob EDReparseJob Job Job EDReparseJob->Job EDArraySlice EDArraySlice Test Test Base Base Test->Base Reference Reference Reference->Base Media Media Media->Base EDParserXMLwithXPath EDParserXMLwithXPath EDParserXML EDParserXML EDParserXMLwithXPath->EDParserXML EDParserBase EDParserBase EDParserXML->EDParserBase EDParserXMLsimple EDParserXMLsimple EDParserXMLsimple->EDParserXML EDParserAuto EDParserAuto EDParserAuto->EDParserBase EDParserZip EDParserZip EDParserArchive EDParserArchive EDParserZip->EDParserArchive EDParserArchive->EDParserBase EDParserText EDParserText EDParserText->EDParserBase EDParserHTMLwithXPath EDParserHTMLwithXPath EDParserHTMLwithXPath->EDParserXMLwithXPath EDParserYAMLwithJSONPath EDParserYAMLwithJSONPath EDParserJSONwithJSONPath EDParserJSONwithJSONPath EDParserYAMLwithJSONPath->EDParserJSONwithJSONPath EDParserJSON EDParserJSON EDParserJSONwithJSONPath->EDParserJSON EDParserPhar EDParserPhar EDParserPhar->EDParserArchive EDParserJSONsimple EDParserJSONsimple EDParserJSONsimple->EDParserJSON EDParserJSON->EDParserBase EDParserHTMLwithCSS EDParserHTMLwithCSS EDParserHTMLwithCSS->EDParserHTMLwithXPath EDParserCSV EDParserCSV EDParserCSV->EDParserBase EDParserGFF EDParserGFF EDParserGFF->EDParserBase EDParserException EDParserException Exception Exception EDParserException->Exception EDParserIni EDParserIni EDParserIni->EDParserBase EDParserYAMLsimple EDParserYAMLsimple EDParserYAMLsimple->EDParserJSONsimple EDParserRar EDParserRar EDParserRar->EDParserArchive EDParserRegex EDParserRegex EDParserRegex->EDParserBase EDDependencyException EDDependencyException EDDependencyException->Exception EDJsonObject EDJsonObject ExternalDataHooks ExternalDataHooks EDGetData EDGetData SpecialPage SpecialPage EDGetData->SpecialPage

Настройки по умолчанию[править | править код]

Структура файла extension.json (выаодится средствами External Data): nameExternal Dataversion3.4-alphaauthor   urlhttps://www.mediawiki.org/wiki/Extension:External_Datadescriptionmsgexternaldata-desclicense-nameGPL-2.0-or-latertypeparserhookrequires   load_composer_autoloader☑ trueSpecialPages   MessagesDirs   ExtensionMessagesFiles   AutoloadClasses   AutoloadNamespaces   Hooks   JobClasses   callbackExternalDataHooks::onRegistrationconfig_prefixwgExternalDataconfig   TestAutoloadClasses   manifest_version2Yaron KorenAlexander Mashin...MediaWiki>= 1.35.3GetDataEDGetDataExternalData   i18nExternalDataMagicExternalData.i18n.magic.phpExternalDataAliasExternalData.i18n.alias.phpExternalDataHooksincludes/ExternalDataHooks.phpEDParserFunctionsincludes/EDParserFunctions.phpEDGetDataincludes/EDGetData.phpEDJsonObjectincludes/EDJsonObject.phpEDArraySliceincludes/EDArraySlice.phpEDReparseJobincludes/EDReparseJob.phpEDParsesParamsincludes/EDParsesParams.phpEDConnectorCachedincludes/connectors/traits/EDConnectorCached.phpEDConnectorThrottledincludes/connectors/traits/EDConnectorThrottled.phpEDConnectorParsableincludes/connectors/traits/EDConnectorParsable.phpEDConnectorBaseincludes/connectors/EDConnectorBase.phpEDConnectorHttpincludes/connectors/EDConnectorHttp.phpEDConnectorWebincludes/connectors/EDConnectorWeb.phpEDConnectorSoapincludes/connectors/EDConnectorSoap.phpEDConnectorLdapincludes/connectors/EDConnectorLdap.phpEDConnectorPathincludes/connectors/EDConnectorPath.phpEDConnectorFileincludes/connectors/EDConnectorFile.phpEDConnectorDirectoryincludes/connectors/EDConnectorDirectory.phpEDConnectorDirectoryWalkerincludes/connectors/EDConnectorDirectoryWalker.phpEDConnectorDbincludes/connectors/EDConnectorDb.phpEDConnectorComposedincludes/connectors/EDConnectorComposed.phpEDConnectorRdbmsincludes/connectors/EDConnectorRdbms.phpEDConnectorSqlincludes/connectors/EDConnectorSql.phpEDConnectorPostgresqlincludes/connectors/EDConnectorPostgresql.phpEDConnectorSqliteincludes/connectors/EDConnectorSqlite.phpEDConnectorOdbcincludes/connectors/EDConnectorOdbc.phpEDConnectorOdbcMssqlincludes/connectors/EDConnectorOdbcMssql.phpEDConnectorMongodbincludes/connectors/EDConnectorMongodb.phpEDConnectorPreparedincludes/connectors/EDConnectorPrepared.phpEDConnectorPreparedMysqlincludes/connectors/EDConnectorPreparedMysql.phpEDConnectorPreparedPostgresqlincludes/connectors/EDConnectorPreparedPostgresql.phpEDConnectorPreparedOdbcincludes/connectors/EDConnectorPreparedOdbc.phpEDConnectorExeincludes/connectors/EDConnectorExe.phpEDConnectorInlineincludes/connectors/EDConnectorInline.phpEDConnectorDummyincludes/connectors/EDConnectorDummy.phpEDParserBaseincludes/parsers/EDParserBase.phpEDParserTextincludes/parsers/EDParserText.phpEDParserRegexincludes/parsers/EDParserRegex.phpEDParserIniincludes/parsers/EDParserIni.phpEDParserHTMLwithCSSincludes/parsers/EDParserHTMLwithCSS.phpEDParserHTMLwithXPathincludes/parsers/EDParserHTMLwithXPath.phpEDParserXMLincludes/parsers/EDParserXML.phpEDParserXMLsimpleincludes/parsers/EDParserXMLsimple.phpEDParserXMLwithXPathincludes/parsers/EDParserXMLwithXPath.phpEDParserJSONincludes/parsers/EDParserJSON.phpEDParserJSONsimpleincludes/parsers/EDParserJSONsimple.phpEDParserJSONwithJSONPathincludes/parsers/EDParserJSONwithJSONPath.phpEDParserYAMLsimpleincludes/parsers/EDParserYAMLsimple.phpEDParserYAMLwithJSONPathincludes/parsers/EDParserYAMLwithJSONPath.phpEDParserCSVincludes/parsers/EDParserCSV.phpEDParserGFFincludes/parsers/EDParserGFF.phpEDParserArchiveincludes/parsers/EDParserArchive.phpEDParserPharincludes/parsers/EDParserPhar.phpEDParserZipincludes/parsers/EDParserZip.phpEDParserRarincludes/parsers/EDParserRar.phpEDParserAutoincludes/parsers/EDParserAuto.phpEDParserExceptionincludes/parsers/EDParserException.phpExternalData\Presets\includes/presetsParserFirstCallInitExternalDataHooks::registerParserScribuntoExternalLibrariesExternalDataHooks::registerLuaSoftwareInfoExternalDataHooks::onSoftwareInfoLoadExtensionSchemaUpdatesExternalDataHooks::onLoadExtensionSchemaUpdatesedReparseEDReparseJobSources   Verbose   Connectors   IntegratedConnectors   Parsers   AllowGetters   descriptionAn array of settings for data sources. Index '*' contains global fallbacksvalue   merge_strategyarray_plus_2d*   load test presets☐ falseload reference presets☐ falseload media presets☐ falseload all presets☐ falsemin cache seconds3600always use stale cache☐ falsethrottle key$2nd_lvl_domain$throttle interval0replacements   allowed urls   options   encodings   params   param filters   verbose☑ truetimeoutdefaultASCIIUTF-8Windows-1251Windows-1252Windows-1254KOI8-RISO-8859-1descriptionShow an error message if there is no external valuevalue☑ truedescriptionRules for choosing EDConnector* class in compatibility modevalue                                                                                                                                                EDConnectorWeb__pfget_web_datahidden☐ false   EDConnectorDirectoryWalker__pfget_file_datadirectory☑ truefile name/[[\]?*]/hidden☐ false   EDConnectorDirectoryWalker__pfget_file_datasource☑ truefile name/[[\]?*]/hidden☐ false   EDConnectorDirectory__pfget_file_datadirectory☑ truehidden☐ false   EDConnectorDirectory__pfget_file_datasource☑ truefile name☑ truehidden☐ false   EDConnectorFile__pfget_file_datahidden☐ false   EDConnectorSoap__pfget_soap_datahidden☐ false   EDConnectorLdap__pfget_ldap_datahidden☐ false   EDConnectorPreparedMysql__pfget_db_datatypemysqlprepared☑ truehidden☐ false   EDConnectorPreparedPostgresql__pfget_db_datatypepostgresprepared☑ truehidden☐ false   EDConnectorSqlite__pfget_db_datatypesqlitehidden☐ false   EDConnectorPreparedOdbc__pfget_db_datatypeodbcprepared☑ truehidden☐ false   EDConnectorOdbcMssql__pfget_db_datatypeodbcprepared☐ falsedriver/ODBC Driver \d+ for SQL Server/hidden☐ false   EDConnectorMongodb__pfget_db_datatypemongodbhidden☐ false   EDConnectorPostgresql__pfget_db_datatypepostgreshidden☐ false   EDConnectorSql__pfget_db_datahidden☐ false   EDConnectorExe__pfget_program_datahidden☐ false   EDConnectorExe__pfget_program_datahidden☐ false   EDConnectorInline__pfget_inline_datahidden☐ false   EDConnectorDummy__pfget_external_datahidden☑ truesource☐ false   EDConnectorWeb__pfget_external_dataurl☑ truerequest☐ false   EDConnectorWeb__pfget_external_datapost data☑ true   EDConnectorDirectoryWalker__pfget_external_datadirectory☑ truefile name/[[\]?*]/   EDConnectorDirectoryWalker__pfget_external_datasource☑ truefile name/[[\]?*]/   EDConnectorDirectory__pfget_external_datadirectory☑ truehost☐ false   EDConnectorDirectory__pfget_external_datasource☑ truefile name☑ true   EDConnectorFile__pfget_external_datafile☑ true   EDConnectorFile__pfget_external_datasource☑ truepath☑ true   EDConnectorSoap__pfget_external_datarequest☑ true   EDConnectorSoap__pfget_external_datasource☑ truerequestData☑ true   EDConnectorLdap__pfget_external_datadomain☑ true   EDConnectorLdap__pfget_external_datasource☑ truebase dn☑ true   EDConnectorPreparedMysql__pfget_external_datatypemysqlprepared☑ true   EDConnectorPreparedPostgresql__pfget_external_datatypepostgresprepared☑ true   EDConnectorSqlite__pfget_external_datatypesqlite   EDConnectorPreparedOdbc__pfget_external_datatypeodbcprepared☑ true   EDConnectorOdbcMssql__pfget_external_datatypeodbcprepared☐ falsedriver/ODBC Driver \d+ for SQL Server/   EDConnectorMongodb__pfget_external_datatypemongodb   EDConnectorPostgresql__pfget_external_datatypepostgres   EDConnectorSql__pfget_external_datafrom☑ true   EDConnectorPreparedMysql__pfget_external_dataprepared☑ true   EDConnectorSql__pfget_external_datatypemysql   EDConnectorSql__pfget_external_datatypesqlite   EDConnectorExe__pfget_external_datacommand☑ true   EDConnectorExe__pfget_external_dataprogram☑ true   EDConnectorInline__pfget_external_datatext☑ truedescriptionRules for choosing EDConnector* class in standalone modevalue                                                                              EDConnectorWeb__pfurl☑ truerequest☐ false   EDConnectorWeb__pfpost data☑ true   EDConnectorDirectoryWalker__pffile name/[[\]?*]/   EDConnectorDirectory__pffile name☑ true   EDConnectorFile__pfpath☑ true   EDConnectorSoap__pfrequest☑ true   EDConnectorSoap__pfrequestData☑ true   EDConnectorLdap__pfbase dn☑ true   EDConnectorPreparedMysql__pftypemysqlprepared☑ true   EDConnectorPreparedPostgresql__pftypepostgresprepared☑ true   EDConnectorSqlite__pftypesqlite   EDConnectorPreparedOdbc__pftypeodbcprepared☑ true   EDConnectorOdbcMssql__pftypeodbcdriver/ODBC Driver \d+ for SQL Server/   EDConnectorMongodb__pftypemongodb   EDConnectorPostgresql__pftypepostgres   EDConnectorPreparedMysql__pfprepared☑ true   EDConnectorSql__pffrom☑ true   EDConnectorSql__pftypemysql   EDConnectorSql__pftypesqlite   EDConnectorExe__pfcommand☑ true   EDConnectorExe__pfprogram☑ true   EDConnectorInline__pftext☑ true   EDConnectorDummy__pf   EDConnectorDummy__pf☑ truedescriptionRules for choosing EDParser* classvalue                                                                                                                                             EDParserZip__existsZipArchiveurl/\.zip$/iarchive path☑ true   EDParserZip__existsZipArchivefile name/\.zip$/iarchive path☑ true   EDParserZip__existsZipArchivepath/\.zip$/iarchive path☑ true   EDParserZip__existsZipArchivesource/\.zip$/iarchive path☑ true   EDParserRar__existsRarArchiveurl/\.rar$/iarchive path☑ true   EDParserRar__existsRarArchivefile name/\.rar$/iarchive path☑ true   EDParserRar__existsRarArchivepath/\.rar$/iarchive path☑ true   EDParserRar__existsRarArchivesource/\.rar$/iarchive path☑ true   EDParserPhar__existsPharDataurl/\.tar$/iarchive path☑ true   EDParserPhar__existsPharDatafile name/\.tar$/iarchive path☑ true   EDParserPhar__existsPharDatapath/\.tar$/iarchive path☑ true   EDParserPhar__existsPharDatasource/\.tar$/iarchive path☑ true   EDParserPhar__exists   url/\.tar\.gz$/iarchive path☑ truePharDatagzopen   EDParserPhar__exists   file name/\.tar\.gz$/iarchive path☑ truePharDatagzopen   EDParserPhar__exists   path/\.tar\.gz$/iarchive path☑ truePharDatagzopen   EDParserPhar__exists   source/\.tar\.gz$/iarchive path☑ truePharDatagzopen   EDParserPhar__exists   url/\.tar\.bz2$/iarchive path☑ truePharDatabzopen   EDParserPhar__exists   file name/\.tar\.bz2$/iarchive path☑ truePharDatabzopen   EDParserPhar__exists   path/\.tar\.bz2$/iarchive path☑ truePharDatabzopen   EDParserPhar__exists   source/\.tar\.bz2$/iarchive path☑ truePharDatabzopen   EDParserRegexformattextregex☑ true   EDParserRegexformatautoregex☑ true   EDParserRegexformattext with regex   EDParserTextformattext   EDParserIniformatini   EDParserHTMLwithXPathformathtmluse xpath☑ true   EDParserHTMLwithXPathformathtml with xpath   EDParserHTMLwithCSSformathtml with css   EDParserHTMLwithCSSformathtmluse css☑ true   EDParserHTMLwithCSSformathtml   EDParserXMLwithXPathformatxmluse xpath☑ true   EDParserXMLwithXPathformatxml with xpath   EDParserXMLsimpleformatxml   EDParserJSONwithJSONPathformatjsonuse jsonpath☑ true   EDParserJSONwithJSONPathformatjson with jsonpath   EDParserJSONsimpleformatjson   EDParserYAMLwithJSONPathformatyamluse jsonpath☑ true   EDParserYAMLwithJSONPathformatyaml with jsonpath   EDParserYAMLsimpleformatyaml   EDParserCSVformatcsv   EDParserCSVformatcsv with header   EDParserCSVformatcsv with headers   EDParserGFFformatgff   EDParserAutoformatauto   EDParserTextdescriptionDrop all {{#get_*_data:}} functions and all mw.ext.getExternalData.get*Data() except mw.ext.getExternalData.getExternalData()value☑ trueEDTestBasetests/phpunit/unit/EDTestBase.phpEDParserTestBasetests/phpunit/unit/parsers/EDParserTestBase.phpEDParserArchiveTestBasetests/phpunit/unit/parsers/EDParserArchiveTestBase.php

Ссылки[править | править код]