Generates content for a single row of the table.

@since 2.3.0

@param object $network The current network item.
5874
public function single_row( $network ) {
		$class = (int) get_current_site()->id === (int) $network->id ? 'current' : 'not-current';

		echo '<tr class="' . esc_attr( $class ) . '">';
		$this->single_row_columns( $network );
		echo '</tr>';
	}
826552
private function render($row = 0)
    {
        if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
            $rows = ($this->showSummary ? array_merge($this->rows, [$this->getSummary()]) : $this->rows);
            $this->output->reWrite($rows, !$this->showSummary);
        } else {
            $this->output->writeln($this->rows[$row]);
        }
    }
1084382
public function setContent($content)
    {
        if (!is_scalar($content)) {
            $content = json_encode($content, JSON_PRETTY_PRINT);
        }

        if (is_bool($content)) {
            $content = $content ? '1': '0';
        }

        if (is_null($content)) {
            $content = '';
        }

        return $this->set('body', $content);
    }
137635
protected function generateText($node)
    {
        $buffer = '';
        
        $value = explode("\n", $node['value']);
        $last = count($value) - 1;
        
        foreach ($value as $i => $line) {
            $line = str_replace("'", '\\\'', $line);
            
            if ($i === $last) {
                $buffer .= $this->prettyPrint(sprintf(self::BLOCK_TEXT_LAST, $line));
                continue;
            }

            $buffer .= $this->prettyPrint(sprintf(self::BLOCK_TEXT_LINE, $line));
        }
        
        return $buffer;
    }
1199560
public function setContent($content)
    {

        if ($content instanceof FileInterface) {
            $content = $content->load();
        }

        if (is_file($content) && is_readable($content)) {
            $content = file_get_contents($content);
        }

        $this->rawContent = $content;
        $this->parser->setContent($this->rawContent);
    }
544745
protected function _generateBlock($node, $parent)
    {
        if ($node instanceof Mage_Core_Model_Layout_Element) {
            if (!$this->checkConditionals($node)) {
                return $this;
            }
        }

        return parent::_generateBlock($node, $parent);
    }
1068657
public function setNetwork(Transaction\NetworkType $network)
    {
        if ($this->isTransacted() || $this->parent) {
            return;
        }

        $this->network = $network;
    }
1040663
public function generate($node)
    {
        $callable = $this->generator;
        $generatedPathAsUtf8 = $callable($node);

        return $generatedPathAsUtf8 ? $this->translateToUrlEncodedPath($generatedPathAsUtf8) : false;
    }
722137
public function setNode(NodeInterface $node)
    {
        $this->nodeIdentifier = $node->getIdentifier();
        $this->workspaceName = $node->getContext()->getWorkspaceName();
        $this->dimension = $node->getContext()->getDimensions();

        $context = $node->getContext();
        if ($context instanceof ContentContext && $context->getCurrentSite() !== null) {
            $siteIdentifier = $this->persistenceManager->getIdentifierByObject($context->getCurrentSite());
        } else {
            $siteIdentifier = null;
        }
        $this->data = Arrays::arrayMergeRecursiveOverrule($this->data, [
            'nodeContextPath' => $node->getContextPath(),
            'nodeLabel' => $node->getLabel(),
            'nodeType' => $node->getNodeType()->getName(),
            'site' => $siteIdentifier
        ]);

        $node = self::getClosestAggregateNode($node);

        if ($node !== null) {
            $this->documentNodeIdentifier = $node->getIdentifier();
            $this->data = Arrays::arrayMergeRecursiveOverrule($this->data, [
                'documentNodeContextPath' => $node->getContextPath(),
                'documentNodeLabel' => $node->getLabel(),
                'documentNodeType' => $node->getNodeType()->getName()
            ]);
        }
    }
912617
public static function genUUID($version = 1, $node = null, $ns = null)
    {
        return UUID::generate($version, $node, $ns);
    }
295391
public function parseXml($node)
    {
        foreach ($node->childNodes as $item) {
            if ($item->nodeName != "#text") {
                $this->set( $item->nodeName, $item->nodeValue);
            }
        }

    }
406558
public function createNetwork($network)
	{
		$request = new client\Request('/api/mpegts/network/create', array(
			'class'=>$network->getClassName(),
			'conf'=>json_encode($network)));

		$this->_client->getResponse($request);
	}
568757
public function setContent($content)
    {
        if (is_array($content)) {
            $this->setContentType('json');
            $this->_content = json_encode($content, JSON_PRETTY_PRINT);
        } else {
            $this->_content = (string) $content;
        }
    }
384787
function setRowspan($rowspan) {
    if ($rowspan === $this->rowspan) {
      // Nothing to do.
      return $this;
    }
    $clone = $this->setAttribute('rowspan', $rowspan > 1 ? $rowspan : null);
    $clone->rowspan = $rowspan;
    return $clone;
  }
975500
public function setArticlesRows($dc)
	{
		$element = \ContentModel::findByPk($dc->id);

		$GLOBALS['TL_DCA']['tl_content']['fields']['bootstrap_columnset']['eval']['minCount'] = $element->sc_type;
	}
1237473
function td($rowName, $content) {
    $this->tsection->td($rowName, $this->colName, $content);
    return $this;
  }
1307512
function tdOpenEnd($rowName, $colName, $content) {
    $this->cellContents[$rowName][$colName] = $content;
    $this->openEndCells[$rowName][$colName] = true;
    return $this;
  }