Renders each cell renderer in this details-view field

@param mixed $data the data object being used to render the cell
renderers of this field.

@see SwatDetailsViewField::displayRenderers()
771440
protected function displayRenderers($data)
    {
        $div_tag = new SwatHtmlTag('div');
        $div_tag->open();

        foreach ($this->renderers as $renderer) {
            $renderer->render();
            echo ' ';
        }

        $div_tag->close();
    }
118444
protected function setupRenderers($data)
    {
        if (count($this->renderers) === 0) {
            throw new SwatException(
                'No renderer has been provided for this column.'
            );
        }

        $sensitive = $this->view->isSensitive();

        // Set the properties of the renderers to the value of the data field.
        foreach ($this->renderers as $renderer) {
            $this->renderers->applyMappingsToRenderer($renderer, $data);
            $renderer->sensitive = $renderer->sensitive && $sensitive;
        }
    }
913814
public function renderJson($data=null)
    {
        $this->beforeRender($data);
        
        $res = ErrorInfo::instance($this->responseData())->all();
        
        foreach ($res as $k => $v) {
            if ($v instanceof Collection) {
                $res[$k] = $v->all();
            }
        }
        
        if ($callback = $this->input('callback')) {
            $string = $callback . '(' . json_encode($res) . ')';
        } else {
            $this->response = $this->response->withHeader('Content-Type', 'application/json;charset=utf-8');
            $string = json_encode($res);
        }
        
        return $this->renderText($string);
    }
960287
protected function renderDataCellContent($row, $data)
    {
        echo CHtml::link(CHtml::value($data, $this->nameColumn), array('view', 'id' => $data->{$this->idColumn}));
    }
1319293
public function RenderData($Data = NULL) {
      if ($Data === NULL) {
         $Data = array();

         // Remove standard and "protected" data from the top level.
         foreach ($this->Data as $Key => $Value) {
            if ($Key && in_array($Key, array('Title', 'Breadcrumbs')))
               continue;
            if (isset($Key[0]) && $Key[0] === '_')
               continue; // protected
            
            $Data[$Key] = $Value;
         }
         unset($this->Data);
      }

      // Massage the data for better rendering.
      foreach ($Data as $Key => $Value) {
         if (is_a($Value, 'Gdn_DataSet')) {
            $Data[$Key] = $Value->ResultArray();
         }
      }
      
      $CleanOutut = C('Api.Clean', TRUE);
      if ($CleanOutut) {
         // Remove values that should not be transmitted via api
         $Remove = array('Password', 'HashMethod', 'TransientKey', 'Permissions', 'Attributes', 'AccessToken');
         if (!Gdn::Session()->CheckPermission('Garden.Moderation.Manage')) {
            $Remove[] = 'InsertIPAddress';
            $Remove[] = 'UpdateIPAddress';
            $Remove[] = 'LastIPAddress';
            $Remove[] = 'AllIPAddresses';
            $Remove[] = 'Fingerprint';
            if (C('Api.Clean.Email', TRUE))
               $Remove[] = 'Email';
            $Remove[] = 'DateOfBirth';
         }
         $Data = RemoveKeysFromNestedArray($Data, $Remove);
      }
      
      // Make sure the database connection is closed before exiting.
      $this->EventArguments['Data'] = &$Data;
      $this->Finalize();
      
      // Add error information from the form.
      if (isset($this->Form) && sizeof($this->Form->ValidationResults())) {
         $this->StatusCode(400);
         $Data['Code'] = 400;
         $Data['Exception'] = Gdn_Validation::ResultsAsText($this->Form->ValidationResults());
      }
      
      
      $this->SendHeaders();

      // Check for a special view.
      $ViewLocation = $this->FetchViewLocation(($this->View ? $this->View : $this->RequestMethod).'_'.strtolower($this->DeliveryMethod()), FALSE, FALSE, FALSE);
      if (file_exists($ViewLocation)) {
         include $ViewLocation;
         return;
      }
      
      // Add schemes to to urls.
      $r = array_walk_recursive($Data, array('Gdn_Controller', '_FixUrlScheme'), Gdn::Request()->Scheme());
      
      switch ($this->DeliveryMethod()) {
         case DELIVERY_METHOD_XML:
            header('Content-Type: text/xml', TRUE);
            echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
            $this->_RenderXml($Data);
            return TRUE;
            break;
         case DELIVERY_METHOD_PLAIN:
            return TRUE;
            break;
         case DELIVERY_METHOD_JSON:
         default:
            if (($Callback = $this->Request->Get('callback', FALSE)) && $this->AllowJSONP()) {
               header('Content-Type: application/javascript', TRUE);
               // This is a jsonp request.
               echo $Callback.'('.json_encode($Data).');';
               return TRUE;
            } else {
               header('Content-Type: application/json', TRUE);
               // This is a regular json request.
               echo json_encode($Data);
               return TRUE;
            }
            break;
      }
      return FALSE;
   }
