MediaWiki REL1_33
License.php
Go to the documentation of this file.
1<?php
30class License {
32 public $template;
33
35 public $text;
36
40 public function __construct( $str ) {
41 $str = $this->parse( $str );
42 list( $this->template, $this->text ) = $this->split( $str );
43 }
44
49 protected function parse( $str ) {
50 return $str;
51 }
52
57 protected function split( $str ) {
58 list( $text, $template ) = explode( '|', strrev( $str ), 2 );
59 return [ strrev( $template ), strrev( $text ) ];
60 }
61}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
A License class for use on Special:Upload (represents a single type of license).
Definition License.php:30
split( $str)
Definition License.php:57
string $template
Definition License.php:32
__construct( $str)
Definition License.php:40
parse( $str)
Definition License.php:49
string $text
Definition License.php:35
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