private function completeDrawer(array $items) { $resultVariables = []; $output = $this->pattern; if (count($this->itemIds) > 0) { foreach ($this->itemIds as $key => $def) { if (!isset($items[$key]) || empty($items[$key])) { $resultVariables[$key] = $def; } else { $resultVariables[$key] = $items[$key]; } } $resultVariables = $this->onControllingItems($resultVariables); foreach ($resultVariables as $key => $value) { if ($value instanceof PrintableObject) { $value = $value->onFlush(\genonbeta\util\FlushArgument::getDefaultArguments()); } $output = str_replace('{$.' . $key . '}', $value, $output); } } return $output; }
protected function onSkeletonLoaded(ViewSkeleton $skeleton) { $this->getOutputWrapper()->put("systemOutput", $skeleton); // Let's output the data =) echo $this->getOutputWrapper()->onFlush(FlushArgument::getDefaultArguments()); }