TheSeer\phpDox\BuildConfig::getOutputDirectory PHP Method

getOutputDirectory() public method

public getOutputDirectory ( )
    public function getOutputDirectory()
    {
        $path = '';
        if ($this->ctx->parentNode->hasAttribute('output')) {
            $path = $this->ctx->parentNode->getAttribute('output', 'docs');
        }
        if ($this->ctx->hasAttribute('output')) {
            if ($path != '') {
                $path .= '/';
            }
            $path .= $this->ctx->getAttribute('output');
        }
        return new FileInfo($path);
    }

Usage Example

コード例 #1
0
ファイル: Xml.php プロジェクト: theseer/phpdox
 public function __construct(BuildConfig $config)
 {
     $this->outputDir = $config->getOutputDirectory();
 }