/** * Renders single row * * If you use for formatting then interact with template->set() directly * prior to calling parent * * @param SQLite $template template to use for row rendering * * @return string HTML of rendered template */ function rowRender($template) { foreach ($this->current_row as $key => $val) { if (isset($this->current_row_html[$key])) { continue; } $template->trySet($key, $val); } $template->setHTML($this->current_row_html); $template->trySet('id', $this->current_id); return $template->render(); }
/** * Renders single row * * If you use for formatting then interact with template->set() directly * prior to calling parent * * @param SQLite $template template to use for row rendering * * @return string HTML of rendered template */ function rowRender($template) { foreach ($this->current_row as $key => $val) { if (isset($this->current_row_html[$key])) { continue; } $template->trySet($key, $val); } $template->setHTML($this->current_row_html); $template->trySet('id', $this->current_id); $o = $template->render(); foreach (array_keys($this->current_row) + array_keys($this->current_row_html) as $k) { $template->tryDel($k); } return $o; }
/** * Renders single row * * @param SQLite $template template to use for row rendering * * @return string HTML of rendered template */ function rowRender($template) { $template->trySet('width', $this->model->default_thumb_width); return parent::rowRender($template); }