796728
protected function doRender($data)
    {
        if ($data instanceof Structure) {
            return $data->toString($this->format, (array) $this->config->get('options', []));
        }

        return Arr::dump($data, $this->config->get('options.level', 5));
    }
1115899
protected function renderDataCellContent($row, $data)
	{
		$tr = array();
		ob_start();
		foreach ($this->buttons as $id => $button) {
			$this->renderButton($id, $button, $row, $data);
			$tr['{' . $id . '}'] = ob_get_contents();
			ob_clean();
		}
		ob_end_clean();
		echo "<div class='btn-group'>" . strtr($this->template, $tr) . "</div>";
	}
907610
protected function displayRenderers($row)
    {
        $offset = $this->offset;

        if ($this->title != '') {
            if ($offset === 0) {
                $offset = 1;
            }

            $th_tag = new SwatHtmlTag('th', $this->getThAttributes());
            $th_tag->colspan = $offset;
            $th_tag->setContent(
                sprintf(Swat::_('%s:'), $this->title),
                $this->title_content_type
            );
            $th_tag->display();
        } elseif ($offset > 0) {
            $td_tag = new SwatHtmlTag('td');
            $td_tag->colspan = $offset;
            $td_tag->setContent('&nbsp;', 'text/xml');
            $td_tag->display();
        }

        $td_tag = new SwatHtmlTag('td', $this->getTdAttributes());
        $td_tag->colspan = $this->view->getXhtmlColspan() - $offset;

        $td_tag->open();
        $this->displayRenderersInternal($row);
        $td_tag->close();
    }
660787
public function render()
    {
        if (!$this->visible) {
            return;
        }

        $is_null = $this->strict ? $this->text === null : $this->text == null;

        if ($is_null) {
            $this->text = $this->null_text;

            echo '<span class="swat-null-text-cell-renderer">';
            parent::render();
            echo '</span>';

            // Reset the text so that subsequent $is_null checks pass.
            $this->text = null;
        } else {
            parent::render();
        }
    }
1117827
public function renderRawData($data = '')
    {
        $layoutPath = null;
        if ($this->layout && (!$layoutPath = $this->getLayoutFile((new KernelInjector)->build()->getAppDir(),
                $this->module))
        ) {
            (new LoggerInjector)->build()->send('error', 'Layout `'.$this->layout.'` not found');
        }

        if ($layoutPath) {
            $data = $this->insertStyleScripts($this->renderFile($layoutPath, ['content' => $data]));
        }

        return $data;
    }
587884
public function addRenderer(SwatCellRenderer $renderer)
    {
        $this->renderers[] = $renderer;

        $renderer_key = spl_object_hash($renderer);
        $this->mappings[$renderer_key] = array();

        if ($renderer->id !== null) {
            $this->renderers_by_id[$renderer->id] = $renderer;
        }
    }
