Source for file InCC.php
Documentation is available at InCC.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
require_once 'HTML/Table/Matrix/Filler.php';
* Fill inwards, clockwise.
* @author Arpad Ray <arpad@rajeczy.com>
* @package HTML_Table_Matrix
* Number of columns to move towards the right for the next cell
* Number of rows to move downwards for the next cell
* Number of cells inwards for the current revolution
* @param Object $matrix Reference to the HTML_Table_Matrix instance we are
* @param array $options Options for this Filler
* @param int $index Where we're at in the data-set
* @return array 1-dimensional array in the form of (row, col) containing the
* coordinates to put the data for this loop iteration
$this->row += $this->_down;
$this->col += $this->_right;
if ($this->row == $this->matrix->_rows - $this->_in - 1 ) {
if ($this->col == $this->matrix->_cols - $this->_in - 1 ) {
} else if ($this->col == $this->matrix->_fillStartCol + $this->_in) {
} else if ($this->row == $this->matrix->_fillStartRow + $this->_in
&& $this->col == $this->matrix->_cols - $this->_in - 1
&& $this->col != $this->matrix->_fillStartCol + $this->_in) {
// first row, last column, revolution width != 1
} else if ($this->col + $this->_right == $this->matrix->_fillStartCol + $this->_in
&& $this->row + $this->_down == $this->matrix->_fillStartRow + $this->_in) {
// next cell would be the starting
return array ($this->row, $this->col);
Documentation generated on Mon, 11 Mar 2019 15:32:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|