Property | Type | Description | |
---|---|---|---|
$xmlReader | The XMLReader object that will help read sheet's XML data |
Method | Description | |
---|---|---|
__construct ( Box\Spout\Reader\Wrapper\XMLReader $xmlReader ) | ||
readUntilStopped ( ) : void | Resumes the reading of the XML file where it was left off. | |
registerCallback ( string $nodeName, integer $nodeType, callable $callback ) : |
Method | Description | |
---|---|---|
getCallbackKey ( string $nodeName, integer $nodeType ) : string | ||
getInvokableCallbackData ( callable $callback ) : array | Because the callback can be a "protected" function, we don't want to use call_user_func() directly but instead invoke the callback using Reflection. This allows the invocation of "protected" functions. | |
getRegisteredCallbackData ( string $nodeNamePossiblyWithPrefix, string $nodeNameWithoutPrefix, integer $nodeType ) : array | null | ||
invokeCallback ( array $callbackData, array $args ) : integer |
public __construct ( Box\Spout\Reader\Wrapper\XMLReader $xmlReader ) | ||
$xmlReader | Box\Spout\Reader\Wrapper\XMLReader | XMLReader object |
public readUntilStopped ( ) : void | ||
return | void |
public registerCallback ( string $nodeName, integer $nodeType, callable $callback ) : |
||
$nodeName | string | A callback may be triggered when a node with this name is read |
$nodeType | integer | Type of the node [NODE_TYPE_START || NODE_TYPE_END] |
$callback | callable | Callback to execute when the read node has the given name and type |
return |