| @@ -34,15 +34,8 @@ | ||
| 34 | 34 | * put your comment there... |
| 35 | 35 | * |
| 36 | 36 | * @var mixed |
| 37 | 37 | */ |
| 38 | - protected $forceProcess = array(); | |
| 39 | - | |
| 40 | - /** | |
| 41 | - * put your comment there... | |
| 42 | - * | |
| 43 | - * @var mixed | |
| 44 | - */ | |
| 45 | 38 | protected $map = array(); |
| 46 | 39 | |
| 47 | 40 | /** |
| 48 | 41 | * put your comment there... |
| @@ -150,13 +143,13 @@ | ||
| 150 | 143 | $factory = $this->getFactory(); |
| 151 | 144 | $childs = $this->getNode()->children(); |
| 152 | 145 | // For every child node that has childs create an object! |
| 153 | 146 | foreach ($childs as $childNode) { |
| 154 | - // Get node name. | |
| 155 | - $nodeName = $childNode->getName(); | |
| 156 | - // Process only childs with childs neested or what added to the force-process-map. | |
| 157 | - // Don't process scalars until they're on the force-process-map! | |
| 158 | - if (in_array($nodeName, $this->forceProcess) || count($childNode->children())) { | |
| 147 | + // Process only childs with childs nexted! | |
| 148 | + // Don't process scalars! | |
| 149 | + if (count($childNode->children())) { | |
| 150 | + // Get node name. | |
| 151 | + $nodeName = $childNode->getName(); | |
| 159 | 152 | // Initialize object factory details. |
| 160 | 153 | $objectInfo = array(); |
| 161 | 154 | // Get rule. |
| 162 | 155 | $objectInfo['rule'] = isset($this->rules[$nodeName]) ? $this->rules[$nodeName] : $this->getDefaultRule(); |
| @@ -183,9 +176,9 @@ | ||
| 183 | 176 | /** |
| 184 | 177 | * put your comment there... |
| 185 | 178 | * |
| 186 | 179 | */ |
| 187 | - public function & register() { | |
| 180 | + public function register() { | |
| 188 | 181 | return $this->register; |
| 189 | 182 | } |
| 190 | 183 | |
| 191 | 184 | /** |
| @@ -193,19 +186,7 @@ | ||
| 193 | 186 | * |
| 194 | 187 | */ |
| 195 | 188 | public function transit() { |
| 196 | 189 | return $this; |
| 197 | - } | |
| 198 | - | |
| 199 | - /** | |
| 200 | - * Default implementation to return physical path | |
| 201 | - * relative to the current package document. | |
| 202 | - * | |
| 203 | - */ | |
| 204 | - public function virtualPath() { | |
| 205 | - // Initialize. | |
| 206 | - $factory =& $this->factory; | |
| 207 | - // Return physical path relative to package document. | |
| 208 | - return $factory->getClassRelativePath(get_class($this)); | |
| 209 | 190 | } |
| 210 | 191 | |
| 211 | 192 | } // End class. |