Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -99,7 +99,14 @@ |
100 | 100 | } |
101 | 101 | function addScript( $script ) { $this->mScripts .= "\t\t" . $script . "\n"; } |
102 | 102 | |
103 | | - function addExtensionStyle( $url ) { |
| 103 | + /** |
| 104 | + * Register and add a stylesheet from an extension directory. |
| 105 | + * @param $url String path to sheet. Provide either a full url (beginning |
| 106 | + * with 'http', etc) or a relative path from the document root |
| 107 | + * (beginning with '/'). Otherwise it behaves identically to |
| 108 | + * addStyle() and draws from the /skins folder. |
| 109 | + */ |
| 110 | + public function addExtensionStyle( $url ) { |
104 | 111 | $linkarr = array( 'rel' => 'stylesheet', 'href' => $url, 'type' => 'text/css' ); |
105 | 112 | array_push( $this->mExtStyles, $linkarr ); |
106 | 113 | } |