Displays this tile using a data object

@param mixed $data a data object used to display the cell renderers in
this tile.
424572
public function display($data)
    {
        if (!$this->visible) {
            return;
        }

        $this->setupRenderers($data);
        $this->displayRenderers($data);
    }
363564
private function applyCachedData($data)
    {
        foreach ($data as $key => $value) {
            $this->$key = $value;
        }

        $this->cached = true;
    }
550375
function set($data) {
		if ($data instanceof Row) {
			$this->row->__set($data->getTable()->getName() . "_id", $data->id);
			$this->row->__unset($this->name);
			return $this;
		}
		if ($data instanceof Cell) {
			$data = $data->get();
		}
		parent::set($data);
		$this->dirty = true;
		return $this;
	}
403967
final public function render($data = array())
    {
        $context = $this->getContext();
        $context->data       = array_merge($this->getData(), $data);
        $context->action     = 'render';
        $context->parameters = array();

        if ($this->invokeCommand('before.render', $context) !== false)
        {
            //Render the view
            $context->result = $this->_actionRender($context);
            $this->invokeCommand('after.render', $context);
        }

        return $context->result;
    }
415070
public function setData($data)
    {
        if (true === is_object($data)) {
            return $this->setDataObject($data);
        }

        $this->_picpath = null;
        $this->_isValid = null;
        $this->_domdocument = null;
        $this->_zones = null;

        $this->_data = $data;

        return $this;
    }
1319567
public function view($data)
    {
        //align
        switch ($this->align) {
            case 'center': $a = ['text-align'=>'center']; break;
            case 'right': $a = ['text-align'=>'right']; break;
            case 'left':
            default: $a = ['text-align'=>'left'];
        }
        $this->styles['list_div'] = array_merge($this->styles['list_div'], $a);
        //width
        $wid = floor(100 / $this->columns) - 1;
        //data and formatter
        $this->styles['list_item'] = array_merge($this->styles['list_item'], ['width'=>"$wid%"]);
        if (array_key_exists('data', $data)) {
            $d = $data['data'];
        } else {
            $d = $data;
        }
        if (array_key_exists('label_formatter', $data)) {
            $lf = $data['label_formatter'];
        }
        if (array_key_exists('text_formatter', $data)) {
            $tf = $data['text_formatter'];
        }
        foreach ($d as $k => $v) {
            $ltext = $k;
            if(isset($lf) && is_callable($lf)) {
                $ltext = $lf($k);
            }
            $label = new Element('label', new Text($ltext));
            $label->addClass($this->getClass('list_label'))->setAttribute('style', $this->getStyle('list_label'));
            $ttext = $v;
            if(isset($tf) && is_callable($tf)) {
                $ttext = $tf($v);
            }
            $text = new Element('span', new Text($ttext));
            $text->addClass($this->getClass('list_text'))->setAttribute('style', $this->getStyle('list_text'));
            $item = new Element('div');
            $item->addClass('list_item')->setAttribute('style', $this->getStyle('list_item'));
            $item->appendChild($label)->appendChild($text);
            $this->appendChild($item);
            $this->addClass('list_div')->setAttribute('style', $this->getStyle('list_div'));
        }
        return $this->render();
    }
4960
public function printLine($data)
    {
        if (!is_array($data)) {
            throw new \RuntimeException("can not write CSV data. supplied data is not an array.");
        }
        fputcsv($this->handle, $data, $this->delimiter, $this->enclosure, $this->escape);
        ++$this->lineNumber;
    }
1148412
public function data($data)
    {
        if ($data instanceof Arrayable) {
            $data = $data->toArray();
        }

        $this->data = $data;
    }
912520
public function set_data( $data ) {

		foreach ( $this->child as $child ) {
			if ( method_exists( $child, 'set_data' ) ) {
				$child->set_data( $data );
			}
		}
		$this->data = $data;

	}
205075
protected function renderDataRecursive($data)
    {
        if (!is_array($data) && !($data instanceof Traversable)) {
            throw new InvalidArgumentException('The renderable data must be iterable.');
        }

        if (!$this->form() instanceof ObjectContainerInterface) {
            throw new RuntimeException(sprintf(
                'The [%s] widget has no data model.',
                static::CLASS
            ));
        }

        foreach ($data as $key => $val) {
            if (is_string($val)) {
                $data[$key] = $this->renderData($val);
            } elseif (is_array($val) || ($val instanceof Traversable)) {
                $data[$key] = $this->renderDataRecursive($val);
            } else {
                continue;
            }
        }

        return $data;
    }
1230358
public function unserialize($data)
    {
        $object = unserialize($data);

        foreach ($object['engines'] as &$engine) {
            if ($engine[0] instanceof SerializableClosure) {
                $engine[0] = $engine[0]->getClosure();
            }
        }

        $this->engines = $object['engines'];
        $this->renderer = $object['renderer'];
    }
629135
protected function renderDataCellContent($row, $data)
	{
		$content = $this->emptyText;
		if ($this->imagePathExpression && $imagePath = $this->evaluateExpression(
			$this->imagePathExpression,
			array('row' => $row, 'data' => $data)
		)
		) {
			$this->imageOptions['src'] = $imagePath;
			$content = CHtml::tag('img', $this->imageOptions);
		} elseif ($this->usePlaceHoldIt && !empty($this->placeHoldItSize)) {
			$content = CHtml::tag(
				'img',
				array('src' => 'http://placehold.it/' . $this->placeHoldItSize)
			);
		} elseif ($this->usePlaceKitten && !empty($this->placeKittenSize)) {
			$content = CHtml::tag('img', array('src' => 'http://placekitten.com/' . $this->placeKittenSize));
		}
		echo $content;
	}
661889
public function view($data)
    {
        switch($this->level) {
            case 'success': $css = 'alert-success'; break;
            case 'info': $css = 'alert-info'; break;
            case 'warning': $css = 'alert-warning'; break;
            case 'danger': $css = 'alert-danger'; break;
            default: $css = 'alert-info'; break;
        }
        array_push($this->cssClass['alert'], $css);
        if (is_array($data) && array_key_exists('message', $data)) {
            $msg = $data['message'];
        } else {
            $msg = (string)$data;
        }
        if (is_array($data) && array_key_exists('formatter', $data)) {
            $mf = $data['formatter'];
            if (is_callable($mf)) {
                $msg = $mf($msg);
            }
        }
        $this->setValue(new Text($msg))->addClass($this->getClass('alert'))->setAttribute('role', 'alert');
        return $this->render();
    }
91043
protected function renderDataCellContent($row, $data)
    {
        ob_start();
        parent::renderDataCellContent($row, $data);
        $html = ob_get_contents();
        ob_end_clean();

        if ($this->grid->json) {
            return $html;
        }

        echo $html;
    }
425516
protected function doSetFrom($data)
    {
        foreach ($data as $k => $v)
            $this->set($k, $v);
    }
1346878
public function render(array $data = array())
    {
        parent::render($data);

        if($this->_source instanceof KTemplateEngineInterface)
        {
            $this->_source = $this->_source->render($data);
            $this->_source = $this->filter();
        }

        return $this->_source;
    }
307083
public function render(array $data = [])
	{
		if ( ! empty($data))
		{
			$this->set($data);
		}

		return $this->parser->parse($this->file, $this->getData());
	}