673075
protected function _renderDisplayView($options, $data = [], $returnRaw = false)
    {
        if (array_key_exists('repeated_view', $options) && $options['repeated_view']) {
            return $this->_renderRepeatedDisplayView($options, $data);
        } elseif ($displayView = $this->displayViewOptions($options)) {
            $viewData = [$this->_renderDataName => $data, 'data' => $data];
            $viewData = is_array($data) ? $data + $viewData : $viewData;
            return View::make($displayView, $viewData)->render();
        } elseif ($returnRaw) {
            return (string) $data;
        } else {
            return $this->_renderDisplayViewNotFoundError();
        }
    }
425836
public function addRenderer(SwatCellRenderer $renderer)
    {
        $this->renderers->addRenderer($renderer);
        $renderer->parent = $this;
    }
569202
protected function displayErrorData($data)
    {
        $this->raiseDebuggerTakeover();

        $debug = new ErrorDebugger();
        $debug->setErrorData($data);
        echo $debug->compile();
    }
172178
protected function renderDataCellContent($row, $data)
    {
        /* @var $am CAuthManager|AuthBehavior */
        $am = Yii::app()->getAuthManager();

        $linkCssClass = $this->active || $am->hasParent($this->itemName, $data['name']) || $am->hasChild(
            $this->itemName,
            $data['name']
        ) ? 'active' : 'disabled';

        /* @var $controller AuthItemController */
        $controller = $this->grid->getController();

        echo CHtml::link(
            $data['item']->description,
            array('/auth/' . $controller->getItemControllerId($data['item']->type) . '/view', 'name' => $data['name']),
            array('class' => $linkCssClass)
        );
    }
619073
public function serialize($data) {
        $list = $this->recursive($data, 1);
        return $this->renderWith(['Result', 'Controller'], ['Data' => \ArrayList::create($list)]);
    }
1007609
public function RenderHtml(&$Content, &$Data)
    {
        header('Content-Type: text/html');

        foreach ($Content as $key => $val) {

            $datum = isset($Data[$val['key']]) ? $Data[$val['key']] : null;
            $hasChild = isset($val['child']) ? true : false;

            $this->_Output .= $val['text'];

            if ($this->CustomRender !== null) {
                $this->CustomRender->RegisterFunction($val['key'], $val['param']);
                $this->_Output .= $this->CustomRender->Parse();
            }

            if ($val['param'] !== false) {
                if ($val['key'] === 'css') {
                    $this->tempCss .= $val['param'];
                }
                if ($val['key'] === 'js') {
                    $this->tempJs .= $val['param'];
                }

                if ($val['key'] === 'part') {
                    if ($val['param'] === 'css') {
                        $this->_Output .= $this->tempCss;
                    }
                    if ($val['param'] === 'js') {
                        $this->_Output .= $this->tempJs;
                    }
                }
            }

            if ($this->GetVarType($datum) === $this->STRINGS) {
                $this->_Output .= (string)$Data[$val['key']];
            } else if ($this->GetVarType($datum) === $this->NUMERIC) {
                $this->_Output .= (double)$Data[$val['key']];
            } else if ($this->GetVarType($datum) === $this->ARRAYS) {
                foreach ($datum as $k => $v) {
                    if (is_array($v)) {
                        //Numeric Array
                        $this->RenderHtml($val['child'], $v);
                    } else {
                        //Associative Arrays
                        $this->RenderHtml($val['child'], $datum);
                        break;
                    }
                }
            } else if ($this->GetVarType($datum) === $this->BOOLEANS) {
                if ($datum) {
                    $this->RenderHtml($val['child'], $datum);
                }
            } else if ($this->GetVarType($datum) === $this->OBJECTS) {
                if ($datum instanceof Parts) {
                    $datum->RegisterFunction($val['key'], $val['param']);
                    if ($datum->tags === $datum->fnName) {
                        //Append output
                        $this->_Output .= $datum->Parse();
                        //Append property
                        $this->tempCss .= $datum->pte->GetTempCss();
                        $this->tempJs .= $datum->pte->GetTempJs();
                    }
                }
            } else {
                if ($hasChild && $datum !== null) {
                    $this->RenderHtml($val['child'], $datum);
                }
            }
        }
        return $this->_Output;
    }