| Index: trunk/extensions/PageSchemas/PageSchemas.classes.php |
| — | — | @@ -129,7 +129,7 @@ |
| 130 | 130 | $row = $dbr->fetchRow( $res ); |
| 131 | 131 | //retrievimg the third attribute which is pp_value |
| 132 | 132 | $pageXmlstr = $row[2]; |
| 133 | | - $pageXml = simplexml_load_string ( $pageXmlstr ); |
| | 133 | + $pageXml = simplexml_load_string ( $pageXmlstr ); |
| 134 | 134 | $this->pageName = (string)$pageXml->attributes()->name; |
| 135 | 135 | /* index for template objects */ |
| 136 | 136 | $i = 0 ; |
| — | — | @@ -144,20 +144,20 @@ |
| 145 | 145 | } |
| 146 | 146 | } |
| 147 | 147 | /* function to generate all pages based on the Xml contained in the page */ |
| 148 | | - function generateAllPages () { |
| | 148 | + function generateAllPages () { |
| 149 | 149 | wfRunHooks( 'PageSchemasGeneratePages', array( $this )); |
| 150 | 150 | } |
| 151 | 151 | /*return an array of PSTemplate Objects */ |
| 152 | | - function getTemplates () { |
| | 152 | + function getTemplates () { |
| 153 | 153 | return $this->PSTemplates; |
| 154 | 154 | } |
| 155 | 155 | /*returns the name of the PageSchema object */ |
| 156 | | - function getName(){ |
| | 156 | + function getName(){ |
| 157 | 157 | return $this->pageName; |
| 158 | 158 | } |
| 159 | | - function getFormName(){ |
| | 159 | + function getFormName(){ |
| 160 | 160 | return $this->formName; |
| 161 | | - } |
| | 161 | + } |
| 162 | 162 | function getCategoryName(){ |
| 163 | 163 | return $this->categoryName; |
| 164 | 164 | } |