Collaboration diagram for TwoDimensionStruct:Public Member Functions | |
| __construct (Array $data=null) | |
| getRow ($x) | |
| setRow ($x, Array $row, $force=false) | |
| insertRow ($x, Array $row=array(), $force=false) | |
| addRow (Array $row=array(), $x=null) | |
| deleteRow ($x) | |
| setColumn ($y, Array $column, $force=false) | |
| insertColumn ($y, Array $column=array(), $force=false) | |
| addColumn (Array $column=array(), $y=null) | |
| deleteColumn ($y) | |
| getColumn ($y) | |
| setValue ($x, $y, $value, $force=false) | |
| getValue ($x, $y) | |
| getArray () | |
| getEmptyValue () | |
| setEmptyValue ($emptyValue) | |
| getLastErrorMessage () | |
| getAllErrorMessages () | |
A two dim struct
This struct gives some helpers to manipulate rows and columns (addRow, addColumn, insertColumn etc...)
Definition at line 14 of file Class.twoDimensionalArray.php.
| __construct | ( | Array | $data = null | ) |
Construct a two dim object
| array | $data | two dim array to init the object |
Definition at line 31 of file Class.twoDimensionalArray.php.
Here is the call graph for this function:| addColumn | ( | Array | $column = array(), |
$y = null |
|||
| ) |
Add a column
| array | $column | values |
| int | $y | number of the column |
Definition at line 206 of file Class.twoDimensionalArray.php.
Here is the call graph for this function:| addRow | ( | Array | $row = array(), |
$x = null |
|||
| ) |
Add a row at the end of the struct or
| array | $row | values |
| int | $x | number of the row |
Definition at line 124 of file Class.twoDimensionalArray.php.
Here is the call graph for this function:| deleteColumn | ( | $y | ) |
Delete the column
| int | $y | number of the column |
Definition at line 224 of file Class.twoDimensionalArray.php.
| deleteRow | ( | $x | ) |
delete a row
| int | $x | number of the row |
Definition at line 142 of file Class.twoDimensionalArray.php.
| getAllErrorMessages | ( | ) |
Get all the array message
Definition at line 381 of file Class.twoDimensionalArray.php.
| getArray | ( | ) |
Get the two dim array
Definition at line 318 of file Class.twoDimensionalArray.php.
Here is the call graph for this function:| getColumn | ( | $y | ) |
get a column
| int | $y | number of the column |
Definition at line 242 of file Class.twoDimensionalArray.php.
| getEmptyValue | ( | ) |
Get the default empty value
Definition at line 337 of file Class.twoDimensionalArray.php.
| getLastErrorMessage | ( | ) |
Get the last error message
Definition at line 367 of file Class.twoDimensionalArray.php.
| getRow | ( | $x | ) |
Get the x row
| int | $x | number of the row |
Definition at line 53 of file Class.twoDimensionalArray.php.
| getValue | ( | $x, | |
| $y | |||
| ) |
Get a value
| int | $x | number of the row |
| int | $y | number of the column |
Definition at line 300 of file Class.twoDimensionalArray.php.
| insertColumn | ( | $y, | |
| Array | $column = array(), |
||
$force = false |
|||
| ) |
Insert a column
| int | $y | number of the column |
| array | $column | values |
| boolean | $force | force the add |
Definition at line 185 of file Class.twoDimensionalArray.php.
Here is the call graph for this function:| insertRow | ( | $x, | |
| Array | $row = array(), |
||
$force = false |
|||
| ) |
Insert a row at $x
| int | $x | number of the row |
| array | $row | values |
| boolean | $force | force to add if the row is bigger than the column size |
Definition at line 103 of file Class.twoDimensionalArray.php.
Here is the call graph for this function:| setColumn | ( | $y, | |
| Array | $column, | ||
$force = false |
|||
| ) |
Set a column values
| int | $y | number of the column |
| array | $column | values |
| boolean | $force | force to add if the column is bigger than the row size |
Definition at line 162 of file Class.twoDimensionalArray.php.
Here is the call graph for this function:| setEmptyValue | ( | $emptyValue | ) |
Set a default emptyValue
| string | $emptyValue |
Definition at line 348 of file Class.twoDimensionalArray.php.
| setRow | ( | $x, | |
| Array | $row, | ||
$force = false |
|||
| ) |
Set the values for a row
| int | $x | number of the row |
| array | $row | values |
| boolean | $force | force to add if the row is bigger than the column size or $x > the row number |
Definition at line 80 of file Class.twoDimensionalArray.php.
Here is the call graph for this function:| setValue | ( | $x, | |
| $y, | |||
| $value, | |||
$force = false |
|||
| ) |
Set a value
| int | $x | number of the row |
| int | $y | number of the column |
| string | $value | value to set |
| boolean | $force | force the add if x and y are outside the array |
Definition at line 270 of file Class.twoDimensionalArray.php.