class QPTableTextData in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/Extension/QPList.php \QPTableTextData
- 7.2 QueryPath/Extension/QPList.php \QPTableTextData
Hierarchy
- class \QPTableData implements \IteratorAggregate, TableAble
- class \QPTableTextData
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
QPTableData:: |
protected | property | ||
QPTableData:: |
protected | property | ||
QPTableData:: |
protected | property | ||
QPTableData:: |
protected | property | ||
QPTableData:: |
public | function |
Overrides TableAble:: |
|
QPTableData:: |
public | function | ||
QPTableData:: |
public | function |
Overrides TableAble:: |
|
QPTableData:: |
public | function |
Overrides TableAble:: |
|
QPTableTextData:: |
public | function |
Overrides QPTableData:: |
|
QPTableTextData:: |
public | function |
Overrides QPTableData:: |