MediaWiki  1.29.1
ParserOutput.php
Go to the documentation of this file.
1 <?php
2 
24 class ParserOutput extends CacheTime {
28  public $mText;
29 
35 
39  public $mCategories;
40 
44  public $mIndicators = [];
45 
49  public $mTitleText;
50 
55  public $mLinks = [];
56 
61  public $mTemplates = [];
62 
67  public $mTemplateIds = [];
68 
72  public $mImages = [];
73 
77  public $mFileSearchOptions = [];
78 
82  public $mExternalLinks = [];
83 
88  public $mInterwikiLinks = [];
89 
93  public $mNewSection = false;
94 
98  public $mHideNewSection = false;
99 
103  public $mNoGallery = false;
104 
108  public $mHeadItems = [];
109 
113  public $mModules = [];
114 
118  public $mModuleScripts = [];
119 
123  public $mModuleStyles = [];
124 
128  public $mJsConfigVars = [];
129 
133  public $mOutputHooks = [];
134 
139  public $mWarnings = [];
140 
144  public $mSections = [];
145 
149  public $mEditSectionTokens = false;
150 
154  public $mProperties = [];
155 
159  public $mTOCHTML = '';
160 
164  public $mTimestamp;
165 
169  public $mTOCEnabled = true;
170 
174  public $mEnableOOUI = false;
175 
179  private $mIndexPolicy = '';
180 
184  private $mAccessedOptions = [];
185 
189  private $mExtensionData = [];
190 
194  private $mLimitReportData = [];
195 
197  private $mLimitReportJSData = [];
198 
202  private $mParseStartTime = [];
203 
207  private $mPreventClickjacking = false;
208 
212  private $mFlags = [];
213 
216 
218  private $mMaxAdaptiveExpiry = INF;
219 
221  '#<(?:mw:)?editsection page="(.*?)" section="(.*?)"(?:/>|>(.*?)(</(?:mw:)?editsection>))#s';
222 
223  // finalizeAdaptiveCacheExpiry() uses TTL = MAX( m * PARSE_TIME + b, MIN_AR_TTL)
224  // Current values imply that m=3933.333333 and b=-333.333333
225  // See https://www.nngroup.com/articles/website-response-times/
226  const PARSE_FAST_SEC = .100; // perceived "fast" page parse
227  const PARSE_SLOW_SEC = 1.0; // perceived "slow" page parse
228  const FAST_AR_TTL = 60; // adaptive TTL for "fast" pages
229  const SLOW_AR_TTL = 3600; // adaptive TTL for "slow" pages
230  const MIN_AR_TTL = 15; // min adaptive TTL (for sanity, pool counter, and edit stashing)
231 
232  public function __construct( $text = '', $languageLinks = [], $categoryLinks = [],
233  $unused = false, $titletext = ''
234  ) {
235  $this->mText = $text;
236  $this->mLanguageLinks = $languageLinks;
237  $this->mCategories = $categoryLinks;
238  $this->mTitleText = $titletext;
239  }
240 
248  public function getRawText() {
249  return $this->mText;
250  }
251 
252  public function getText() {
253  $text = $this->mText;
254  if ( $this->mEditSectionTokens ) {
255  $text = preg_replace_callback(
257  function ( $m ) {
259  $editsectionPage = Title::newFromText( htmlspecialchars_decode( $m[1] ) );
260  $editsectionSection = htmlspecialchars_decode( $m[2] );
261  $editsectionContent = isset( $m[4] ) ? $m[3] : null;
262 
263  if ( !is_object( $editsectionPage ) ) {
264  throw new MWException( "Bad parser output text." );
265  }
266 
267  $skin = $wgOut->getSkin();
268  return call_user_func_array(
269  [ $skin, 'doEditSectionLink' ],
270  [ $editsectionPage, $editsectionSection,
271  $editsectionContent, $wgLang->getCode() ]
272  );
273  },
274  $text
275  );
276  } else {
277  $text = preg_replace( ParserOutput::EDITSECTION_REGEX, '', $text );
278  }
279 
280  // If you have an old cached version of this class - sorry, you can't disable the TOC
281  if ( isset( $this->mTOCEnabled ) && $this->mTOCEnabled ) {
282  $text = str_replace( [ Parser::TOC_START, Parser::TOC_END ], '', $text );
283  } else {
284  $text = preg_replace(
285  '#' . preg_quote( Parser::TOC_START, '#' ) . '.*?' . preg_quote( Parser::TOC_END, '#' ) . '#s',
286  '',
287  $text
288  );
289  }
290  return $text;
291  }
292 
297  public function setSpeculativeRevIdUsed( $id ) {
298  $this->mSpeculativeRevId = $id;
299  }
300 
302  public function getSpeculativeRevIdUsed() {
304  }
305 
306  public function &getLanguageLinks() {
307  return $this->mLanguageLinks;
308  }
309 
310  public function getInterwikiLinks() {
311  return $this->mInterwikiLinks;
312  }
313 
314  public function getCategoryLinks() {
315  return array_keys( $this->mCategories );
316  }
317 
318  public function &getCategories() {
319  return $this->mCategories;
320  }
321 
325  public function getIndicators() {
326  return $this->mIndicators;
327  }
328 
329  public function getTitleText() {
330  return $this->mTitleText;
331  }
332 
333  public function getSections() {
334  return $this->mSections;
335  }
336 
337  public function getEditSectionTokens() {
339  }
340 
341  public function &getLinks() {
342  return $this->mLinks;
343  }
344 
345  public function &getTemplates() {
346  return $this->mTemplates;
347  }
348 
349  public function &getTemplateIds() {
350  return $this->mTemplateIds;
351  }
352 
353  public function &getImages() {
354  return $this->mImages;
355  }
356 
357  public function &getFileSearchOptions() {
359  }
360 
361  public function &getExternalLinks() {
362  return $this->mExternalLinks;
363  }
364 
365  public function getNoGallery() {
366  return $this->mNoGallery;
367  }
368 
369  public function getHeadItems() {
370  return $this->mHeadItems;
371  }
372 
373  public function getModules() {
374  return $this->mModules;
375  }
376 
377  public function getModuleScripts() {
378  return $this->mModuleScripts;
379  }
380 
381  public function getModuleStyles() {
382  return $this->mModuleStyles;
383  }
384 
386  public function getJsConfigVars() {
387  return $this->mJsConfigVars;
388  }
389 
390  public function getOutputHooks() {
391  return (array)$this->mOutputHooks;
392  }
393 
394  public function getWarnings() {
395  return array_keys( $this->mWarnings );
396  }
397 
398  public function getIndexPolicy() {
399  return $this->mIndexPolicy;
400  }
401 
402  public function getTOCHTML() {
403  return $this->mTOCHTML;
404  }
405 
409  public function getTimestamp() {
410  return $this->mTimestamp;
411  }
412 
413  public function getLimitReportData() {
415  }
416 
417  public function getLimitReportJSData() {
419  }
420 
421  public function getTOCEnabled() {
422  return $this->mTOCEnabled;
423  }
424 
425  public function getEnableOOUI() {
426  return $this->mEnableOOUI;
427  }
428 
429  public function setText( $text ) {
430  return wfSetVar( $this->mText, $text );
431  }
432 
433  public function setLanguageLinks( $ll ) {
434  return wfSetVar( $this->mLanguageLinks, $ll );
435  }
436 
437  public function setCategoryLinks( $cl ) {
438  return wfSetVar( $this->mCategories, $cl );
439  }
440 
441  public function setTitleText( $t ) {
442  return wfSetVar( $this->mTitleText, $t );
443  }
444 
445  public function setSections( $toc ) {
446  return wfSetVar( $this->mSections, $toc );
447  }
448 
449  public function setEditSectionTokens( $t ) {
450  return wfSetVar( $this->mEditSectionTokens, $t );
451  }
452 
453  public function setIndexPolicy( $policy ) {
454  return wfSetVar( $this->mIndexPolicy, $policy );
455  }
456 
457  public function setTOCHTML( $tochtml ) {
458  return wfSetVar( $this->mTOCHTML, $tochtml );
459  }
460 
461  public function setTimestamp( $timestamp ) {
462  return wfSetVar( $this->mTimestamp, $timestamp );
463  }
464 
465  public function setTOCEnabled( $flag ) {
466  return wfSetVar( $this->mTOCEnabled, $flag );
467  }
468 
469  public function addCategory( $c, $sort ) {
470  $this->mCategories[$c] = $sort;
471  }
472 
476  public function setIndicator( $id, $content ) {
477  $this->mIndicators[$id] = $content;
478  }
479 
487  public function setEnableOOUI( $enable = false ) {
488  $this->mEnableOOUI = $enable;
489  }
490 
491  public function addLanguageLink( $t ) {
492  $this->mLanguageLinks[] = $t;
493  }
494 
495  public function addWarning( $s ) {
496  $this->mWarnings[$s] = 1;
497  }
498 
499  public function addOutputHook( $hook, $data = false ) {
500  $this->mOutputHooks[] = [ $hook, $data ];
501  }
502 
503  public function setNewSection( $value ) {
504  $this->mNewSection = (bool)$value;
505  }
506  public function hideNewSection( $value ) {
507  $this->mHideNewSection = (bool)$value;
508  }
509  public function getHideNewSection() {
510  return (bool)$this->mHideNewSection;
511  }
512  public function getNewSection() {
513  return (bool)$this->mNewSection;
514  }
515 
523  public static function isLinkInternal( $internal, $url ) {
524  return (bool)preg_match( '/^' .
525  # If server is proto relative, check also for http/https links
526  ( substr( $internal, 0, 2 ) === '//' ? '(?:https?:)?' : '' ) .
527  preg_quote( $internal, '/' ) .
528  # check for query/path/anchor or end of link in each case
529  '(?:[\?\/\#]|$)/i',
530  $url
531  );
532  }
533 
534  public function addExternalLink( $url ) {
535  # We don't register links pointing to our own server, unless... :-)
536  global $wgServer, $wgRegisterInternalExternals;
537 
538  # Replace unnecessary URL escape codes with the referenced character
539  # This prevents spammers from hiding links from the filters
540  $url = parser::normalizeLinkUrl( $url );
541 
542  $registerExternalLink = true;
543  if ( !$wgRegisterInternalExternals ) {
544  $registerExternalLink = !self::isLinkInternal( $wgServer, $url );
545  }
546  if ( $registerExternalLink ) {
547  $this->mExternalLinks[$url] = 1;
548  }
549  }
550 
557  public function addLink( Title $title, $id = null ) {
558  if ( $title->isExternal() ) {
559  // Don't record interwikis in pagelinks
560  $this->addInterwikiLink( $title );
561  return;
562  }
563  $ns = $title->getNamespace();
564  $dbk = $title->getDBkey();
565  if ( $ns == NS_MEDIA ) {
566  // Normalize this pseudo-alias if it makes it down here...
567  $ns = NS_FILE;
568  } elseif ( $ns == NS_SPECIAL ) {
569  // We don't record Special: links currently
570  // It might actually be wise to, but we'd need to do some normalization.
571  return;
572  } elseif ( $dbk === '' ) {
573  // Don't record self links - [[#Foo]]
574  return;
575  }
576  if ( !isset( $this->mLinks[$ns] ) ) {
577  $this->mLinks[$ns] = [];
578  }
579  if ( is_null( $id ) ) {
580  $id = $title->getArticleID();
581  }
582  $this->mLinks[$ns][$dbk] = $id;
583  }
584 
592  public function addImage( $name, $timestamp = null, $sha1 = null ) {
593  $this->mImages[$name] = 1;
594  if ( $timestamp !== null && $sha1 !== null ) {
595  $this->mFileSearchOptions[$name] = [ 'time' => $timestamp, 'sha1' => $sha1 ];
596  }
597  }
598 
606  public function addTemplate( $title, $page_id, $rev_id ) {
607  $ns = $title->getNamespace();
608  $dbk = $title->getDBkey();
609  if ( !isset( $this->mTemplates[$ns] ) ) {
610  $this->mTemplates[$ns] = [];
611  }
612  $this->mTemplates[$ns][$dbk] = $page_id;
613  if ( !isset( $this->mTemplateIds[$ns] ) ) {
614  $this->mTemplateIds[$ns] = [];
615  }
616  $this->mTemplateIds[$ns][$dbk] = $rev_id; // For versioning
617  }
618 
623  public function addInterwikiLink( $title ) {
624  if ( !$title->isExternal() ) {
625  throw new MWException( 'Non-interwiki link passed, internal parser error.' );
626  }
627  $prefix = $title->getInterwiki();
628  if ( !isset( $this->mInterwikiLinks[$prefix] ) ) {
629  $this->mInterwikiLinks[$prefix] = [];
630  }
631  $this->mInterwikiLinks[$prefix][$title->getDBkey()] = 1;
632  }
633 
641  public function addHeadItem( $section, $tag = false ) {
642  if ( $tag !== false ) {
643  $this->mHeadItems[$tag] = $section;
644  } else {
645  $this->mHeadItems[] = $section;
646  }
647  }
648 
649  public function addModules( $modules ) {
650  $this->mModules = array_merge( $this->mModules, (array)$modules );
651  }
652 
653  public function addModuleScripts( $modules ) {
654  $this->mModuleScripts = array_merge( $this->mModuleScripts, (array)$modules );
655  }
656 
657  public function addModuleStyles( $modules ) {
658  $this->mModuleStyles = array_merge( $this->mModuleStyles, (array)$modules );
659  }
660 
668  public function addJsConfigVars( $keys, $value = null ) {
669  if ( is_array( $keys ) ) {
670  foreach ( $keys as $key => $value ) {
671  $this->mJsConfigVars[$key] = $value;
672  }
673  return;
674  }
675 
676  $this->mJsConfigVars[$keys] = $value;
677  }
678 
684  public function addOutputPageMetadata( OutputPage $out ) {
685  $this->addModules( $out->getModules() );
686  $this->addModuleScripts( $out->getModuleScripts() );
687  $this->addModuleStyles( $out->getModuleStyles() );
688  $this->addJsConfigVars( $out->getJsConfigVars() );
689 
690  $this->mHeadItems = array_merge( $this->mHeadItems, $out->getHeadItemsArray() );
691  $this->mPreventClickjacking = $this->mPreventClickjacking || $out->getPreventClickjacking();
692  }
693 
710  public function addTrackingCategory( $msg, $title ) {
711  if ( $title->getNamespace() === NS_SPECIAL ) {
712  wfDebug( __METHOD__ . ": Not adding tracking category $msg to special page!\n" );
713  return false;
714  }
715 
716  // Important to parse with correct title (T33469)
717  $cat = wfMessage( $msg )
718  ->title( $title )
719  ->inContentLanguage()
720  ->text();
721 
722  # Allow tracking categories to be disabled by setting them to "-"
723  if ( $cat === '-' ) {
724  return false;
725  }
726 
727  $containerCategory = Title::makeTitleSafe( NS_CATEGORY, $cat );
728  if ( $containerCategory ) {
729  $this->addCategory( $containerCategory->getDBkey(), $this->getProperty( 'defaultsort' ) ?: '' );
730  return true;
731  } else {
732  wfDebug( __METHOD__ . ": [[MediaWiki:$msg]] is not a valid title!\n" );
733  return false;
734  }
735  }
736 
748  public function setDisplayTitle( $text ) {
749  $this->setTitleText( $text );
750  $this->setProperty( 'displaytitle', $text );
751  }
752 
761  public function getDisplayTitle() {
762  $t = $this->getTitleText();
763  if ( $t === '' ) {
764  return false;
765  }
766  return $t;
767  }
768 
773  public function setFlag( $flag ) {
774  $this->mFlags[$flag] = true;
775  }
776 
777  public function getFlag( $flag ) {
778  return isset( $this->mFlags[$flag] );
779  }
780 
840  public function setProperty( $name, $value ) {
841  $this->mProperties[$name] = $value;
842  }
843 
852  public function getProperty( $name ) {
853  return isset( $this->mProperties[$name] ) ? $this->mProperties[$name] : false;
854  }
855 
856  public function unsetProperty( $name ) {
857  unset( $this->mProperties[$name] );
858  }
859 
860  public function getProperties() {
861  if ( !isset( $this->mProperties ) ) {
862  $this->mProperties = [];
863  }
864  return $this->mProperties;
865  }
866 
872  public function getUsedOptions() {
873  if ( !isset( $this->mAccessedOptions ) ) {
874  return [];
875  }
876  return array_keys( $this->mAccessedOptions );
877  }
878 
891  public function recordOption( $option ) {
892  $this->mAccessedOptions[$option] = true;
893  }
894 
935  public function setExtensionData( $key, $value ) {
936  if ( $value === null ) {
937  unset( $this->mExtensionData[$key] );
938  } else {
939  $this->mExtensionData[$key] = $value;
940  }
941  }
942 
954  public function getExtensionData( $key ) {
955  if ( isset( $this->mExtensionData[$key] ) ) {
956  return $this->mExtensionData[$key];
957  }
958 
959  return null;
960  }
961 
962  private static function getTimes( $clock = null ) {
963  $ret = [];
964  if ( !$clock || $clock === 'wall' ) {
965  $ret['wall'] = microtime( true );
966  }
967  if ( !$clock || $clock === 'cpu' ) {
968  $ru = wfGetRusage();
969  if ( $ru ) {
970  $ret['cpu'] = $ru['ru_utime.tv_sec'] + $ru['ru_utime.tv_usec'] / 1e6;
971  $ret['cpu'] += $ru['ru_stime.tv_sec'] + $ru['ru_stime.tv_usec'] / 1e6;
972  }
973  }
974  return $ret;
975  }
976 
981  public function resetParseStartTime() {
982  $this->mParseStartTime = self::getTimes();
983  }
984 
996  public function getTimeSinceStart( $clock ) {
997  if ( !isset( $this->mParseStartTime[$clock] ) ) {
998  return null;
999  }
1000 
1001  $end = self::getTimes( $clock );
1002  return $end[$clock] - $this->mParseStartTime[$clock];
1003  }
1004 
1024  public function setLimitReportData( $key, $value ) {
1025  $this->mLimitReportData[$key] = $value;
1026 
1027  if ( is_array( $value ) ) {
1028  if ( array_keys( $value ) === [ 0, 1 ]
1029  && is_numeric( $value[0] )
1030  && is_numeric( $value[1] )
1031  ) {
1032  $data = [ 'value' => $value[0], 'limit' => $value[1] ];
1033  } else {
1034  $data = $value;
1035  }
1036  } else {
1037  $data = $value;
1038  }
1039 
1040  if ( strpos( $key, '-' ) ) {
1041  list( $ns, $name ) = explode( '-', $key, 2 );
1042  $this->mLimitReportJSData[$ns][$name] = $data;
1043  } else {
1044  $this->mLimitReportJSData[$key] = $data;
1045  }
1046  }
1047 
1058  public function hasDynamicContent() {
1060 
1061  return $this->getCacheExpiry() < $wgParserCacheExpireTime;
1062  }
1063 
1071  public function preventClickjacking( $flag = null ) {
1072  return wfSetVar( $this->mPreventClickjacking, $flag );
1073  }
1074 
1081  public function updateRuntimeAdaptiveExpiry( $ttl ) {
1082  $this->mMaxAdaptiveExpiry = min( $ttl, $this->mMaxAdaptiveExpiry );
1083  $this->updateCacheExpiry( $ttl );
1084  }
1085 
1091  public function finalizeAdaptiveCacheExpiry() {
1092  if ( is_infinite( $this->mMaxAdaptiveExpiry ) ) {
1093  return; // not set
1094  }
1095 
1096  $runtime = $this->getTimeSinceStart( 'wall' );
1097  if ( is_float( $runtime ) ) {
1098  $slope = ( self::SLOW_AR_TTL - self::FAST_AR_TTL )
1099  / ( self::PARSE_SLOW_SEC - self::PARSE_FAST_SEC );
1100  // SLOW_AR_TTL = PARSE_SLOW_SEC * $slope + $point
1101  $point = self::SLOW_AR_TTL - self::PARSE_SLOW_SEC * $slope;
1102 
1103  $adaptiveTTL = min(
1104  max( $slope * $runtime + $point, self::MIN_AR_TTL ),
1105  $this->mMaxAdaptiveExpiry
1106  );
1107  $this->updateCacheExpiry( $adaptiveTTL );
1108  }
1109  }
1110 
1111  public function __sleep() {
1112  return array_diff(
1113  array_keys( get_object_vars( $this ) ),
1114  [ 'mParseStartTime' ]
1115  );
1116  }
1117 }
ParserOutput\addOutputPageMetadata
addOutputPageMetadata(OutputPage $out)
Copy items from the OutputPage object into this one.
Definition: ParserOutput.php:684
ParserOutput\getEnableOOUI
getEnableOOUI()
Definition: ParserOutput.php:425
CacheTime\getCacheExpiry
getCacheExpiry()
Returns the number of seconds after which this object should expire.
Definition: CacheTime.php:110
Title\newFromText
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
Definition: Title.php:265
ParserOutput\$mProperties
$mProperties
Definition: ParserOutput.php:154
ParserOutput\setTitleText
setTitleText( $t)
Definition: ParserOutput.php:441
ParserOutput
Definition: ParserOutput.php:24
query
For a write query
Definition: database.txt:26
ParserOutput\setSpeculativeRevIdUsed
setSpeculativeRevIdUsed( $id)
Definition: ParserOutput.php:297
ParserOutput\$mInterwikiLinks
$mInterwikiLinks
Definition: ParserOutput.php:88
CacheTime
Parser cache specific expiry check.
Definition: CacheTime.php:29
ParserOutput\addModuleScripts
addModuleScripts( $modules)
Definition: ParserOutput.php:653
ParserOutput\resetParseStartTime
resetParseStartTime()
Resets the parse start timestamps for future calls to getTimeSinceStart()
Definition: ParserOutput.php:981
ParserOutput\setDisplayTitle
setDisplayTitle( $text)
Override the title to be used for display.
Definition: ParserOutput.php:748
ParserOutput\setTimestamp
setTimestamp( $timestamp)
Definition: ParserOutput.php:461
ParserOutput\getUsedOptions
getUsedOptions()
Returns the options from its ParserOptions which have been taken into account to produce this output ...
Definition: ParserOutput.php:872
is
We use the convention $dbr for read and $dbw for write to help you keep track of whether the database object is a the world will explode Or to be a subsequent write query which succeeded on the master may fail when replicated to the slave due to a unique key collision Replication on the slave will stop and it may take hours to repair the database and get it back online Setting read_only in my cnf on the slave will avoid this but given the dire we prefer to have as many checks as possible We provide a but the wrapper functions like please read the documentation for except in special pages derived from QueryPage It s a common pitfall for new developers to submit code containing SQL queries which examine huge numbers of rows Remember that COUNT * is(N), counting rows in atable is like counting beans in a bucket.------------------------------------------------------------------------ Replication------------------------------------------------------------------------The largest installation of MediaWiki, Wikimedia, uses a large set ofslave MySQL servers replicating writes made to a master MySQL server. Itis important to understand the issues associated with this setup if youwant to write code destined for Wikipedia.It 's often the case that the best algorithm to use for a given taskdepends on whether or not replication is in use. Due to our unabashedWikipedia-centrism, we often just use the replication-friendly version, but if you like, you can use wfGetLB() ->getServerCount() > 1 tocheck to see if replication is in use.===Lag===Lag primarily occurs when large write queries are sent to the master.Writes on the master are executed in parallel, but they are executed inserial when they are replicated to the slaves. The master writes thequery to the binlog when the transaction is committed. The slaves pollthe binlog and start executing the query as soon as it appears. They canservice reads while they are performing a write query, but will not readanything more from the binlog and thus will perform no more writes. Thismeans that if the write query runs for a long time, the slaves will lagbehind the master for the time it takes for the write query to complete.Lag can be exacerbated by high read load. MediaWiki 's load balancer willstop sending reads to a slave when it is lagged by more than 30 seconds.If the load ratios are set incorrectly, or if there is too much loadgenerally, this may lead to a slave permanently hovering around 30seconds lag.If all slaves are lagged by more than 30 seconds, MediaWiki will stopwriting to the database. All edits and other write operations will berefused, with an error returned to the user. This gives the slaves achance to catch up. Before we had this mechanism, the slaves wouldregularly lag by several minutes, making review of recent editsdifficult.In addition to this, MediaWiki attempts to ensure that the user seesevents occurring on the wiki in chronological order. A few seconds of lagcan be tolerated, as long as the user sees a consistent picture fromsubsequent requests. This is done by saving the master binlog positionin the session, and then at the start of each request, waiting for theslave to catch up to that position before doing any reads from it. Ifthis wait times out, reads are allowed anyway, but the request isconsidered to be in "lagged slave mode". Lagged slave mode can bechecked by calling wfGetLB() ->getLaggedSlaveMode(). The onlypractical consequence at present is a warning displayed in the pagefooter.===Lag avoidance===To avoid excessive lag, queries which write large numbers of rows shouldbe split up, generally to write one row at a time. Multi-row INSERT ...SELECT queries are the worst offenders should be avoided altogether.Instead do the select first and then the insert.===Working with lag===Despite our best efforts, it 's not practical to guarantee a low-lagenvironment. Lag will usually be less than one second, but mayoccasionally be up to 30 seconds. For scalability, it 's very importantto keep load on the master low, so simply sending all your queries tothe master is not the answer. So when you have a genuine need forup-to-date data, the following approach is advised:1) Do a quick query to the master for a sequence number or timestamp 2) Run the full query on the slave and check if it matches the data you gotfrom the master 3) If it doesn 't, run the full query on the masterTo avoid swamping the master every time the slaves lag, use of thisapproach should be kept to a minimum. In most cases you should just readfrom the slave and let the user deal with the delay.------------------------------------------------------------------------ Lock contention------------------------------------------------------------------------Due to the high write rate on Wikipedia(and some other wikis), MediaWiki developers need to be very careful to structure their writesto avoid long-lasting locks. By default, MediaWiki opens a transactionat the first query, and commits it before the output is sent. Locks willbe held from the time when the query is done until the commit. So youcan reduce lock time by doing as much processing as possible before youdo your write queries.Often this approach is not good enough, and it becomes necessary toenclose small groups of queries in their own transaction. Use thefollowing syntax:$dbw=wfGetDB(DB_MASTER
ParserOutput\$mIndexPolicy
$mIndexPolicy
Definition: ParserOutput.php:179
ParserOutput\setLimitReportData
setLimitReportData( $key, $value)
Sets parser limit report data for a key.
Definition: ParserOutput.php:1024
wfSetVar
wfSetVar(&$dest, $source, $force=false)
Sets dest to source and returns the original value of dest If source is NULL, it just returns the val...
Definition: GlobalFunctions.php:1713
ParserOutput\$mLimitReportJSData
array $mLimitReportJSData
Parser limit report data for JSON.
Definition: ParserOutput.php:197
ParserOutput\__sleep
__sleep()
Definition: ParserOutput.php:1111
ParserOutput\setNewSection
setNewSection( $value)
Definition: ParserOutput.php:503
ParserOutput\getModules
getModules()
Definition: ParserOutput.php:373
ParserOutput\getImages
& getImages()
Definition: ParserOutput.php:353
ParserOutput\addModules
addModules( $modules)
Definition: ParserOutput.php:649
ParserOutput\MIN_AR_TTL
const MIN_AR_TTL
Definition: ParserOutput.php:230
ParserOutput\$mEditSectionTokens
$mEditSectionTokens
Definition: ParserOutput.php:149
ParserOutput\setIndicator
setIndicator( $id, $content)
Definition: ParserOutput.php:476
ParserOutput\addTemplate
addTemplate( $title, $page_id, $rev_id)
Register a template dependency for this output.
Definition: ParserOutput.php:606
ParserOutput\getJsConfigVars
getJsConfigVars()
Definition: ParserOutput.php:386
OutputPage\getModuleStyles
getModuleStyles( $filter=false, $position=null)
Get the list of module CSS to include on this page.
Definition: OutputPage.php:627
NS_FILE
const NS_FILE
Definition: Defines.php:68
ParserOutput\unsetProperty
unsetProperty( $name)
Definition: ParserOutput.php:856
ParserOutput\$mImages
$mImages
Definition: ParserOutput.php:72
ParserOutput\setFlag
setFlag( $flag)
Fairly generic flag setter thingy.
Definition: ParserOutput.php:773
ParserOutput\hideNewSection
hideNewSection( $value)
Definition: ParserOutput.php:506
ParserOutput\$mOutputHooks
$mOutputHooks
Definition: ParserOutput.php:133
link
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template to be included in the link
Definition: hooks.txt:2929
ParserOutput\addLink
addLink(Title $title, $id=null)
Record a local or interwiki inline link for saving in future link tables.
Definition: ParserOutput.php:557
$s
$s
Definition: mergeMessageFileList.php:188
ParserOutput\__construct
__construct( $text='', $languageLinks=[], $categoryLinks=[], $unused=false, $titletext='')
Definition: ParserOutput.php:232
ParserOutput\EDITSECTION_REGEX
const EDITSECTION_REGEX
Definition: ParserOutput.php:220
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:304
ParserOutput\$mFileSearchOptions
$mFileSearchOptions
Definition: ParserOutput.php:77
ParserOutput\$mMaxAdaptiveExpiry
integer $mMaxAdaptiveExpiry
Upper bound of expiry based on parse duration.
Definition: ParserOutput.php:218
http
Apache License January http
Definition: APACHE-LICENSE-2.0.txt:3
ParserOutput\PARSE_SLOW_SEC
const PARSE_SLOW_SEC
Definition: ParserOutput.php:227
ParserOutput\getHeadItems
getHeadItems()
Definition: ParserOutput.php:369
ParserOutput\PARSE_FAST_SEC
const PARSE_FAST_SEC
Definition: ParserOutput.php:226
ParserOutput\getProperties
getProperties()
Definition: ParserOutput.php:860
OutputPage\getModuleScripts
getModuleScripts( $filter=false, $position=null)
Get the list of module JS to include on this page.
Definition: OutputPage.php:603
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
ParserOutput\getModuleStyles
getModuleStyles()
Definition: ParserOutput.php:381
ParserOutput\$mNoGallery
$mNoGallery
Definition: ParserOutput.php:103
NS_SPECIAL
const NS_SPECIAL
Definition: Defines.php:51
ParserOutput\setTOCEnabled
setTOCEnabled( $flag)
Definition: ParserOutput.php:465
ParserOutput\getLimitReportJSData
getLimitReportJSData()
Definition: ParserOutput.php:417
MWException
MediaWiki exception.
Definition: MWException.php:26
OutputPage\getModules
getModules( $filter=false, $position=null, $param='mModules', $type=ResourceLoaderModule::TYPE_COMBINED)
Get the list of modules to include on this page.
Definition: OutputPage.php:576
$title
namespace and then decline to actually register it file or subcat img or subcat $title
Definition: hooks.txt:934
ParserOutput\getCategoryLinks
getCategoryLinks()
Definition: ParserOutput.php:314
ParserOutput\$mLimitReportData
$mLimitReportData
Definition: ParserOutput.php:194
ParserOutput\getFlag
getFlag( $flag)
Definition: ParserOutput.php:777
ParserOutput\getTimestamp
getTimestamp()
Definition: ParserOutput.php:409
ParserOutput\isLinkInternal
static isLinkInternal( $internal, $url)
Checks, if a url is pointing to the own server.
Definition: ParserOutput.php:523
ParserOutput\addExternalLink
addExternalLink( $url)
Definition: ParserOutput.php:534
ParserOutput\getInterwikiLinks
getInterwikiLinks()
Definition: ParserOutput.php:310
$content
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content $content
Definition: hooks.txt:1049
$tag
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books $tag
Definition: hooks.txt:1028
ParserOutput\updateRuntimeAdaptiveExpiry
updateRuntimeAdaptiveExpiry( $ttl)
Lower the runtime adaptive TTL to at most this value.
Definition: ParserOutput.php:1081
in
null for the wiki Added in
Definition: hooks.txt:1572
$modules
$modules
Definition: HTMLFormElement.php:12
ParserOutput\addImage
addImage( $name, $timestamp=null, $sha1=null)
Register a file dependency for this output.
Definition: ParserOutput.php:592
ParserOutput\$mExternalLinks
$mExternalLinks
Definition: ParserOutput.php:82
$wgParserCacheExpireTime
$wgParserCacheExpireTime
The expiry time for the parser cache, in seconds.
Definition: DefaultSettings.php:2383
ParserOutput\getTimes
static getTimes( $clock=null)
Definition: ParserOutput.php:962
ParserOutput\addCategory
addCategory( $c, $sort)
Definition: ParserOutput.php:469
$wgLang
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as $wgLang
Definition: design.txt:56
ParserOutput\getTOCEnabled
getTOCEnabled()
Definition: ParserOutput.php:421
ParserOutput\$mPreventClickjacking
$mPreventClickjacking
Definition: ParserOutput.php:207
ParserOutput\addModuleStyles
addModuleStyles( $modules)
Definition: ParserOutput.php:657
ParserOutput\$mAccessedOptions
$mAccessedOptions
Definition: ParserOutput.php:184
global
when a variable name is used in a it is silently declared as a new masking the global
Definition: design.txt:93
ParserOutput\setText
setText( $text)
Definition: ParserOutput.php:429
NS_CATEGORY
const NS_CATEGORY
Definition: Defines.php:76
ParserOutput\getDisplayTitle
getDisplayTitle()
Get the title to be used for display.
Definition: ParserOutput.php:761
ParserOutput\getIndicators
getIndicators()
Definition: ParserOutput.php:325
ParserOutput\setLanguageLinks
setLanguageLinks( $ll)
Definition: ParserOutput.php:433
ParserOutput\$mExtensionData
$mExtensionData
Definition: ParserOutput.php:189
check
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff or overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary such as anonymity and the real check
Definition: hooks.txt:1398
ParserOutput\setEditSectionTokens
setEditSectionTokens( $t)
Definition: ParserOutput.php:449
wfDebug
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
Definition: GlobalFunctions.php:999
OutputPage
This class should be covered by a general architecture document which does not exist as of January 20...
Definition: OutputPage.php:44
ParserOutput\getLanguageLinks
& getLanguageLinks()
Definition: ParserOutput.php:306
ParserOutput\$mHideNewSection
$mHideNewSection
Definition: ParserOutput.php:98
list
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
Definition: deferred.txt:11
$sort
$sort
Definition: profileinfo.php:323
ParserOutput\$mLanguageLinks
$mLanguageLinks
Definition: ParserOutput.php:34
ParserOutput\getModuleScripts
getModuleScripts()
Definition: ParserOutput.php:377
ParserOutput\getExternalLinks
& getExternalLinks()
Definition: ParserOutput.php:361
ParserOutput\getTemplateIds
& getTemplateIds()
Definition: ParserOutput.php:349
ParserOutput\getTOCHTML
getTOCHTML()
Definition: ParserOutput.php:402
or
or
Definition: COPYING.txt:140
ParserOutput\recordOption
recordOption( $option)
Tags a parser option for use in the cache key for this parser output.
Definition: ParserOutput.php:891
ParserOutput\addOutputHook
addOutputHook( $hook, $data=false)
Definition: ParserOutput.php:499
links
This document describes the XML format used to represent information about external sites known to a MediaWiki installation This information about external sites is used to allow inter wiki links
Definition: sitelist.txt:3
ParserOutput\SLOW_AR_TTL
const SLOW_AR_TTL
Definition: ParserOutput.php:229
ParserOutput\getTitleText
getTitleText()
Definition: ParserOutput.php:329
ParserOutput\$mWarnings
$mWarnings
Definition: ParserOutput.php:139
ParserOutput\getText
getText()
Definition: ParserOutput.php:252
Title\makeTitleSafe
static makeTitleSafe( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
Definition: Title.php:538
ParserOutput\$mSpeculativeRevId
integer null $mSpeculativeRevId
Assumed rev ID for {{REVISIONID}} if no revision is set.
Definition: ParserOutput.php:215
ParserOutput\setProperty
setProperty( $name, $value)
Set a property to be stored in the page_props database table.
Definition: ParserOutput.php:840
ParserOutput\getNewSection
getNewSection()
Definition: ParserOutput.php:512
ParserOutput\setExtensionData
setExtensionData( $key, $value)
Attaches arbitrary data to this ParserObject.
Definition: ParserOutput.php:935
$value
$value
Definition: styleTest.css.php:45
NS_MEDIA
const NS_MEDIA
Definition: Defines.php:50
ParserOutput\$mSections
$mSections
Definition: ParserOutput.php:144
ParserOutput\getOutputHooks
getOutputHooks()
Definition: ParserOutput.php:390
ParserOutput\$mLinks
$mLinks
Definition: ParserOutput.php:55
ParserOutput\getHideNewSection
getHideNewSection()
Definition: ParserOutput.php:509
$wgServer
$wgServer
URL of the server.
Definition: DefaultSettings.php:109
ParserOutput\$mFlags
$mFlags
Definition: ParserOutput.php:212
ParserOutput\$mParseStartTime
$mParseStartTime
Definition: ParserOutput.php:202
ParserOutput\$mTitleText
$mTitleText
Definition: ParserOutput.php:49
$ret
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
Definition: hooks.txt:1956
ParserOutput\$mEnableOOUI
$mEnableOOUI
Definition: ParserOutput.php:174
ParserOutput\$mJsConfigVars
$mJsConfigVars
Definition: ParserOutput.php:128
ParserOutput\getNoGallery
getNoGallery()
Definition: ParserOutput.php:365
ParserOutput\addWarning
addWarning( $s)
Definition: ParserOutput.php:495
ParserOutput\getTemplates
& getTemplates()
Definition: ParserOutput.php:345
ParserOutput\setSections
setSections( $toc)
Definition: ParserOutput.php:445
ParserOutput\setCategoryLinks
setCategoryLinks( $cl)
Definition: ParserOutput.php:437
ParserOutput\$mTOCEnabled
$mTOCEnabled
Definition: ParserOutput.php:169
ParserOutput\$mText
$mText
Definition: ParserOutput.php:28
ParserOutput\getFileSearchOptions
& getFileSearchOptions()
Definition: ParserOutput.php:357
Title
Represents a title within MediaWiki.
Definition: Title.php:39
ParserOutput\getProperty
getProperty( $name)
Definition: ParserOutput.php:852
ParserOutput\$mModuleStyles
$mModuleStyles
Definition: ParserOutput.php:123
ParserOutput\$mTOCHTML
$mTOCHTML
Definition: ParserOutput.php:159
ParserOutput\$mModules
$mModules
Definition: ParserOutput.php:113
ParserOutput\FAST_AR_TTL
const FAST_AR_TTL
Definition: ParserOutput.php:228
https
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at https
Definition: design.txt:12
ParserOutput\$mCategories
$mCategories
Definition: ParserOutput.php:39
$section
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section
Definition: hooks.txt:2929
ParserOutput\addJsConfigVars
addJsConfigVars( $keys, $value=null)
Add one or more variables to be set in mw.config in JavaScript.
Definition: ParserOutput.php:668
ParserOutput\getCategories
& getCategories()
Definition: ParserOutput.php:318
ParserOutput\getRawText
getRawText()
Get the cacheable text with <mw:editsection> markers still in it.
Definition: ParserOutput.php:248
as
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9
$skin
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned $skin
Definition: hooks.txt:1956
$keys
$keys
Definition: testCompression.php:65
ParserOutput\getLimitReportData
getLimitReportData()
Definition: ParserOutput.php:413
ParserOutput\getEditSectionTokens
getEditSectionTokens()
Definition: ParserOutput.php:337
CacheTime\updateCacheExpiry
updateCacheExpiry( $seconds)
Sets the number of seconds after which this object should expire.
Definition: CacheTime.php:93
ParserOutput\addTrackingCategory
addTrackingCategory( $msg, $title)
Add a tracking category, getting the title from a system message, or print a debug message if the tit...
Definition: ParserOutput.php:710
ParserOutput\$mTemplates
$mTemplates
Definition: ParserOutput.php:61
ParserOutput\getExtensionData
getExtensionData( $key)
Gets extensions data previously attached to this ParserOutput using setExtensionData().
Definition: ParserOutput.php:954
of
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
Definition: globals.txt:10
ParserOutput\addLanguageLink
addLanguageLink( $t)
Definition: ParserOutput.php:491
wfMessage
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "&lt
$t
$t
Definition: testCompression.php:67
ParserOutput\$mHeadItems
$mHeadItems
Definition: ParserOutput.php:108
ParserOutput\$mTemplateIds
$mTemplateIds
Definition: ParserOutput.php:67
ParserOutput\addInterwikiLink
addInterwikiLink( $title)
Definition: ParserOutput.php:623
$wgOut
$wgOut
Definition: Setup.php:791
ParserOutput\setTOCHTML
setTOCHTML( $tochtml)
Definition: ParserOutput.php:457
ParserOutput\$mNewSection
$mNewSection
Definition: ParserOutput.php:93
OutputPage\getJsConfigVars
getJsConfigVars()
Get the javascript config vars to include on this page.
Definition: OutputPage.php:3095
ParserOutput\getSections
getSections()
Definition: ParserOutput.php:333
ParserOutput\hasDynamicContent
hasDynamicContent()
Check whether the cache TTL was lowered due to dynamic content.
Definition: ParserOutput.php:1058
ParserOutput\addHeadItem
addHeadItem( $section, $tag=false)
Add some text to the "<head>".
Definition: ParserOutput.php:641
ParserOutput\setEnableOOUI
setEnableOOUI( $enable=false)
Enables OOUI, if true, in any OutputPage instance this ParserOutput object is added to.
Definition: ParserOutput.php:487
wfGetRusage
wfGetRusage()
Get system resource usage of current request context.
Definition: ProfilerFunctions.php:32
ParserOutput\$mIndicators
$mIndicators
Definition: ParserOutput.php:44
server
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same so they can t rely on Unix and must forbid reads to even standard directories like tmp lest users read each others files We cannot assume that the user has the ability to install or run any programs not written as web accessible PHP scripts Since anything that works on cheap shared hosting will work if you have shell or root access MediaWiki s design is based around catering to the lowest common denominator Although we support higher end setups as the way many things work by default is tailored toward shared hosting These defaults are unconventional from the point of view of and they certainly aren t ideal for someone who s installing MediaWiki as MediaWiki does not conform to normal Unix filesystem layout Hopefully we ll offer direct support for standard layouts in the but for now *any change to the location of files is unsupported *Moving things and leaving symlinks will *probably *not break but it is *strongly *advised not to try any more intrusive changes to get MediaWiki to conform more closely to your filesystem hierarchy Any such attempt will almost certainly result in unnecessary bugs The standard recommended location to install relative to the web is it should be possible to enable the appropriate rewrite rules by if you can reconfigure the web server
Definition: distributors.txt:53
ParserOutput\$mModuleScripts
$mModuleScripts
Definition: ParserOutput.php:118
ParserOutput\finalizeAdaptiveCacheExpiry
finalizeAdaptiveCacheExpiry()
Call this when parsing is done to lower the TTL based on low parse times.
Definition: ParserOutput.php:1091
ParserOutput\getSpeculativeRevIdUsed
getSpeculativeRevIdUsed()
Definition: ParserOutput.php:302
ParserOutput\$mTimestamp
$mTimestamp
Definition: ParserOutput.php:164
ParserOutput\getLinks
& getLinks()
Definition: ParserOutput.php:341
ParserOutput\setIndexPolicy
setIndexPolicy( $policy)
Definition: ParserOutput.php:453
ParserOutput\getIndexPolicy
getIndexPolicy()
Definition: ParserOutput.php:398
ParserOutput\getTimeSinceStart
getTimeSinceStart( $clock)
Returns the time since resetParseStartTime() was last called.
Definition: ParserOutput.php:996
array
the array() calling protocol came about after MediaWiki 1.4rc1.
ParserOutput\preventClickjacking
preventClickjacking( $flag=null)
Get or set the prevent-clickjacking flag.
Definition: ParserOutput.php:1071
If
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is and will automatically terminate your rights under this License parties who have received or from you under this License will not have their licenses terminated so long as such parties remain in full compliance You are not required to accept this since you have not signed it nothing else grants you permission to modify or distribute the Program or its derivative works These actions are prohibited by law if you do not accept this License by modifying or distributing the you indicate your acceptance of this License to do and all its terms and conditions for distributing or modifying the Program or works based on it Each time you redistribute the the recipient automatically receives a license from the original licensor to distribute or modify the Program subject to these terms and conditions You may not impose any further restrictions on the recipients exercise of the rights granted herein You are not responsible for enforcing compliance by third parties to this License If
Definition: COPYING.txt:191
ParserOutput\getWarnings
getWarnings()
Definition: ParserOutput.php:394
$out
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
Definition: hooks.txt:783