You are here

class QPTableTextData in QueryPath 6

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

Hierarchy

Expanded class hierarchy of QPTableTextData

File

QueryPath/Extension/QPList.php, line 133

View source
class QPTableTextData extends QPTableData {
  public function setHeaders($array) {
    $headers = array();
    foreach ($array as $header) {
      $headers[] = htmlentities($header);
    }
    parent::setHeaders($headers);
    return $this;
  }
  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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
QPTableData::$caption protected property
QPTableData::$headers protected property
QPTableData::$p protected property
QPTableData::$rows protected property
QPTableData::getHeaders public function Overrides TableAble::getHeaders
QPTableData::getIterator public function
QPTableData::getRows public function Overrides TableAble::getRows
QPTableData::size public function Overrides TableAble::size
QPTableTextData::setHeaders public function Overrides QPTableData::setHeaders
QPTableTextData::setRows public function Overrides QPTableData::setRows