Methods
Decodes the given string
UTF8Decode(\encoded $value) : \decoded
Inherited
inherited_from |
\Webenq_Import_Adapter_Abstract::UTF8Decode() |
Parameters
Returns
\decoded
string
Opens the file for reading
__construct(string $filename) : \Webenq_Import_Adapter_Ods
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$filename
string
Returns
Factory for an import-adapter
factory(string $filename)
InheritedStatic
inherited_from |
\Webenq_Import_Adapter_Abstract::factory() |
Parameters
$filename
string
Name of the file
Returns the value for the given cell
getCell() : string
Inherited
The first parameter can be in the form of 'A1'. In that case the
second paramter can be an integer indicating the working-sheet to
use (defaults to 0). Alternatively the first and second parameter
together can represent the cell, in the form 0, 0 (equals to A1).
In that case the working-sheet integer is the third parameter.
inherited_from |
\Webenq_Import_Adapter_Abstract::getCell() |
Returns
string
The value of the requested cell
Gets the data from the file
getData() : array
Returns
array
Nested array of sheets containing questions and answers
Returns the filename of the uploaded file
getFilename() : string
Inherited
inherited_from |
\Webenq_Import_Adapter_Abstract::getFilename() |
Returns
string
Filename
Finds the child node with the given name
_findChildNode(\DOMNode $node, string $name) : array
Parameters
$name
string
The name of the child node
Returns
array
of DOMNode objects The found child nodes, or empty array
Helper function for getCell()
_getCellFromArray(string $row, string $col, int $sheet) : string
Inherited
inherited_from |
\Webenq_Import_Adapter_Abstract::_getCellFromArray() |
Parameters
$row
string
$col
string
$sheet
int
Returns
string
The value of the requested cell
Helper function for getCell()
_getCellFromMatrix(string $cell, int $sheet) : string
Inherited
inherited_from |
\Webenq_Import_Adapter_Abstract::_getCellFromMatrix() |
Parameters
$cell
string
$sheet
int
Returns
string
The value of the requested cell
Gets the relevant part of the XML (the actual table with data)
_getTables() : \DOMNode
Returns
\DOMNode
The node containing the data table
Checks if the given array contains values
_hasValues(array $array) : bool
Parameters
$array
array
The array to check
Returns
bool
True if it contains values, false otherwise
Translates some field labels to Dutch
_translate(string $value) : string
Inherited
inherited_from |
\Webenq_Import_Adapter_Abstract::_translate() |
Parameters
$value
string
Non-Dutch field label
Returns
string
Dutch field label
Properties