@@ 79-88 (lines=10) @@ | ||
76 | * @return bool |
|
77 | * @access protected |
|
78 | */ |
|
79 | protected function setRegistryWritableFalse()/*# : bool */ |
|
80 | { |
|
81 | foreach ($this->lookup_pool as $reg) { |
|
82 | if ($reg instanceof WritableInterface && |
|
83 | !$reg->setWritable(false)) { |
|
84 | return false; |
|
85 | } |
|
86 | } |
|
87 | return true; |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * Set writable to TRUE at first matching registry |
|
@@ 96-105 (lines=10) @@ | ||
93 | * @return bool |
|
94 | * @access protected |
|
95 | */ |
|
96 | protected function setRegistryWritableTrue()/*# : bool */ |
|
97 | { |
|
98 | foreach ($this->lookup_pool as $reg) { |
|
99 | if ($reg instanceof WritableInterface && |
|
100 | $reg->setWritable(true)) { |
|
101 | return true; |
|
102 | } |
|
103 | } |
|
104 | return false; |
|
105 | } |
|
106 | } |
|
107 |