Changeset 1450
- Timestamp:
- 03/23/08 00:12:27 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/xml/page/stubXMLPassThruPageElement.php
r1421 r1450 15 15 * @package stubbles 16 16 * @subpackage websites_xml_page 17 * @XMLTag(tagName= "passThru")18 * @XMLMethods[XMLMatcher](pattern= "/getContents/")17 * @XMLTag(tagName='passThru') 18 * @XMLMethods[XMLMatcher](pattern='/getContents/') 19 19 */ 20 20 class stubXMLPassThruPageElement extends stubAbstractPageElement implements stubXMLPageElement … … 57 57 * 58 58 * @return string 59 * @XMLFragment(tagName= "content")59 * @XMLFragment(tagName='content') 60 60 */ 61 61 public function getContents() 62 62 { 63 $fileName = $this->directory . DIRECTORY_SEPARATOR. $this->fileName;63 $fileName = $this->directory . '/' . $this->fileName; 64 64 if (file_exists($fileName) == false) { 65 65 return '<error>The file ' . $fileName . ' does not exist.</error>'; … … 76 76 public function getCacheVars() 77 77 { 78 return array('filename' => $this-> fileName);78 return array('filename' => $this->directory . '/' . $this->fileName); 79 79 } 80 80 … … 86 86 public function getUsedFiles() 87 87 { 88 return array($this->directory . DIRECTORY_SEPARATOR. $this->fileName);88 return array($this->directory . '/' . $this->fileName); 89 89 } 90 90 trunk/src/test/php/net/stubbles/websites/WebsitesTestSuite.php
r1449 r1450 58 58 // xml page 59 59 $suite->addTestFile($dir . '/xml/page/stubXMLPageElementDecoratorTestCase.php'); 60 $suite->addTestFile($dir . '/xml/page/stubXMLPassThruPageElementTestCase.php'); 60 61 61 62 // xml skin
