public static function get_directive_data($directive_code) { $directive_name = self::get_directive_name($directive_code); $directive_data = array('directive_name' => $directive_name); if (DirectiveFactory::is_nested_directive($directive_name)) { $directive_data = array_merge($directive_data, self::get_nested_directive_data($directive_code, $directive_name)); } else { $directive_data['directive_parameters'] = self::get_simple_directive_parameters($directive_code); } return $directive_data; }
private function process_directive($directive_code, $output) { $directive = DirectiveFactory::get_directive($directive_code, $this->component); return $directive->render($this->template_vars); }