Prado\Web\UI\WebControls\TXmlTransform::getDocumentPath PHP Method

getDocumentPath() public method

public getDocumentPath ( ) : string
return string The path to the XML document. It must be in namespace format.
    public function getDocumentPath()
    {
        return $this->getViewState('DocumentPath', '');
    }

Usage Example

Esempio n. 1
0
 public function testSetDocumentPathAsNamespace()
 {
     if (Prado::getPathOfAlias('UnitTest') === null) {
         Prado::setPathOfAlias('UnitTest', dirname(__FILE__) . '/data');
     }
     $expected = $this->documentPath;
     $transform = new TXmlTransform();
     $transform->setDocumentPath('UnitTest.hello');
     $this->assertEquals($expected, $transform->getDocumentPath());
 }