DataType Classes
DTArrayObject
DTKeyValue
DTClass
DTConfig
DTConstant
DTCronTask
DTDBOption
DTDBSet
DTDBWhere
DTDBWhereRelation
DTEventContext
DTFileinfo
DTFileUpload
DTProperty
DTRequestIn
DTRequestOut
DTResponse
DTRoute
DTRoutingAdditional
all these classes resides in \MVC\DataType\
DTArrayObject
MVC\DataType\DTArrayObject {#91 ▼
#aKeyValue: []
}
DTKeyValue
MVC\DataType\DTKeyValue {#91 ▼
#sKey: ""
#iIndex: null
#sValue: null
#mOptional1: null
#mOptional2: null
#mOptional3: null
}
DTClass
MVC\DataType\DTClass {#91 ▼
#name: ""
#file: ""
#extends: ""
#namespace: ""
#trait: []
#constant: []
#property: []
#createHelperMethods: true
}
DTConfig
MVC\DataType\DTConfig {#91 ▼
#dir: ""
#unlinkDir: false
#class: []
}
DTConstant
MVC\DataType\DTConstant {#91 ▼
#key: ""
#value: null
#visibility: ""
}
DTCronTask
MVC\DataType\DTCronTask {#91 ▼
#sRoute: ""
#iIntervall: 60
#sStaging: ""
#sCommand: ""
#iPid: 0
}
DTDBOption
MVC\DataType\DTDBOption {#91 ▼
#sValue: ""
}
DTDBSet
MVC\DataType\DTDBSet {#91 ▼
#sKey: ""
#sValue: null
}
DTDBWhere
MVC\DataType\DTDBWhere {#91 ▼
#sKey: ""
#sRelation: "="
#sValue: ""
}
DTDBWhereRelation
MVC\DataType\DTDBWhereRelation {#91}
DTEventContext
- This Class provides various information about the context of an event.
- An object of this class is passed to executed Closures in
Event::bind()
MVC\DataType\DTEventContext {#91 ▼
#sEvent: ""
#sEventOrigin: ""
#mRunPackage: ""
#aBonded: []
#sBondedBy: ""
#sCalledIn: ""
#oCallback: null
#sCallbackDumped: ""
#sMessage: ""
}
DTFileinfo
- This Class is used to store File Information.
- An object of this class gets being returned by File::info()
/** @var \MVC\DataType\DTFileinfo $oDTFileinfo */
$oDTFileinfo = \MVC\File::info(__FILE__);
MVC\DataType\DTFileinfo {#91 ▼
#dirname: ""
#basename: ""
#path: ""
#is_file: false
#is_dir: false
#extension: ""
#filename: ""
#name: ""
#passwd: ""
#uid: 0
#gid: 0
#filemtime: 0
#filectime: 0
#filesize: 0
#gecos: ""
#dir: ""
#shell: ""
#mimetype: ""
}
DTFileUpload
MVC\DataType\DTFileUpload {#91 ▼
#name: []
#full_path: []
#type: []
#tmp_name: []
#error: []
#size: []
}
DTProperty
MVC\DataType\DTProperty {#91 ▼
#key: ""
#var: "string"
#value: null
#visibility: "protected"
#static: false
#setter: true
#getter: true
#explicitMethodForValue: false
#listProperty: true
#createStaticPropertyGetter: true
#setValueInConstructor: true
#forceCasting: false
#required: false
#addMyMVCEvents: true
}
DTRequestIn
- This Class is used to store the current incoming Request Informations.
- An object of this class gets being returned by
Request::in()
(see /2.x/request#Request-in)
/** @var \MVC\DataType\DTRequestIn $oDTRequestIn */
$oDTRequestIn = \MVC\Request::in();
$oDTRequestIn
MVC\DataType\DTRequestIn {#91 ▼
#requestMethod: ""
#full: ""
#protocol: ""
#scheme: ""
#requestUri: ""
#path: ""
#host: ""
#pathArray: []
#pathParamArray: []
#query: ""
#queryArray: []
#headerArray: []
#input: ""
#ip: ""
#cookieArray: []
#isSecure: false
#isCli: false
#isHttp: false
}
Example
\MVC\DataType\DTRequestIn::__set_state(array(
'requestMethod' => 'GET',
'full' => 'https://emvicy2x.ddev.site/imprint/foo/bar/baz?a=b',
'protocol' => 'https://',
'scheme' => 'https',
'requestUri' => '/imprint/foo/bar/baz?a=b',
'path' => '/imprint/foo/bar/baz',
'host' => 'emvicy2x.ddev.site',
'pathArray' => array (
0 => 'imprint',
1 => 'foo',
2 => 'bar',
3 => 'baz',
),
'pathParamArray' => array (
'_tail' => 'foo/bar/baz',
),
'query' => 'a=b',
'queryArray' => array (
'a' => 'b',
),
'headerArray' => array (
'X-Real-Ip' => '172.21.0.1',
'X-Forwarded-Server' => '0d23c0701c03',
'X-Forwarded-Proto' => 'https',
'X-Forwarded-Port' => '443',
'X-Forwarded-Host' => 'emvicy2x.ddev.site',
'X-Forwarded-For' => '172.21.0.1',
'Upgrade-Insecure-Requests' => '1',
'Sec-Fetch-User' => '?1',
'Sec-Fetch-Site' => 'none',
'Sec-Fetch-Mode' => 'navigate',
'Sec-Fetch-Dest' => 'document',
'Sec-Ch-Ua-Platform' => '"Linux"',
'Sec-Ch-Ua-Mobile' => '?0',
'Sec-Ch-Ua' => '"Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"',
'Priority' => 'u=0, i',
'Cookie' => 'Emvicy_cookieConsent=true; Emvicy_secure=7t9i925cp5bendbl939ct4h6ug',
'Cache-Control' => 'max-age=0',
'Accept-Language' => 'de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7',
'Accept-Encoding' => 'gzip, deflate, br, zstd',
'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'User-Agent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36',
'Host' => 'emvicy2x.ddev.site',
),
'input' => '',
'ip' => '172.21.0.1',
'cookieArray' => array (
'Emvicy_cookieConsent' => 'true',
'Emvicy_secure' => '7t9i925cp5bendbl939ct4h6ug',
),
'isSecure' => true,
'isCli' => false,
'isHttp' => true,
))
DTRequestOut
MVC\DataType\DTRequestOut {#91 ▼
#eRequestMethod: null
#sUrl: ""
#aHeader: []
#aData: []
#aOption: []
}
DTResponse
MVC\DataType\DTResponse {#91 ▼
#body: ""
#raw: ""
#headers: []
#status_code: 0
#protocol_version: 0
#success: false
#redirects: 0
#url: ""
#history: []
#cookies: []
}
DTRoute
- This Class is used to store Route Information.
- An object of this class gets being returned by
Route::getCurrent()
(see /2.x/routing#Get-current-route)
/** @var \MVC\DataType\DTRoute $oDTRoute */
$oDTRoute = \MVC\Route::getCurrent();
$oDTRoute
MVC\DataType\DTRoute {#91 ▼
#path: ""
#requestMethod: ""
#methodsAssigned: []
#query: ""
#module: ""
#class: ""
#classFile: ""
#method: ""
#additional: null
#tag: ""
}
Example
\MVC\DataType\DTRoute::__set_state(array(
'path' => '/',
'requestMethod' => 'GET',
'methodsAssigned' => array (
0 => 'GET',
),
'query' => '\\Foo\\Controller\\Index::index',
'module' => 'Foo',
'class' => '\\Foo\\Controller\\Index',
'classFile' => '/var/www/html/modules/Foo/Controller/Index.php',
'method' => 'index',
'additional' => \Foo\DataType\DTRoutingAdditional::__set_state(array(
'sTitle' => 'Home',
'sTemplate' => 'Frontend/content/index.tpl',
'sContent' => '',
'aStyle' => array (
0 => '/Emvicy/assets/bootstrap-5.3.3-dist/css/bootstrap.min.css',
1 => '/Emvicy/assets/fontawesome-free-6.7.2-web/css/all.min.css',
2 => '/Emvicy/styles/Emvicy.min.css',
3 => '/Ws_old/assets/pnotify.min.css',
4 => '/Ws_old/assets/pnotify.brighttheme.min.css',
),
'aScript' => array (
0 => '/Emvicy/assets/jquery-3.7.1/jquery-3.7.1.min.js',
1 => '/Emvicy/assets/jquery-cookie-1.4.1/jquery.cookie.min.js',
2 => '/Emvicy/assets/popper-v2.11.8/popper.min.js',
3 => '/Emvicy/assets/bootstrap-5.3.3-dist/js/bootstrap.min.js',
4 => '/Emvicy/scripts/cookieConsent.min.js',
5 => '/Ws_old/assets/pnotify.min.js',
6 => '/Ws_old/assets/pnotify.desktop.min.js',
7 => '/Ws_old/scripts/pnotify.min.js',
8 => '/Ws/scripts/wss.domain.port.min.js',
),
)),
'tag' => 'home',
))
DTRoutingAdditional
MVC\DataType\DTRoutingAdditional {#91 ▼
#sTitle: ""
#sTemplate: ""
#sContent: ""
#aStyle: []
#aScript: []
}
Example
\Foo\DataType\DTRoutingAdditional::__set_state(array(
'sTitle' => 'Home',
'sTemplate' => 'Frontend/content/index.tpl',
'sContent' => '',
'aStyle' => array (
0 => '/Emvicy/assets/bootstrap-5.3.3-dist/css/bootstrap.min.css',
1 => '/Emvicy/assets/fontawesome-free-6.7.2-web/css/all.min.css',
2 => '/Emvicy/styles/Emvicy.min.css',
3 => '/Ws_old/assets/pnotify.min.css',
4 => '/Ws_old/assets/pnotify.brighttheme.min.css',
),
'aScript' => array (
0 => '/Emvicy/assets/jquery-3.7.1/jquery-3.7.1.min.js',
1 => '/Emvicy/assets/jquery-cookie-1.4.1/jquery.cookie.min.js',
2 => '/Emvicy/assets/popper-v2.11.8/popper.min.js',
3 => '/Emvicy/assets/bootstrap-5.3.3-dist/js/bootstrap.min.js',
4 => '/Emvicy/scripts/cookieConsent.min.js',
5 => '/Ws_old/assets/pnotify.min.js',
6 => '/Ws_old/assets/pnotify.desktop.min.js',
7 => '/Ws_old/scripts/pnotify.min.js',
8 => '/Ws/scripts/wss.domain.port.min.js',
),
))