| @@ 985-993 (lines=9) @@ | ||
| 982 | * Construct a new preprocessor frame. |
|
| 983 | * @param Preprocessor $preprocessor The parent preprocessor |
|
| 984 | */ |
|
| 985 | public function __construct( $preprocessor ) { |
|
| 986 | $this->preprocessor = $preprocessor; |
|
| 987 | $this->parser = $preprocessor->parser; |
|
| 988 | $this->title = $this->parser->mTitle; |
|
| 989 | $this->titleCache = [ $this->title ? $this->title->getPrefixedDBkey() : false ]; |
|
| 990 | $this->loopCheckHash = []; |
|
| 991 | $this->depth = 0; |
|
| 992 | $this->childExpansionCache = []; |
|
| 993 | } |
|
| 994 | ||
| 995 | /** |
|
| 996 | * Create a new child frame |
|
| @@ 830-838 (lines=9) @@ | ||
| 827 | * Construct a new preprocessor frame. |
|
| 828 | * @param Preprocessor $preprocessor The parent preprocessor |
|
| 829 | */ |
|
| 830 | public function __construct( $preprocessor ) { |
|
| 831 | $this->preprocessor = $preprocessor; |
|
| 832 | $this->parser = $preprocessor->parser; |
|
| 833 | $this->title = $this->parser->mTitle; |
|
| 834 | $this->titleCache = [ $this->title ? $this->title->getPrefixedDBkey() : false ]; |
|
| 835 | $this->loopCheckHash = []; |
|
| 836 | $this->depth = 0; |
|
| 837 | $this->childExpansionCache = []; |
|
| 838 | } |
|
| 839 | ||
| 840 | /** |
|
| 841 | * Create a new child frame |
|