|
@@ 1974-1980 (lines=7) @@
|
| 1971 |
|
|
| 1972 |
|
$path = '/'.$path; |
| 1973 |
|
|
| 1974 |
|
for ($i = 0, $c = count($this->attributes); $i < $c; $i++) { |
| 1975 |
|
$attrs = $this->attributes[$i]; |
| 1976 |
|
|
| 1977 |
|
if (isset($attrs[$name]) && isset($attrs['pattern']) && preg_match($attrs['pattern'], $path)) { |
| 1978 |
|
$perm = $attrs[$name]; |
| 1979 |
|
} |
| 1980 |
|
} |
| 1981 |
|
|
| 1982 |
|
return $perm === null ? (is_null($val)? $this->defaults[$name] : $val) : !!$perm; |
| 1983 |
|
} |
|
@@ 2006-2012 (lines=7) @@
|
| 2003 |
|
|
| 2004 |
|
$testPath = $this->separator.$this->_relpath($path); |
| 2005 |
|
|
| 2006 |
|
for ($i = 0, $c = count($this->attributes); $i < $c; $i++) { |
| 2007 |
|
$attrs = $this->attributes[$i]; |
| 2008 |
|
|
| 2009 |
|
if (isset($attrs['write']) && isset($attrs['pattern']) && preg_match($attrs['pattern'], $testPath)) { |
| 2010 |
|
$perm = $attrs['write']; |
| 2011 |
|
} |
| 2012 |
|
} |
| 2013 |
|
|
| 2014 |
|
return $perm === null ? true : $perm; |
| 2015 |
|
} |