Index
-
\com\setasign\SetaFramework
-
Helper
- ArrayHelper
- ConsoleHelper
- CsrfProtection
- CsrfProtectionException
- DataWrapper
- DatabaseCleaner
- Debugging
- FilesystemHelper
- FunctionWrapper
- JsonHelper
- Logger
- LoggerHelper
- MathHelper
- ObserverClosure
- OutputBufferHelper
- ParameterSanitizer
- PregMatchAllMatchesIterator
- RateLimiter
- ReturnValueClosure
- StringHelper
- SwiftMailerHelper
- UnexpectedOutputException
- UnserializableClosure
-
Helper
com\setasign\SetaFramework\Helper
DataWrapper Class DataWrapper
File: /SetaFramework/src/Helper/DataWrapper.php
Class hierarchy
Implements
Summary
Constants
MODE_ADD
MODE_DELETED
MODE_READ
Properties
$actualData
$actualFile
$directory
$key
$metaData
$mode
Methods
delete()
Exceptions
Throws \com\setasign\SetaFramework\Exception If some files cannot be deleted. If will stop at the file which couldn't be deleted. All remaining files won't be tried to delete!
key()
(PHP 5 >= 5.0.0)
Return the key of the current element
Return Values
scalar on success, or null on failure.
offsetExists()
Whether a offset exists.
Warning: this method shouldn't be used too much because of performance. If you want to use it multiple times maybe jumpToOffset is a faster way.
Parameters
- $offset : mixed
An offset to check for.
Return Values
true on success or false on failure.
The return value will be cast to boolean if non-boolean was returned.
offsetGet()
Offset to retrieve.
Warning: this method should be used too much because of performance. If you want to use it multiple times maybe jumpToOffset is a faster way.
Parameters
- $offset : mixed
The offset to retrieve.
Return Values
Can return all value types.
offsetSet()
(PHP 5 >= 5.0.0)
Offset to set
Parameters
- $offset : mixed
The offset to assign the value to.
- $value : mixed
The value to set.
rewind()
(PHP 5 >= 5.0.0)
Rewind the Iterator to the first element
Return Values
Any returned value is ignored.
valid()
(PHP 5 >= 5.0.0)
Checks if current position is valid
Return Values
The return value will be cast to boolean and then evaluated. Returns true on success or false on failure.
