Displays a list of {@link SwatMessage} object for the given row

@param mixed $row the row for which to display messages.
320675
protected function displayRowMessages($row)
    {
        $messages = array();

        foreach ($this->columns as $column) {
            $messages = array_merge($messages, $column->getMessages($row));
        }

        foreach ($this->spanning_columns as $column) {
            $messages = array_merge($messages, $column->getMessages($row));
        }

        if (count($messages) > 0) {
            $tr_tag = new SwatHtmlTag('tr');
            $tr_tag->class = 'swat-table-view-input-row-messages';
            $tr_tag->open();

            $td_tag = new SwatHtmlTag('td');
            $td_tag->colspan = $this->getXhtmlColspan();
            $td_tag->open();

            $ul_tag = new SwatHtmlTag('ul');
            $ul_tag->class = 'swat-table-view-input-row-messages';
            $ul_tag->open();

            $li_tag = new SwatHtmlTag('li');
            foreach ($messages as &$message) {
                $li_tag->setContent(
                    $message->primary_content,
                    $message->content_type
                );

                $li_tag->class = $message->getCssClass();
                $li_tag->display();
            }

            $ul_tag->close();

            $td_tag->close();
            $tr_tag->close();
        }
    }
453942
public function addMessage($message)
    {
        collect((array) $message)->each(function ($item) {
            collect($item)->flatten()->each(function ($flattened) {
                $this->messageList->push($flattened);
            });
        });
    }
1164536
protected function parseGitHubIssueNumber($row) {
    $found_match = preg_match("/(((fix(es|ed)?)|(close(s|d)?)|(resolve(s|d)?)) )?#([[:digit:]]+)|#[[:digit:]]+/",
      $row, $matches);
    if ($found_match) {
      $issue_num = $matches[9];

      return $issue_num;
    }

    return NULL;
  }
109369
private function getRow($row_number, array $row)
    {
        $message = '';
        foreach ($row as $cell_number => $player) {
            $withBackground = $this->drawCellBackground($row_number, $cell_number);
            $message .= ($withBackground ? "|<bg={$this->background_color}> " : '| ')
                        . $this->getPlayerChar($player, $withBackground)
                        . ($withBackground ? " </bg={$this->background_color}>" : ' ')
            ;
        }
        $message .= "|\n";
        $message .= $this->getLineSeparator();

        return $message;
    }
85654
protected function checkRow(array $row) {
		foreach ($row as $column => $str) {
			$width = Colors::width( $str, $this->isAsciiPreColorized( $column ) );
			if (!isset($this->_width[$column]) || $width > $this->_width[$column]) {
				$this->_width[$column] = $width;
			}
		}

		return $row;
	}
970077
protected function displayRowColumns($row, $next_row, $count)
    {
        // Make sure we should display a row for the current data. If there
        // are no visible columns for the row data, just skip displaying the
        // entire row.
        $should_show_row = false;
        foreach ($this->getVisibleColumns() as $column) {
            if ($column->hasVisibleRenderer($row)) {
                $should_show_row = true;
                break;
            }
        }

        // Display a row of data.
        if ($should_show_row) {
            $tr_tag = new SwatHtmlTag('tr');
            $tr_tag->class = $this->getRowClassString($row, $count);

            foreach ($this->columns as $column) {
                $tr_tag->addAttributes($column->getTrAttributes($row));
            }

            if ($this->rowHasMessage($row)) {
                $tr_tag->class .= ' swat-error';
            }

            $tr_tag->open();

            foreach ($this->columns as $column) {
                $column->display($row);
            }

            $tr_tag->close();
        }
    }
1086509
private function fillCells($row)
    {
        $newRow = [];
        foreach ($row as $column => $cell) {
            $newRow[] = $cell;
            if ($cell instanceof TableCell && $cell->getColspan() > 1) {
                foreach (range($column + 1, $column + $cell->getColspan() - 1) as $position) {
                    // insert empty value at column position
                    $newRow[] = '';
                }
            }
        }

        return $newRow ?: $row;
    }
1254181
public function withTargetRow(int $row): Notation
    {
        $notation = $this->getTargetColumn() . $row;

        return new self($notation);
    }
741545
public function marshal($row)
    {
        foreach ($this->_props as $key=>$prop) {
            if (isset($row[$key])) {
                $row[$key] = $prop->type->marshal($row[$key]);
            }
        }

        return $row;
    }
441633
protected function renderDataCellContent($row, $data)
    {
        /* @var $am CAuthManager|AuthBehavior */
        $am = Yii::app()->getAuthManager();

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

        $assignments = $am->getAuthAssignments($data->{$this->idColumn});
        $permissions = $am->getItemsPermissions(array_keys($assignments));
        foreach ($permissions as $itemPermission) {
            echo $itemPermission['item']->description;
            echo ' <small>' . $controller->getItemTypeText($itemPermission['item']->type, false) . '</small><br />';
        }
    }
186683
protected function callback($row)
    {
        foreach ($this->getConfig('callbacks') as $column => $callbacks) {
            if (strpos($column, '/') === 0) {
                // Interpret as a regex and apply to all matching columns.
                foreach (array_keys($row) as $name) {
                    if (preg_match($column, $name) === 1) {
                        foreach ((array) $callbacks as $callback) {
                            $row[$name] = call_user_func($callback, $row[$name]);
                        }
                    }
                }
            } else {
                // Apply to one explicitly named column.
                if (array_key_exists($column, $row) === false) {
                    throw new \RuntimeException('Unable to apply callback to missing column: ' . $column);
                }
                foreach ((array) $callbacks as $callback) {
                    $row[$column] = call_user_func($callback, $row[$column]);
                }
            }
        }
        return $row;
    }
141787
public function validateRow($row)
    {
        try {
            $this->castRow($row);

            return [];
        } catch (Exceptions\FieldValidationException $e) {
            return $e->validationErrors;
        }
    }
159602
private function renderDataCellProcessingSummariesIfNeeded($column, $row)
	{
		$value = $this->getRenderedDataCellValue($column, $row);

		if ($this->isExtendedSummaryEnabled())
			$this->processColumnValue($column, $value);

		echo $value;
	}
1233313
protected function renderDataCellContent($row, $data)
    {
        /* @var $am CAuthManager|AuthBehavior */
        $am = Yii::app()->getAuthManager();

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

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

        echo TbHtml::labelTb(
            $controller->getItemTypeText($data['item']->type),
            array(
                'color' => $labelType,
            )
        );
    }
759877
public function castRow($row)
    {
        $outRow = [];
        $validationErrors = [];
        foreach ($this->fields() as $fieldName => $field) {
            $value = array_key_exists($fieldName, $row) ? $row[$fieldName] : null;
            if (in_array($value, $this->missingValues())) {
                $value = null;
            }
            try {
                $outRow[$fieldName] = $field->castValue($value);
            } catch (Exceptions\FieldValidationException $e) {
                $validationErrors = array_merge($validationErrors, $e->validationErrors);
            }
        }
        if (count($validationErrors) > 0) {
            throw new Exceptions\FieldValidationException($validationErrors);
        }

        return $outRow;
    }
1316818
public function filterSubTable(Row $row)
    {
        if (!$this->enableRecursive) {
            return;
        }
        $subTable = $row->getSubtable();
        if ($subTable) {
            $this->filter($subTable);
        }
    }
1232806
public function castRowValues(array &$row)
    {
        foreach ($row as $field_name => $value) {
            $row[$field_name] = $this->castValue($field_name, $value);
        }
    }