private function parsePathsSettings(\DOMNode $paths) {

		if(is_null($this->paths)) {
			$this->paths = [];
		}

		foreach($paths->getElementsByTagName('path') as $path) {

			$id = $path->getAttribute('id');
			$subdir = $path->getAttribute('subdir') ?: '';

			if(!$id || !$subdir) {
				continue;
			}

			$subdir = '/' . trim($subdir, '/') . '/';

			// additional attributes are currently ignored

			$this->paths[$id] = ['subdir' => $subdir];

		}

	}
private function parsePathsSettings(\DOMNode $paths) {

		if(is_null($this->paths)) {
			$this->paths = [];
		}

		foreach($paths->getElementsByTagName('path') as $path) {

			$id = $path->getAttribute('id');
			$subdir = $path->getAttribute('subdir') ?: '';

			if(!$id || !$subdir) {
				continue;
			}

			$subdir = '/' . trim($subdir, '/') . '/';

			// additional attributes are currently ignored

			$this->paths[$id] = ['subdir' => $subdir];

		}

	}
private function parsePathsSettings ( \ DOMNode $ paths ) { if ( is_null ( $ this -> paths ) ) { $ this -> paths = [ ] ; } foreach ( $ paths -> getElementsByTagName ( 'path' ) as $ path ) { $ id = $ path -> getAttribute ( 'id' ) ; $ subdir = $ path -> getAttribute ( 'subdir' ) ? : '' ; if ( ! $ id || ! $ subdir ) { continue ; } $ subdir = '/' . trim ( $ subdir , '/' ) . '/' ; // additional attributes are currently ignored $ this -> paths [ $ id ] = [ 'subdir' => $ subdir ] ; } }
parse various path setting

@param \DOMNode $paths
parse various path setting