Commit f6e4b9b9 authored by alexpott's avatar alexpott

Issue #2003328 by crowdcg, tvlooy: Rename Views method render_text() to renderText().

parent a39c996c
...@@ -19,19 +19,19 @@ ...@@ -19,19 +19,19 @@
*/ */
/** /**
* Indicator of the render_text() method for rendering a single item. * Indicator of the renderText() method for rendering a single item.
* (If no render_item() is present). * (If no render_item() is present).
*/ */
define('VIEWS_HANDLER_RENDER_TEXT_PHASE_SINGLE_ITEM', 0); define('VIEWS_HANDLER_RENDER_TEXT_PHASE_SINGLE_ITEM', 0);
/** /**
* Indicator of the render_text() method for rendering the whole element. * Indicator of the renderText() method for rendering the whole element.
* (if no render_item() method is available). * (if no render_item() method is available).
*/ */
define('VIEWS_HANDLER_RENDER_TEXT_PHASE_COMPLETELY', 1); define('VIEWS_HANDLER_RENDER_TEXT_PHASE_COMPLETELY', 1);
/** /**
* Indicator of the render_text() method for rendering the empty text. * Indicator of the renderText() method for rendering the empty text.
*/ */
define('VIEWS_HANDLER_RENDER_TEXT_PHASE_EMPTY', 2); define('VIEWS_HANDLER_RENDER_TEXT_PHASE_EMPTY', 2);
...@@ -1139,14 +1139,14 @@ function advanced_render($values) { ...@@ -1139,14 +1139,14 @@ function advanced_render($values) {
$alter = $item + $this->options['alter']; $alter = $item + $this->options['alter'];
$alter['phase'] = VIEWS_HANDLER_RENDER_TEXT_PHASE_SINGLE_ITEM; $alter['phase'] = VIEWS_HANDLER_RENDER_TEXT_PHASE_SINGLE_ITEM;
$items[] = $this->render_text($alter); $items[] = $this->renderText($alter);
} }
$value = $this->render_items($items); $value = $this->render_items($items);
} }
else { else {
$alter = array('phase' => VIEWS_HANDLER_RENDER_TEXT_PHASE_COMPLETELY) + $this->options['alter']; $alter = array('phase' => VIEWS_HANDLER_RENDER_TEXT_PHASE_COMPLETELY) + $this->options['alter'];
$value = $this->render_text($alter); $value = $this->renderText($alter);
} }
if (is_array($value)) { if (is_array($value)) {
...@@ -1163,7 +1163,7 @@ function advanced_render($values) { ...@@ -1163,7 +1163,7 @@ function advanced_render($values) {
$alter['alter_text'] = 1; $alter['alter_text'] = 1;
$alter['text'] = $this->options['empty']; $alter['text'] = $this->options['empty'];
$alter['phase'] = VIEWS_HANDLER_RENDER_TEXT_PHASE_EMPTY; $alter['phase'] = VIEWS_HANDLER_RENDER_TEXT_PHASE_EMPTY;
$this->last_render = $this->render_text($alter); $this->last_render = $this->renderText($alter);
} }
} }
...@@ -1203,7 +1203,7 @@ function is_value_empty($value, $empty_zero, $no_skip_empty = TRUE) { ...@@ -1203,7 +1203,7 @@ function is_value_empty($value, $empty_zero, $no_skip_empty = TRUE) {
* This is separated out as some fields may render lists, and this allows * This is separated out as some fields may render lists, and this allows
* each item to be handled individually. * each item to be handled individually.
*/ */
function render_text($alter) { public function renderText($alter) {
$value = $this->last_render; $value = $this->last_render;
if (!empty($alter['alter_text']) && $alter['text'] !== '') { if (!empty($alter['alter_text']) && $alter['text'] !== '') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment