You are here

public function QPTableTextData::setRows in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/Extension/QPList.php \QPTableTextData::setRows()
  2. 7.2 QueryPath/Extension/QPList.php \QPTableTextData::setRows()

Overrides QPTableData::setRows

File

QueryPath/Extension/QPList.php, line 142

Class

QPTableTextData

Code

public function setRows($array) {
  $count = count($array);
  for ($i = 0; $i < $count; ++$i) {
    $cols = array();
    foreach ($data[$i] as $datum) {
      $cols[] = htmlentities($datum);
    }
    $data[$i] = $cols;
  }
  parent::setRows($array);
  return $this;
}