You are here

class QPTableData in QueryPath 6

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

Hierarchy

Expanded class hierarchy of QPTableData

File

QueryPath/Extension/QPList.php, line 115

View source
class QPTableData implements TableAble, IteratorAggregate {
  protected $headers;
  protected $rows;
  protected $caption;
  protected $p = -1;
  public function setHeaders($array) {
    $this->headers = $array;
    return $this;
  }
  public function getHeaders() {
    return $this->headers;
  }
  public function setRows($array) {
    $this->rows = $array;
    return $this;
  }
  public function getRows() {
    return $this->rows;
  }
  public function size() {
    return count($this->rows);
  }
  public function getIterator() {
    return new ArrayIterator($rows);
  }

}

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::setHeaders public function 1
QPTableData::setRows public function 1
QPTableData::size public function Overrides TableAble::size