Lines Matching refs:renderer

31 	private function set_errors(&$renderer) {  argument
33 $renderer->doc .= "<div class=\"project_file_errors\">";
34 $this->add_error($renderer, htmlspecialchars('<' . PROJECTS_TAG . '>') .
38 $renderer->doc .= "</div>";
43 $renderer->doc .= "<div class=\"project_file_errors\">";
46 $this->add_error($renderer, "Do not know how to generate the file");
51 $this->add_error($renderer,
63 $this->add_error($renderer,
71 $this->add_error($renderer, "Circular dependency:" . $msg);
75 $renderer->doc .= "</div>";
78 public function render(&$renderer) { argument
81 $renderer->doc .= "<div class=\"project_file\" id=\"$id\">";
82 $renderer->doc .= "<a name=\"$id\"></a>";
84 $renderer->doc .= "<div class=\"project_file_header\">";
86 $renderer->doc .= "<div class=\"tag_header\">Type</div>";
88 $renderer->doc .= "<div class=\"project_file_type\">$type</div>";
90 $renderer->doc .= "<div class=\"tag_header\">Name</div>";
91 $renderer->doc .= "<div class=\"project_file_name\">";
92 $this->render_name($renderer);
93 $renderer->doc .= "</div>";
99 $renderer->doc .= "<div class=\"tag_header\">in project</div>";
100 $renderer->doc .=
103 $renderer->doc .= "</div>";
105 $renderer->doc .= "<div class=\"spacer\"></div>";
106 $renderer->doc .= "<div class=\"project_file_buttons\">";
107 $this->render_buttons($renderer);
108 $renderer->doc .= "</div>";
110 $renderer->doc .= "</div>";
111 $this->set_errors($renderer);
112 $renderer->doc .= "<div class=\"project_file_content\">";
113 $renderer->doc .= $this->render_content($renderer);
115 $renderer->doc .= "</div>";
116 $renderer->doc .= "</div>";
119 protected function render_name(&$renderer) { argument
120 $renderer->doc .= $this->file_name;
123 protected function render_content(&$renderer) {} argument
125 protected function render_buttons(&$renderer) { argument
127 $renderer->doc .= button_add("Add dependency", USE_TAG);
128 $renderer->doc .= button_delete($this->project->id($this->file_name));
130 $renderer->doc .= action_button("Manage files", 'manage_files');
133 public function add_error(&$renderer, $error) { argument
134 $renderer->doc .= "<div class=\"error\">$error</div>";
148 protected function render_name(&$renderer) { argument
150 $renderer->internalmedia($this->file_name, NULL, NULL, NULL, NULL, NULL, 'linkonly');
151 else parent::render_name($renderer);
154 protected function render_content(&$renderer) { argument
159 $renderer->preformatted(file_get_contents(
163 $this->render_file_content($renderer);
166 protected function render_file_content(&$renderer) { argument
168 $renderer->internalmedia($this->project->id($name));
173 render_code($renderer, file_get_contents(
178 protected function render_buttons(&$renderer) { argument
181 $renderer->doc .= button_remake($this->project->id($this->file_name));
182 parent::render_buttons($renderer);
200 protected function render_file_content(&$renderer) { argument
201 $renderer->doc .= "<div class=\"crosslink\">";
205 $renderer->doc .= '<a href="' . ml($this->crosslink) . '">' . $this->crosslink . '</a>';
207 $renderer->doc .= html_wikilink($this->crosslink);
209 $renderer->doc .= "</div>";