MediaWiki  1.23.0
mwdoc-filter.php File Reference

Doxygen filter to show correct member variable types in documentation. More...

Go to the source code of this file.

Variables

 $regexp = '#\@var\s+([^\s]+)([^/]+)/\s+(var|public|protected|private)\s+(\$[^\s;=]+)#'
 
 $replac = '${2} */ ${3} ${1} ${4}'
 
if(PHP_SAPI !='cli') $source = file_get_contents( $argv[1] )
 

Detailed Description

Doxygen filter to show correct member variable types in documentation.

Should be filled in doxygen INPUT_FILTER as "php mwdoc-filter.php"

Original source code by Goran Rakic http://blog.goranrakic.com/ http://stackoverflow.com/questions/4325224

Definition in file mwdoc-filter.php.

Variable Documentation

◆ $regexp

$regexp = '#\@var\s+([^\s]+)([^/]+)/\s+(var|public|protected|private)\s+(\$[^\s;=]+)#'

◆ $replac

$replac = '${2} */ ${3} ${1} ${4}'

Definition at line 20 of file mwdoc-filter.php.

◆ $source

$source = file_get_contents( $argv[1] )

Definition at line 18 of file mwdoc-filter.php.

Referenced by WikiImporter\__construct(), SVGReader\__construct(), MergeHistoryPager\__construct(), ResourceLoaderFileModule\compileLESSFile(), FileRepo\concatenate(), Installer\dirIsExecutable(), FSFileBackend\doCopyInternal(), FSFileBackend\doDeleteInternal(), FSFileBackend\doGetFileStat(), FSFileBackend\doGetLocalCopyMulti(), FSFileBackend\doGetLocalReferenceMulti(), SpecialImport\doImport(), FSFileBackend\doMoveInternal(), FileBackendTest\doTestConcatenate(), FileBackendTest\doTestCopy(), FileBackendTest\doTestDelete(), FileBackendTest\doTestDescribe(), FileBackendTest\doTestGetFileContents(), FileBackendTest\doTestGetFileHttpUrl(), FileBackendTest\doTestGetLocalCopy(), FileBackendTest\doTestGetLocalReference(), FileBackendTest\doTestMove(), FileBackendTest\doTestStore(), ApiImport\execute(), GenerateNormalizerDataMl\execute(), GenerateNormalizerDataAr\execute(), DumpIterator\execute(), GenerateUtf8Case\execute(), DumpRenderer\execute(), MoveBatch\execute(), FileOp\fileExists(), FileOp\fileSha1(), Interwiki\getAllPrefixesCached(), SiteSQLStore\getCacheKey(), SpecialUpload\getInitialPageText(), CSSMin\getLocalFileReferences(), ApiQueryInfo\getProtectionInfo(), WikiPage\getRedirectURL(), SiteSQLStore\getSite(), SiteSQLStore\getSites(), BackupReader\importFromHandle(), WikiRevision\importUpload(), ResourceLoader\makeCustomLoaderScript(), ResourceLoader\makeLoaderRegisterScript(), RevertFileAction\onSubmit(), ImageCleanup\processRow(), FileBackendTest\provider_testCopy(), FileBackendTest\provider_testDelete(), FileBackendTest\provider_testDescribe(), FileBackendTest\provider_testMove(), OutputPage\readOnlyPage(), LocalFile\recordUpload(), UploadSourceAdapter\registerSource(), CSSMin\remap(), Status\replaceMessage(), CheckStorage\restoreText(), FileBackendTest\testGetFileContents(), FileBackendTest\testGetFileHttpUrl(), FileBackendTest\testGetLocalCopy(), FileBackendTest\testGetLocalReference(), TitleTest\testIsValidMoveOperation(), and TitleTest\testWgWhitelistReadRegexp().