Overview

Classes

  • MvcCore\Application
  • MvcCore\Config
  • MvcCore\Controller
  • MvcCore\Controller\AutoInit
  • MvcCore\Debug
  • MvcCore\Environment
  • MvcCore\Ext\Auth
  • MvcCore\Ext\Auths\Basic
  • MvcCore\Ext\Auths\Basics\Controller
  • MvcCore\Ext\Auths\Basics\Role
  • MvcCore\Ext\Auths\Basics\SignInForm
  • MvcCore\Ext\Auths\Basics\SignOutForm
  • MvcCore\Ext\Auths\Basics\User
  • MvcCore\Ext\Auths\Basics\Users\Database
  • MvcCore\Ext\Auths\Basics\Users\SystemConfig
  • MvcCore\Ext\Auths\User
  • MvcCore\Ext\Auths\Users\Database
  • MvcCore\Ext\Auths\Users\SystemConfig
  • MvcCore\Ext\Cache
  • MvcCore\Ext\Caches\Redis
  • MvcCore\Ext\Configs\Cached
  • MvcCore\Ext\Configs\Yaml
  • MvcCore\Ext\Debugs\Tracy
  • MvcCore\Ext\Debugs\Tracys\AuthPanel
  • MvcCore\Ext\Debugs\Tracys\IncludePanel
  • MvcCore\Ext\Debugs\Tracys\MvcCorePanel
  • MvcCore\Ext\Debugs\Tracys\RoutingPanel
  • MvcCore\Ext\Debugs\Tracys\SessionPanel
  • MvcCore\Ext\Form
  • MvcCore\Ext\Forms\Field
  • MvcCore\Ext\Forms\Fields\Button
  • MvcCore\Ext\Forms\Fields\ButtonInput
  • MvcCore\Ext\Forms\Fields\Checkbox
  • MvcCore\Ext\Forms\Fields\CheckboxGroup
  • MvcCore\Ext\Forms\Fields\Color
  • MvcCore\Ext\Forms\Fields\CountrySelect
  • MvcCore\Ext\Forms\Fields\DataList
  • MvcCore\Ext\Forms\Fields\Date
  • MvcCore\Ext\Forms\Fields\DateTime
  • MvcCore\Ext\Forms\Fields\Email
  • MvcCore\Ext\Forms\Fields\File
  • MvcCore\Ext\Forms\Fields\Hidden
  • MvcCore\Ext\Forms\Fields\Image
  • MvcCore\Ext\Forms\Fields\LocalizationSelect
  • MvcCore\Ext\Forms\Fields\Month
  • MvcCore\Ext\Forms\Fields\Number
  • MvcCore\Ext\Forms\Fields\Password
  • MvcCore\Ext\Forms\Fields\RadioGroup
  • MvcCore\Ext\Forms\Fields\Range
  • MvcCore\Ext\Forms\Fields\ResetButton
  • MvcCore\Ext\Forms\Fields\ResetInput
  • MvcCore\Ext\Forms\Fields\Search
  • MvcCore\Ext\Forms\Fields\Select
  • MvcCore\Ext\Forms\Fields\SubmitButton
  • MvcCore\Ext\Forms\Fields\SubmitInput
  • MvcCore\Ext\Forms\Fields\Tel
  • MvcCore\Ext\Forms\Fields\Text
  • MvcCore\Ext\Forms\Fields\Textarea
  • MvcCore\Ext\Forms\Fields\Time
  • MvcCore\Ext\Forms\Fields\Url
  • MvcCore\Ext\Forms\Fields\Week
  • MvcCore\Ext\Forms\FieldsGroup
  • MvcCore\Ext\Forms\Validator
  • MvcCore\Ext\Forms\Validators\Color
  • MvcCore\Ext\Forms\Validators\CompanyIdEu
  • MvcCore\Ext\Forms\Validators\CompanyVatIdEu
  • MvcCore\Ext\Forms\Validators\CreditCard
  • MvcCore\Ext\Forms\Validators\Date
  • MvcCore\Ext\Forms\Validators\DateTime
  • MvcCore\Ext\Forms\Validators\Email
  • MvcCore\Ext\Forms\Validators\Files
  • MvcCore\Ext\Forms\Validators\Files\Validations\BombScanners\GzArchive
  • MvcCore\Ext\Forms\Validators\Files\Validations\BombScanners\PngImage
  • MvcCore\Ext\Forms\Validators\Files\Validations\BombScanners\RarArchive
  • MvcCore\Ext\Forms\Validators\Files\Validations\BombScanners\ZipArchive
  • MvcCore\Ext\Forms\Validators\FloatNumber
  • MvcCore\Ext\Forms\Validators\Hex
  • MvcCore\Ext\Forms\Validators\Iban
  • MvcCore\Ext\Forms\Validators\IntNumber
  • MvcCore\Ext\Forms\Validators\Ip
  • MvcCore\Ext\Forms\Validators\MinMaxLength
  • MvcCore\Ext\Forms\Validators\MinMaxOptions
  • MvcCore\Ext\Forms\Validators\Month
  • MvcCore\Ext\Forms\Validators\Number
  • MvcCore\Ext\Forms\Validators\Password
  • MvcCore\Ext\Forms\Validators\Pattern
  • MvcCore\Ext\Forms\Validators\Range
  • MvcCore\Ext\Forms\Validators\SafeString
  • MvcCore\Ext\Forms\Validators\Tel
  • MvcCore\Ext\Forms\Validators\Time
  • MvcCore\Ext\Forms\Validators\Url
  • MvcCore\Ext\Forms\Validators\ValueInOptions
  • MvcCore\Ext\Forms\Validators\Week
  • MvcCore\Ext\Forms\Validators\ZipCode
  • MvcCore\Ext\Forms\View
  • MvcCore\Ext\Models\Db\Attrs\Column
  • MvcCore\Ext\Models\Db\Attrs\Connection
  • MvcCore\Ext\Models\Db\Attrs\Format
  • MvcCore\Ext\Models\Db\Attrs\KeyPrimary
  • MvcCore\Ext\Models\Db\Attrs\KeyUnique
  • MvcCore\Ext\Models\Db\Attrs\Table
  • MvcCore\Ext\Models\Db\Connection
  • MvcCore\Ext\Models\Db\Models\MySql
  • MvcCore\Ext\Models\Db\Models\PgSql
  • MvcCore\Ext\Models\Db\Models\Resource
  • MvcCore\Ext\Models\Db\Models\SQLite
  • MvcCore\Ext\Models\Db\Models\SqlSrv
  • MvcCore\Ext\Models\Db\Providers\Connections\MySql
  • MvcCore\Ext\Models\Db\Providers\Connections\PgSql
  • MvcCore\Ext\Models\Db\Providers\Connections\SQLite
  • MvcCore\Ext\Models\Db\Providers\Connections\SqlSrv
  • MvcCore\Ext\Models\Db\Providers\Resource
  • MvcCore\Ext\Models\Db\Providers\Resources\MySql
  • MvcCore\Ext\Models\Db\Providers\Resources\PgSql
  • MvcCore\Ext\Models\Db\Providers\Resources\SQLite
  • MvcCore\Ext\Models\Db\Providers\Resources\SqlSrv
  • MvcCore\Ext\Models\Db\Reader
  • MvcCore\Ext\Models\Db\Readers\Execution
  • MvcCore\Ext\Models\Db\Readers\Multiple
  • MvcCore\Ext\Models\Db\Readers\Single
  • MvcCore\Ext\Models\Db\Readers\Stream
  • MvcCore\Ext\Models\Db\Readers\Streams\Iterator
  • MvcCore\Ext\Models\Db\Statement
  • MvcCore\Ext\Models\Model
  • MvcCore\Ext\Routers\Localization
  • MvcCore\Ext\Routers\Localizations\Route
  • MvcCore\Ext\Routers\Media
  • MvcCore\Ext\Routers\MediaAndLocalization
  • MvcCore\Ext\Routers\Module
  • MvcCore\Ext\Routers\ModuleLocalization
  • MvcCore\Ext\Routers\ModuleMedia
  • MvcCore\Ext\Routers\ModuleMediaAndLocalization
  • MvcCore\Ext\Routers\Modules\Route
  • MvcCore\Ext\Tools\Image
  • MvcCore\Ext\Tools\Images\Gd
  • MvcCore\Ext\Tools\Images\Gds\ApplyMask
  • MvcCore\Ext\Tools\Images\Gds\RoundCorners
  • MvcCore\Ext\Tools\Images\Gds\UnsharpMask
  • MvcCore\Ext\Tools\Images\Imagick
  • MvcCore\Ext\Tools\Locale
  • MvcCore\Ext\Tools\Locales\FloatParser
  • MvcCore\Ext\Tools\MimeTypesExtensions
  • MvcCore\Ext\Views\Helpers\AbstractHelper
  • MvcCore\Ext\Views\Helpers\Assets
  • MvcCore\Ext\Views\Helpers\CssHelper
  • MvcCore\Ext\Views\Helpers\DataUrlHelper
  • MvcCore\Ext\Views\Helpers\FormatDateHelper
  • MvcCore\Ext\Views\Helpers\FormatMoneyHelper
  • MvcCore\Ext\Views\Helpers\FormatNumberHelper
  • MvcCore\Ext\Views\Helpers\InternationalizedHelper
  • MvcCore\Ext\Views\Helpers\JsHelper
  • MvcCore\Ext\Views\Helpers\LineBreaksHelper
  • MvcCore\Ext\Views\Helpers\TruncateHelper
  • MvcCore\Ext\Views\Helpers\WriteByJsHelper
  • MvcCore\Model
  • MvcCore\Request
  • MvcCore\Response
  • MvcCore\Route
  • MvcCore\Router
  • MvcCore\Session
  • MvcCore\Tool
  • MvcCore\View

Interfaces

  • MvcCore\Application\IConstants
  • MvcCore\Controller\IConstants
  • MvcCore\Debug\IConstants
  • MvcCore\Environment\IConstants
  • MvcCore\Ext\Auths\Basics\IController
  • MvcCore\Ext\Auths\Basics\IDatabaseUser
  • MvcCore\Ext\Auths\Basics\IForm
  • MvcCore\Ext\Auths\Basics\IRole
  • MvcCore\Ext\Auths\Basics\IUser
  • MvcCore\Ext\Auths\IBasic
  • MvcCore\Ext\Form\IConstants
  • MvcCore\Ext\Forms\Fields\IAlwaysValidate
  • MvcCore\Ext\Forms\Fields\IChecked
  • MvcCore\Ext\Forms\Fields\IDataList
  • MvcCore\Ext\Forms\Fields\IFile
  • MvcCore\Ext\Forms\Fields\IFormat
  • MvcCore\Ext\Forms\Fields\ILabel
  • MvcCore\Ext\Forms\Fields\IMinMaxLength
  • MvcCore\Ext\Forms\Fields\IMinMaxOptions
  • MvcCore\Ext\Forms\Fields\IMinMaxStepDates
  • MvcCore\Ext\Forms\Fields\IMinMaxStepNumbers
  • MvcCore\Ext\Forms\Fields\IMultiple
  • MvcCore\Ext\Forms\Fields\IOptions
  • MvcCore\Ext\Forms\Fields\IPattern
  • MvcCore\Ext\Forms\Fields\ISubmit
  • MvcCore\Ext\Forms\Fields\IVisibleField
  • MvcCore\Ext\Forms\IError
  • MvcCore\Ext\Forms\IField
  • MvcCore\Ext\Forms\IFieldsGroup
  • MvcCore\Ext\Forms\IValidator
  • MvcCore\Ext\Forms\IView
  • MvcCore\Ext\Forms\Validators\Files\Validations\IBombScanner
  • MvcCore\Ext\Forms\Validators\IFiles
  • MvcCore\Ext\ICache
  • MvcCore\Ext\IForm
  • MvcCore\Ext\Models\Db\IConnection
  • MvcCore\Ext\Models\Db\IModel
  • MvcCore\Ext\Models\Db\IReader
  • MvcCore\Ext\Models\Db\IStatement
  • MvcCore\Ext\Models\Db\Model\IConstants
  • MvcCore\Ext\Models\Db\Models\MySqls\IConstants
  • MvcCore\Ext\Models\Db\Models\PgSqls\IConstants
  • MvcCore\Ext\Models\Db\Models\SqlSrvs\IConstants
  • MvcCore\Ext\Models\Db\Readers\IExecution
  • MvcCore\Ext\Models\Db\Readers\IMultiple
  • MvcCore\Ext\Models\Db\Readers\ISingle
  • MvcCore\Ext\Models\Db\Readers\IStream
  • MvcCore\Ext\Models\Db\Readers\Streams\IIterator
  • MvcCore\Ext\Routers\IExtended
  • MvcCore\Ext\Routers\ILocalization
  • MvcCore\Ext\Routers\IMedia
  • MvcCore\Ext\Routers\IModule
  • MvcCore\Ext\Routers\Modules\IRoute
  • MvcCore\Ext\Tools\Images\IAdapter
  • MvcCore\Ext\Tools\Images\IComposite
  • MvcCore\Ext\Tools\Images\IFormat
  • MvcCore\Ext\Tools\Images\IImage
  • MvcCore\Ext\Tools\Images\Imagicks\IComposite
  • MvcCore\Ext\Tools\Images\IOrientation
  • MvcCore\Ext\Views\Helpers\IHelper
  • MvcCore\IApplication
  • MvcCore\IConfig
  • MvcCore\IController
  • MvcCore\IDebug
  • MvcCore\IEnvironment
  • MvcCore\IModel
  • MvcCore\IRequest
  • MvcCore\IResponse
  • MvcCore\IRoute
  • MvcCore\IRouter
  • MvcCore\ISession
  • MvcCore\ITool
  • MvcCore\IView
  • MvcCore\Model\IConstants
  • MvcCore\Request\IConstants
  • MvcCore\Response\IConstants
  • MvcCore\Route\IConstants
  • MvcCore\Router\IConstants
  • MvcCore\Session\IConstants
  • MvcCore\View\IConstants

Traits

  • MvcCore\Application\Dispatching
  • MvcCore\Application\GettersSetters
  • MvcCore\Application\Helpers
  • MvcCore\Application\Props
  • MvcCore\Config\Environment
  • MvcCore\Config\IniDump
  • MvcCore\Config\IniProps
  • MvcCore\Config\IniRead
  • MvcCore\Config\MagicMethods
  • MvcCore\Config\PropsGettersSetters
  • MvcCore\Config\ReadWrite
  • MvcCore\Controller\Dispatching
  • MvcCore\Controller\GettersSetters
  • MvcCore\Controller\Props
  • MvcCore\Controller\Rendering
  • MvcCore\Debug\Handlers
  • MvcCore\Debug\Initializations
  • MvcCore\Debug\Props
  • MvcCore\Environment\Detection
  • MvcCore\Environment\Instancing
  • MvcCore\Environment\PropsGettersSetters
  • MvcCore\Ext\Auths\Basic\Handling
  • MvcCore\Ext\Auths\Basic\PropsGettersSetters
  • MvcCore\Ext\Auths\Basics\Controller\Base
  • MvcCore\Ext\Auths\Basics\Form\Base
  • MvcCore\Ext\Auths\Basics\Form\SignIn
  • MvcCore\Ext\Auths\Basics\Form\SignOut
  • MvcCore\Ext\Auths\Basics\Role\Base
  • MvcCore\Ext\Auths\Basics\Role\Features
  • MvcCore\Ext\Auths\Basics\User\Auth
  • MvcCore\Ext\Auths\Basics\User\Base
  • MvcCore\Ext\Auths\Basics\User\Features
  • MvcCore\Ext\Auths\Basics\User\Roles
  • MvcCore\Ext\Auths\Basics\UserAndRole\Base
  • MvcCore\Ext\Auths\Basics\UserAndRole\Permissions
  • MvcCore\Ext\Configs\Yamls\YamlDump
  • MvcCore\Ext\Configs\Yamls\YamlProps
  • MvcCore\Ext\Configs\Yamls\YamlRead
  • MvcCore\Ext\Form\AddMethods
  • MvcCore\Ext\Form\Assets
  • MvcCore\Ext\Form\ConfigProps
  • MvcCore\Ext\Form\Csrf
  • MvcCore\Ext\Form\FieldMethods
  • MvcCore\Ext\Form\GetMethods
  • MvcCore\Ext\Form\InternalProps
  • MvcCore\Ext\Form\Rendering
  • MvcCore\Ext\Form\Session
  • MvcCore\Ext\Form\SetMethods
  • MvcCore\Ext\Form\Submitting
  • MvcCore\Ext\Forms\Field\Getters
  • MvcCore\Ext\Forms\Field\Props
  • MvcCore\Ext\Forms\Field\Props\AccessKey
  • MvcCore\Ext\Forms\Field\Props\AutoComplete
  • MvcCore\Ext\Forms\Field\Props\AutoFocus
  • MvcCore\Ext\Forms\Field\Props\Checked
  • MvcCore\Ext\Forms\Field\Props\DataList
  • MvcCore\Ext\Forms\Field\Props\Disabled
  • MvcCore\Ext\Forms\Field\Props\Files
  • MvcCore\Ext\Forms\Field\Props\Format
  • MvcCore\Ext\Forms\Field\Props\FormAttrs
  • MvcCore\Ext\Forms\Field\Props\GroupLabelAttrs
  • MvcCore\Ext\Forms\Field\Props\GroupLabelCssClasses
  • MvcCore\Ext\Forms\Field\Props\InputMode
  • MvcCore\Ext\Forms\Field\Props\Label
  • MvcCore\Ext\Forms\Field\Props\MinMaxLength
  • MvcCore\Ext\Forms\Field\Props\MinMaxOptions
  • MvcCore\Ext\Forms\Field\Props\MinMaxStepDates
  • MvcCore\Ext\Forms\Field\Props\MinMaxStepNumbers
  • MvcCore\Ext\Forms\Field\Props\Multiple
  • MvcCore\Ext\Forms\Field\Props\NullOptionText
  • MvcCore\Ext\Forms\Field\Props\Options
  • MvcCore\Ext\Forms\Field\Props\Pattern
  • MvcCore\Ext\Forms\Field\Props\PlaceHolder
  • MvcCore\Ext\Forms\Field\Props\ReadOnly
  • MvcCore\Ext\Forms\Field\Props\Required
  • MvcCore\Ext\Forms\Field\Props\RowsColsWrap
  • MvcCore\Ext\Forms\Field\Props\Size
  • MvcCore\Ext\Forms\Field\Props\SpellCheck
  • MvcCore\Ext\Forms\Field\Props\Submit
  • MvcCore\Ext\Forms\Field\Props\TabIndex
  • MvcCore\Ext\Forms\Field\Props\VisibleField
  • MvcCore\Ext\Forms\Field\Props\WidthHeight
  • MvcCore\Ext\Forms\Field\Props\Wrapper
  • MvcCore\Ext\Forms\Field\Rendering
  • MvcCore\Ext\Forms\Field\Setters
  • MvcCore\Ext\Forms\Validators\Files\CheckRequirements
  • MvcCore\Ext\Forms\Validators\Files\CompleteFiles
  • MvcCore\Ext\Forms\Validators\Files\ReadAccept
  • MvcCore\Ext\Forms\Validators\Files\Validations\Bomb
  • MvcCore\Ext\Forms\Validators\Files\Validations\FileAndSize
  • MvcCore\Ext\Forms\Validators\Files\Validations\MimeTypeAndExtension
  • MvcCore\Ext\Forms\Validators\Files\Validations\NameAndExtension
  • MvcCore\Ext\Models\Db\Model\Connection
  • MvcCore\Ext\Models\Db\Model\DataMethods
  • MvcCore\Ext\Models\Db\Model\Features
  • MvcCore\Ext\Models\Db\Model\Manipulation
  • MvcCore\Ext\Models\Db\Model\MetaData
  • MvcCore\Ext\Models\Db\Model\Parsers
  • MvcCore\Ext\Models\Db\Model\Props
  • MvcCore\Ext\Models\Db\Model\ProviderResource
  • MvcCore\Ext\Models\Db\Models\MySqls\Features
  • MvcCore\Ext\Models\Db\Models\MySqls\ProviderResource
  • MvcCore\Ext\Models\Db\Models\PgSqls\Features
  • MvcCore\Ext\Models\Db\Models\PgSqls\ProviderResource
  • MvcCore\Ext\Models\Db\Models\Resources\Features
  • MvcCore\Ext\Models\Db\Models\SQLites\Features
  • MvcCore\Ext\Models\Db\Models\SQLites\ProviderResource
  • MvcCore\Ext\Models\Db\Models\SqlSrvs\Features
  • MvcCore\Ext\Models\Db\Models\SqlSrvs\ProviderResource
  • MvcCore\Ext\Models\Db\Providers\Resources\Manipulation
  • MvcCore\Ext\Models\Db\Providers\Resources\PgSqls\Manipulation
  • MvcCore\Ext\Routers\Extended
  • MvcCore\Ext\Routers\Extendeds\Preparing
  • MvcCore\Ext\Routers\Extendeds\PropsGettersSetters
  • MvcCore\Ext\Routers\Extendeds\Redirect
  • MvcCore\Ext\Routers\Extendeds\RedirectHelpers
  • MvcCore\Ext\Routers\Extendeds\Url
  • MvcCore\Ext\Routers\Localization\Preparing
  • MvcCore\Ext\Routers\Localization\PreRouting
  • MvcCore\Ext\Routers\Localization\PropsGettersSetters
  • MvcCore\Ext\Routers\Localization\RedirectSections
  • MvcCore\Ext\Routers\Localization\RewriteRouting
  • MvcCore\Ext\Routers\Localization\RewriteRoutingChecks
  • MvcCore\Ext\Routers\Localization\Routing
  • MvcCore\Ext\Routers\Localization\UrlByRoute
  • MvcCore\Ext\Routers\Localization\UrlByRouteSections
  • MvcCore\Ext\Routers\Localization\UrlByRouteSectionsLocalization
  • MvcCore\Ext\Routers\Localizations\Route\Instancing
  • MvcCore\Ext\Routers\Localizations\Route\InternalInits
  • MvcCore\Ext\Routers\Localizations\Route\Matching
  • MvcCore\Ext\Routers\Localizations\Route\PropsGettersSetters
  • MvcCore\Ext\Routers\Localizations\Route\UrlBuilding
  • MvcCore\Ext\Routers\Media\Preparing
  • MvcCore\Ext\Routers\Media\PreRouting
  • MvcCore\Ext\Routers\Media\PropsGettersSetters
  • MvcCore\Ext\Routers\Media\RedirectSections
  • MvcCore\Ext\Routers\Media\Routing
  • MvcCore\Ext\Routers\Media\UrlByRoute
  • MvcCore\Ext\Routers\Media\UrlByRouteSections
  • MvcCore\Ext\Routers\Media\UrlByRouteSectionsMedia
  • MvcCore\Ext\Routers\MediaAndLocalization\RedirectSections
  • MvcCore\Ext\Routers\MediaAndLocalization\Routing
  • MvcCore\Ext\Routers\MediaAndLocalization\UrlByRoute
  • MvcCore\Ext\Routers\MediaAndLocalization\UrlByRouteSections
  • MvcCore\Ext\Routers\Module\Canonical
  • MvcCore\Ext\Routers\Module\DomainRouteSetUp
  • MvcCore\Ext\Routers\Module\DomainRouting
  • MvcCore\Ext\Routers\Module\PreAndPostRouting
  • MvcCore\Ext\Routers\Module\Props
  • MvcCore\Ext\Routers\Module\Redirect
  • MvcCore\Ext\Routers\Module\RewriteRoutingChecks
  • MvcCore\Ext\Routers\Module\RouteMethods
  • MvcCore\Ext\Routers\Module\UrlByQuery
  • MvcCore\Ext\Routers\Module\UrlByRoute
  • MvcCore\Ext\Routers\Module\UrlByRouteSections
  • MvcCore\Ext\Routers\Module\UrlDomain
  • MvcCore\Ext\Routers\ModuleLocalization\DomainRouteSetUp
  • MvcCore\Ext\Routers\ModuleLocalization\Redirect
  • MvcCore\Ext\Routers\ModuleLocalization\RewriteRoutingChecks
  • MvcCore\Ext\Routers\ModuleLocalization\UrlByRoute
  • MvcCore\Ext\Routers\ModuleMedia\DomainRouteSetUp
  • MvcCore\Ext\Routers\ModuleMedia\Redirect
  • MvcCore\Ext\Routers\ModuleMediaAndLocalization\DomainRouteSetUp
  • MvcCore\Ext\Routers\ModuleMediaAndLocalization\Redirect
  • MvcCore\Ext\Routers\Modules\Route\Instancing
  • MvcCore\Ext\Routers\Modules\Route\Matching
  • MvcCore\Ext\Routers\Modules\Route\PropsGettersSetters
  • MvcCore\Ext\Routers\Modules\Route\UrlBuilding
  • MvcCore\Model\Comparers
  • MvcCore\Model\Config
  • MvcCore\Model\Connection
  • MvcCore\Model\Converters
  • MvcCore\Model\DataMethods
  • MvcCore\Model\MagicMethods
  • MvcCore\Model\MetaData
  • MvcCore\Model\Parsers
  • MvcCore\Model\Props
  • MvcCore\Model\Resource
  • MvcCore\Request\CollectionsMethods
  • MvcCore\Request\GettersSetters
  • MvcCore\Request\Instancing
  • MvcCore\Request\InternalInits
  • MvcCore\Request\Props
  • MvcCore\Response\Content
  • MvcCore\Response\Cookies
  • MvcCore\Response\Headers
  • MvcCore\Response\Instancing
  • MvcCore\Response\PropsGettersSetters
  • MvcCore\Route\GettersSetters
  • MvcCore\Route\Instancing
  • MvcCore\Route\InternalInits
  • MvcCore\Route\Matching
  • MvcCore\Route\Props
  • MvcCore\Route\UrlBuilding
  • MvcCore\Router\Canonical
  • MvcCore\Router\GettersSetters
  • MvcCore\Router\Instancing
  • MvcCore\Router\Props
  • MvcCore\Router\Redirecting
  • MvcCore\Router\RewriteRouting
  • MvcCore\Router\RouteMethods
  • MvcCore\Router\Routing
  • MvcCore\Router\UrlBuilding
  • MvcCore\Router\UrlByQuery
  • MvcCore\Router\UrlByRoutes
  • MvcCore\Session\Closing
  • MvcCore\Session\MagicMethods
  • MvcCore\Session\MetaData
  • MvcCore\Session\NamespaceMethods
  • MvcCore\Session\Props
  • MvcCore\Session\Starting
  • MvcCore\Tool\Helpers
  • MvcCore\Tool\Json
  • MvcCore\Tool\Reflection
  • MvcCore\Tool\StringConversions
  • MvcCore\View\DirectoryMethods
  • MvcCore\View\Escaping
  • MvcCore\View\GettersSetters
  • MvcCore\View\LocalMethods
  • MvcCore\View\MagicMethods
  • MvcCore\View\Props
  • MvcCore\View\Rendering
  • MvcCore\View\UrlHelpers
  • MvcCore\View\ViewHelpers

Exceptions

  • MvcCore\Ext\Models\Db\Exception
  • Throwable

Functions

  • MvcCore\Ext\Models\Db\FuncHelpers\Columns
  • MvcCore\Ext\Models\Db\FuncHelpers\Table
  • Overview
  • Class
  • Tree
  • Todo
  • Deprecated
  • Download

Interface IRequest

Responsibility - request description - URL and params inputs parsing and cleaning. - Linear request URL parsing from referenced $_SERVER global variable (as constructor argument) into local properties, describing URL sections. - Params reading from referenced $_GET and $_POST global variables (as constructor arguments) or reading data from direct PHP input "php://input" (as encoded JSON data or as query string). - Headers cleaning and reading by getallheaders() or from referenced $_SERVER['HTTP_...']. - Cookies cleaning and reading from referenced $_COOKIE['...']. - Uploaded files by wrapped referenced $_FILES global array. - Primitive values cleaning or array recursive cleaning by called developer rules from params array, headers array and cookies array.

MvcCore\IRequest implements MvcCore\Request\IConstants

Direct known implementers

MvcCore\Request
Namespace: MvcCore
Located at mvccore/src/MvcCore/IRequest.php
Methods summary
public static array
# ParseHttpAcceptLang( string[] $languagesList )

Parse list of comma separated language tags and sort it by the quality value from $this->globalServer['HTTP_ACCEPT_LANGUAGE'].

Parse list of comma separated language tags and sort it by the quality value from $this->globalServer['HTTP_ACCEPT_LANGUAGE'].

Parameters

$languagesList

Returns

array
public static
# AddTwoSegmentTlds( string[] $twoSegmentTlds )

Add exceptional two-segment top-level domain like 'co.jp', 'co.uk', 'co.kr', 'co.nf' ... to parse domain string correctly. Example: \MvcCore\Request::AddTwoSegmentTlds('co.uk', 'co.jp'); \MvcCore\Request::AddTwoSegmentTlds(['co.uk', 'co.jp']);

Add exceptional two-segment top-level domain like 'co.jp', 'co.uk', 'co.kr', 'co.nf' ... to parse domain string correctly. Example: \MvcCore\Request::AddTwoSegmentTlds('co.uk', 'co.jp'); \MvcCore\Request::AddTwoSegmentTlds(['co.uk', 'co.jp']);

Parameters

$twoSegmentTlds
List of two-segment top-level domains without leading dot.
public static MvcCore\Request
# CreateInstance( array & $server = [], array & $get = [], array & $post = [], array & $cookie = [], array & $files = [] )

Static factory to get every time new instance of http request object. Global variables for constructor arguments ($_SERVER, $_GET, $_POST...) should be changed to any arrays with any values and injected here to get different request object then currently called real request object. For example to create fake request object for testing purposes or for non-real request rendering into request output cache.

Static factory to get every time new instance of http request object. Global variables for constructor arguments ($_SERVER, $_GET, $_POST...) should be changed to any arrays with any values and injected here to get different request object then currently called real request object. For example to create fake request object for testing purposes or for non-real request rendering into request output cache.

Parameters

$server
$get
$post
$cookie
$files

Returns

MvcCore\Request
public array &
# GetGlobalCollection( string $type )

Get one of the global data collections stored as protected properties inside request object. Example: // to get global $_GET with raw values: $globalGet = $request->GetGlobalCollection('get');

Get one of the global data collections stored as protected properties inside request object. Example: // to get global $_GET with raw values: $globalGet = $request->GetGlobalCollection('get');

Parameters

$type

Returns

array
public MvcCore\Request
# SetHeaders( array & $headers = [] )

Set directly all raw http headers without any conversion at once. Header name(s) as array keys should be in standard format like: "Content-Type" | "Content-Length" | "X-Requested-With" ....

Set directly all raw http headers without any conversion at once. Header name(s) as array keys should be in standard format like: "Content-Type" | "Content-Length" | "X-Requested-With" ....

Parameters

$headers

Returns

MvcCore\Request
public array &
# GetHeaders( string|array|boolean $pregReplaceAllowedChars = ['#[\<\>\'"]#', ''] )

Get directly all raw http headers at once (with/without conversion). If headers are not initialized, initialize headers by getallheaders() or from $_SERVER['HTTP_...']. Headers are returned as key => value array, headers keys are in standard format like: "Content-Type" | "Content-Length" | "X-Requested-With" ....

Get directly all raw http headers at once (with/without conversion). If headers are not initialized, initialize headers by getallheaders() or from $_SERVER['HTTP_...']. Headers are returned as key => value array, headers keys are in standard format like: "Content-Type" | "Content-Length" | "X-Requested-With" ....

Parameters

$pregReplaceAllowedChars
If String - list of regular expression characters to only keep, if array - preg_replace() pattern and reverse, if FALSE, raw value is returned.

Returns

array
public MvcCore\Request
# SetHeader( string $name = '', string|string[] $value = '' )

Set directly raw http header value without any conversion. Header name should be in standard format like: "Content-Type" | "Content-Length" | "X-Requested-With" ....

Set directly raw http header value without any conversion. Header name should be in standard format like: "Content-Type" | "Content-Length" | "X-Requested-With" ....

Parameters

$name
$value

Returns

MvcCore\Request
public string|string[]|integer|int[]|boolean|bool[]|array|mixed
# GetHeader( string $name = '', string|array|boolean $pregReplaceAllowedChars = "a-zA-Z0-9_;, /\-\.\@\=\+\?\!", mixed $ifNullValue = NULL, string $targetType = NULL )

Get http header value filtered by "rule to keep defined characters only", defined in second argument (by preg_replace()). Place into second argument only char groups you want to keep. Header has to be in format like: "Content-Type" | "Content-Length" | "X-Requested-With" ....

Get http header value filtered by "rule to keep defined characters only", defined in second argument (by preg_replace()). Place into second argument only char groups you want to keep. Header has to be in format like: "Content-Type" | "Content-Length" | "X-Requested-With" ....

Parameters

$name
Http header string name.
$pregReplaceAllowedChars
If String - list of regular expression characters to only keep, if array - preg_replace() pattern and reverse, if FALSE, raw value is returned.
$ifNullValue
Default value returned if given param name is null.
$targetType
Target type to retype param value or default if-null value. If param is an array, every param item will be retyped into given target type.

Returns

string|string[]|integer|int[]|boolean|bool[]|array|mixed

Throws

InvalidArgumentException
$name must be a $targetType, not an array.
public boolean
# HasHeader( string $name = '' )

Return if request has any http header by given name.

Return if request has any http header by given name.

Parameters

$name
Http header string name.

Returns

boolean
public MvcCore\Request
# SetParams( array & $params = [] )

Set directly all raw parameters without any conversion at once.

Set directly all raw parameters without any conversion at once.

Parameters

$params

Returns

MvcCore\Request
public array &
# GetParams( string|array|boolean $pregReplaceAllowedChars = ['#[\<\>\'"]#', ''], array $onlyKeys = [] )

Get directly all raw parameters at once (with/without conversion). If any defined char groups in $pregReplaceAllowedChars, there will be returned all params filtered by given rule in preg_replace().

Get directly all raw parameters at once (with/without conversion). If any defined char groups in $pregReplaceAllowedChars, there will be returned all params filtered by given rule in preg_replace().

Parameters

$pregReplaceAllowedChars
If String - list of regular expression characters to only keep, if array - preg_replace() pattern and reverse, if FALSE, raw value is returned.
$onlyKeys
Array with keys to get only. If empty (by default), all possible params are returned.

Returns

array
public MvcCore\Request
# SetParam( string $name = '', string|string[] $value = '' )

Set directly raw parameter value without any conversion.

Set directly raw parameter value without any conversion.

Parameters

$name
$value

Returns

MvcCore\Request
public MvcCore\Request
# RemoveParam( string $name = '' )

Remove parameter by name.

Remove parameter by name.

Parameters

$name

Returns

MvcCore\Request
public string|string[]|integer|int[]|boolean|bool[]|array|mixed
# GetParam( string $name = '', string|array|boolean $pregReplaceAllowedChars = "a-zA-Z0-9_;, /\-\@\:", mixed $ifNullValue = NULL, string $targetType = NULL )

Get param value from $_GET, $_POST or php://input, filtered by "rule to keep defined characters only", defined in second argument (by preg_replace()). Place into second argument only char groups you want to keep.

Get param value from $_GET, $_POST or php://input, filtered by "rule to keep defined characters only", defined in second argument (by preg_replace()). Place into second argument only char groups you want to keep.

Parameters

$name
Parameter string name.
$pregReplaceAllowedChars
If String - list of regular expression characters to only keep, if array - preg_replace() pattern and reverse, if FALSE, raw value is returned.
$ifNullValue
Default value returned if given param name is null.
$targetType
Target type to retype param value or default if-null value. If param is an array, every param item will be retyped into given target type.

Returns

string|string[]|integer|int[]|boolean|bool[]|array|mixed

Throws

InvalidArgumentException
$name must be a $targetType, not an array.
public boolean
# HasParam( string $name = '' )

Get if any param value exists in $_GET, $_POST or php://input

Get if any param value exists in $_GET, $_POST or php://input

Parameters

$name
Parameter string name.

Returns

boolean
public MvcCore\Request
# SetFiles( array & $files = [] )

Set directly whole raw global $_FILES without any conversion at once.

Set directly whole raw global $_FILES without any conversion at once.

Parameters

$files

Returns

MvcCore\Request
public array &
# GetFiles( )

Return reference to configured global $_FILES or reference to any other testing array representing it.

Return reference to configured global $_FILES or reference to any other testing array representing it.

Returns

array
public MvcCore\Request
# SetFile( string $file = '', array $data = [] )

Set file item into global $_FILES without any conversion at once.

Set file item into global $_FILES without any conversion at once.

Parameters

$file
Uploaded file string name.
$data

Returns

MvcCore\Request
public array
# GetFile( string $file = '' )

Return item by file name from referenced global $_FILES or reference to any other testing array item representing it.

Return item by file name from referenced global $_FILES or reference to any other testing array item representing it.

Parameters

$file
Uploaded file string name.

Returns

array
public boolean
# HasFile( string $file = '' )

Return if any item by file name exists or not in referenced global $_FILES.

Return if any item by file name exists or not in referenced global $_FILES.

Parameters

$file
Uploaded file string name.

Returns

boolean
public MvcCore\Request
# SetCookies( array & $cookies = [] )

Set directly whole raw global $_COOKIE without any conversion at once.

Set directly whole raw global $_COOKIE without any conversion at once.

Parameters

$cookies

Returns

MvcCore\Request
public array &
# GetCookies( string|array|boolean $pregReplaceAllowedChars = ['#[\<\>\'"]#', ''], $onlyKeys = [] )

Get directly all raw global $_COOKIEs at once (with/without conversion). Cookies are returned as key => value array.

Get directly all raw global $_COOKIEs at once (with/without conversion). Cookies are returned as key => value array.

Parameters

$pregReplaceAllowedChars
If String - list of regular expression characters to only keep, if array - preg_replace() pattern and reverse, if FALSE, raw value is returned.
$onlyKeys

Returns

array
array
public MvcCore\Request
# SetCookie( string $name = '', string|string[] $value = '' )

Set raw request cookie into referenced global $_COOKIE without any conversion.

Set raw request cookie into referenced global $_COOKIE without any conversion.

Parameters

$name
$value

Returns

MvcCore\Request
public string|string[]|integer|int[]|boolean|bool[]|array|mixed
# GetCookie( string $name = '', string|array|boolean $pregReplaceAllowedChars = "a-zA-Z0-9_;, /\-\.\@\=\+\?\!", mixed $ifNullValue = NULL, string $targetType = NULL )

Get request cookie value from referenced global $_COOKIE variable, filtered by characters defined in second argument through preg_replace(). Place into second argument only char groups you want to keep.

Get request cookie value from referenced global $_COOKIE variable, filtered by characters defined in second argument through preg_replace(). Place into second argument only char groups you want to keep.

Parameters

$name
Cookie string name.
$pregReplaceAllowedChars
If String - list of regular expression characters to only keep, if array - preg_replace() pattern and reverse, if FALSE, raw value is returned.
$ifNullValue
Default value returned if given param name is null.
$targetType
Target type to retype param value or default if-null value. If param is an array, every param item will be retyped into given target type.

Returns

string|string[]|integer|int[]|boolean|bool[]|array|mixed

Throws

InvalidArgumentException
$name must be a $targetType, not an array.
public boolean
# HasCookie( string $name = '' )

Return if any item by cookie name exists or not in referenced global $_COOKIE.

Return if any item by cookie name exists or not in referenced global $_COOKIE.

Parameters

$name
Cookie string name.

Returns

boolean
public MvcCore\Request
# InitAll( )

Initialize all possible protected values from all global variables, including all http headers, all params and application inputs. This method is not recommended to use in production mode, it's designed mostly for development purposes, to see in one moment, what could be inside request after calling any getter method.

Initialize all possible protected values from all global variables, including all http headers, all params and application inputs. This method is not recommended to use in production mode, it's designed mostly for development purposes, to see in one moment, what could be inside request after calling any getter method.

Returns

MvcCore\Request
public boolean
# IsInternalRequest( )

Return TRUE boolean flag if request targets Controller:Asset.

Return TRUE boolean flag if request targets Controller:Asset.

Returns

boolean
public MvcCore\Request
# SetControllerName( string $controllerName )

Set cleaned requested controller name into \MvcCore\Request::$controllerName; and into \MvcCore\Request::$params['controller'];.

Set cleaned requested controller name into \MvcCore\Request::$controllerName; and into \MvcCore\Request::$params['controller'];.

Parameters

$controllerName

Returns

MvcCore\Request
public string
# GetControllerName( )

Return cleaned requested controller name from \MvcCore\Request::$params['controller'];.

Return cleaned requested controller name from \MvcCore\Request::$params['controller'];.

Returns

string
public MvcCore\Request
# SetActionName( string $actionName )

Set cleaned requested controller name into \MvcCore\Request::$actionName; and into \MvcCore\Request::$params['action'];.

Set cleaned requested controller name into \MvcCore\Request::$actionName; and into \MvcCore\Request::$params['action'];.

Parameters

$actionName

Returns

MvcCore\Request
public string
# GetActionName( )

Return cleaned requested action name from \MvcCore\Request::$params['action'];.

Return cleaned requested action name from \MvcCore\Request::$params['action'];.

Returns

string
public boolean
# IsCli( )

TRUE if PHP php_sapi_name() is cli and also if there is no $_SERVER['REQUEST_URI'] defined.

TRUE if PHP php_sapi_name() is cli and also if there is no $_SERVER['REQUEST_URI'] defined.

Returns

boolean
public MvcCore\Request
# SetLang( string|null $lang )

Set language international code. Use this lang storage by your own decision. Example: "en" | "de"

Set language international code. Use this lang storage by your own decision. Example: "en" | "de"

Parameters

$lang

Returns

MvcCore\Request
public string|null
# GetLang( )

Get language international code, lower case, not used by default. To use this variable - install \MvcCore\Router extension \MvcCore\Ext\Router\Lang Or use this variable by your own decision. Example: "en" | "de"

Get language international code, lower case, not used by default. To use this variable - install \MvcCore\Router extension \MvcCore\Ext\Router\Lang Or use this variable by your own decision. Example: "en" | "de"

Returns

string|null
public MvcCore\Request
# SetLocale( string|null $locale )

Set country/locale code, upper case. Use this locale storage by your own decision. Example: "US" | "UK"

Set country/locale code, upper case. Use this locale storage by your own decision. Example: "US" | "UK"

Parameters

$locale

Returns

MvcCore\Request
public string|null
# GetLocale( )

Get country/locale code, upper case, not used by default. To use this variable - install \MvcCore\Router extension \MvcCore\Ext\Router\Lang Or use this variable by your own decision. Example: "US" | "UK"

Get country/locale code, upper case, not used by default. To use this variable - install \MvcCore\Router extension \MvcCore\Ext\Router\Lang Or use this variable by your own decision. Example: "US" | "UK"

Returns

string|null
public MvcCore\Request
# SetMediaSiteVersion( string|null $mediaSiteVersion )

Set media site version - "full" | "tablet" | "mobile". Use this media site version storage by your own decision. Example: "full" | "tablet" | "mobile"

Set media site version - "full" | "tablet" | "mobile". Use this media site version storage by your own decision. Example: "full" | "tablet" | "mobile"

Parameters

$mediaSiteVersion

Returns

MvcCore\Request
public string|null
# GetMediaSiteVersion( )

Get media site version - "full" | "tablet" | "mobile". To use this variable - install \MvcCore\Router extension \MvcCoreExt\Router\Media Or use this variable by your own decision. Example: "full" | "tablet" | "mobile"

Get media site version - "full" | "tablet" | "mobile". To use this variable - install \MvcCore\Router extension \MvcCoreExt\Router\Media Or use this variable by your own decision. Example: "full" | "tablet" | "mobile"

Returns

string|null
public mixed|MvcCore\Request
# __call( string $rawName, array $arguments = [] )

Sets any custom property "propertyName" by \MvcCore\Request::SetPropertyName("value");, which is not necessary to define previously or gets previously defined property "propertyName" by \MvcCore\Request::GetPropertyName();. Throws exception if no property defined by get call or if virtual call begins with anything different from Set or Get. This method returns custom value for get and \MvcCore\Request instance for set.

Sets any custom property "propertyName" by \MvcCore\Request::SetPropertyName("value");, which is not necessary to define previously or gets previously defined property "propertyName" by \MvcCore\Request::GetPropertyName();. Throws exception if no property defined by get call or if virtual call begins with anything different from Set or Get. This method returns custom value for get and \MvcCore\Request instance for set.

Parameters

$rawName
$arguments

Returns

mixed|MvcCore\Request

Throws

InvalidArgumentException
public mixed
# __get( string $name )

Universal getter, if property not defined, NULL is returned.

Universal getter, if property not defined, NULL is returned.

Parameters

$name

Returns

mixed
public MvcCore\Request
# __set( string $name, mixed $value )

Universal setter, if property not defined, it's automatically declared.

Universal setter, if property not defined, it's automatically declared.

Parameters

$name
$value

Returns

MvcCore\Request
public string
# GetScriptName( )

Php requested script name path from application root. Example: "/index.php"

Php requested script name path from application root. Example: "/index.php"

Returns

string
public string
# GetAppRoot( )

Get application root path on hard drive. Example: "C:/www/my/development/directory/www"

Get application root path on hard drive. Example: "C:/www/my/development/directory/www"

Returns

string
public MvcCore\Request
# SetMethod( string $rawMethod )

Set upper cased http method from global $_SERVER['REQUEST_METHOD']. Example: $request->SetMethod("GET" | "POST" | "PUT" | "HEAD"...);

Set upper cased http method from global $_SERVER['REQUEST_METHOD']. Example: $request->SetMethod("GET" | "POST" | "PUT" | "HEAD"...);

Parameters

$rawMethod

Returns

MvcCore\Request
public string
# GetMethod( )

Get upper cased http method from global $_SERVER['REQUEST_METHOD']. Example: "GET" | "POST" | "PUT" | "HEAD"...

Get upper cased http method from global $_SERVER['REQUEST_METHOD']. Example: "GET" | "POST" | "PUT" | "HEAD"...

Returns

string
public MvcCore\Request
# SetBasePath( string $rawBasePath )

Set base app directory path after domain, if application is placed in domain subdirectory. Example: - for full url: "http://localhost:88/my/development/direcotry/www/requested/path/after/domain?with=possible&query=string" - set base path: $request->SetBasePath("/my/development/directory/www");

Set base app directory path after domain, if application is placed in domain subdirectory. Example: - for full url: "http://localhost:88/my/development/direcotry/www/requested/path/after/domain?with=possible&query=string" - set base path: $request->SetBasePath("/my/development/directory/www");

Parameters

$rawBasePath

Returns

MvcCore\Request
public string
# GetBasePath( )

Get base app directory path after domain, if application is placed in domain subdirectory. Example: - full url: "http://localhost:88/my/development/direcotry/www/requested/path/after/domain?with=possible&query=string" - base path: "/my/development/directory/www"

Get base app directory path after domain, if application is placed in domain subdirectory. Example: - full url: "http://localhost:88/my/development/direcotry/www/requested/path/after/domain?with=possible&query=string" - base path: "/my/development/directory/www"

Returns

string
public MvcCore\Request
# SetScheme( string $rawProtocol )

Set http scheme string. Example: $request->SetScheme("https:");

Set http scheme string. Example: $request->SetScheme("https:");

Parameters

$rawProtocol

Returns

MvcCore\Request
public string
# GetScheme( )

Get http scheme string. Example: "http:" | "https:"

Get http scheme string. Example: "http:" | "https:"

Returns

string
public boolean
# IsSecure( )

Get TRUE if http scheme is "https:".

Get TRUE if http scheme is "https:".

Returns

boolean
public string
# GetReferer( boolean $rawInput = FALSE )

Get referer URL if any, safely read by: filter_var($_SERVER['HTTP_REFERER'], FILTER_SANITIZE_URL); Example: "http://foreing.domain.com/path/where/is/link/to/?my=app"

Get referer URL if any, safely read by: filter_var($_SERVER['HTTP_REFERER'], FILTER_SANITIZE_URL); Example: "http://foreing.domain.com/path/where/is/link/to/?my=app"

Parameters

$rawInput
Get raw input if TRUE. FALSE by default to get value through htmlspecialchars($result); without ampersand & escaping.

Returns

string
public float
# GetStartTime( )

Get timestamp in seconds as float, when the request has been started, with microsecond precision.

Get timestamp in seconds as float, when the request has been started, with microsecond precision.

Returns

float
public MvcCore\Request
# SetTopLevelDomain( string|null $topLevelDomain )

Set TOP level domain like com or co.uk. Method also change server name and host record automatically.

Set TOP level domain like com or co.uk. Method also change server name and host record automatically.

Parameters

$topLevelDomain

Returns

MvcCore\Request
public string|null
# GetTopLevelDomain( )

Set top level domain like com from www.example.com.

Set top level domain like com from www.example.com.

Returns

string|null
public MvcCore\Request
# SetSecondLevelDomain( string|null $secondLevelDomain )

Set second level domain like example in www.example.com. Method also change server name and host record automatically.

Set second level domain like example in www.example.com. Method also change server name and host record automatically.

Parameters

$secondLevelDomain

Returns

MvcCore\Request
public string|null
# GetSecondLevelDomain( )

Get second level domain like example in www.example.com.

Get second level domain like example in www.example.com.

Returns

string|null
public MvcCore\Request
# SetThirdLevelDomain( string|null $thirdLevelDomain )

Set second level domain like example from www.example.com. Method also change server name and host record automatically.

Set second level domain like example from www.example.com. Method also change server name and host record automatically.

Parameters

$thirdLevelDomain

Returns

MvcCore\Request
public string|null
# GetThirdLevelDomain( )

Get third level domain like www from www.example.com.

Get third level domain like www from www.example.com.

Returns

string|null
public MvcCore\Request
# SetHostName( string $rawHostName )

Set application server name - domain without any port. Method also change host record and domain records automatically. Example: $request->SetHostName("localhost");

Set application server name - domain without any port. Method also change host record and domain records automatically. Example: $request->SetHostName("localhost");

Parameters

$rawHostName

Returns

MvcCore\Request
public string
# GetHostName( )

Get application server name - domain without any port. Example: "localhost"

Get application server name - domain without any port. Example: "localhost"

Returns

string
public MvcCore\Request
# SetHost( string $rawHost )

Set application host with port if there is any. Method also change server name record and domain records automatically. Example: $request->SetHost("localhost:88");

Set application host with port if there is any. Method also change server name record and domain records automatically. Example: $request->SetHost("localhost:88");

Parameters

$rawHost

Returns

MvcCore\Request
public string
# GetHost( )

Get application host with port if there is any. Example: "localhost:88"

Get application host with port if there is any. Example: "localhost:88"

Returns

string
public MvcCore\Request
# SetPort( string $rawPort )

Set http port defined in requested URL if any, parsed by parse_url(). Empty string if there is no port number in requested address.. Example: $request->SetPort("88")

Set http port defined in requested URL if any, parsed by parse_url(). Empty string if there is no port number in requested address.. Example: $request->SetPort("88")

Parameters

$rawPort

Returns

MvcCore\Request
public string
# GetPort( )

Get http port defined in requested URL if any, parsed by parse_url(). Empty string if there is no port number in requested address.. Example: "88" | ""

Get http port defined in requested URL if any, parsed by parse_url(). Empty string if there is no port number in requested address.. Example: "88" | ""

Returns

string
public MvcCore\Request
# SetPath( string $rawPathValue )

Set requested path in from application root (if mod_rewrite enabled), never with query string. Example: $request->SetPort("/products/page/2");

Set requested path in from application root (if mod_rewrite enabled), never with query string. Example: $request->SetPort("/products/page/2");

Parameters

$rawPathValue

Returns

MvcCore\Request
public string
# GetPath( boolean $rawInput = FALSE )

Get requested path in from application root (if mod_rewrite enabled), never with query string. Example: "/products/page/2"

Get requested path in from application root (if mod_rewrite enabled), never with query string. Example: "/products/page/2"

Parameters

$rawInput
Get raw input if TRUE. FALSE by default to get value through htmlspecialchars($result); without ampersand & escaping.

Returns

string
public MvcCore\Request
# SetQuery( string $rawQuery )

Set URL query string, with or without question mark character, doesn't matter. Example: $request->SetQuery("param-1=value-1&param-2=value-2&param-3[]=value-3-a&param-3[]=value-3-b");

Set URL query string, with or without question mark character, doesn't matter. Example: $request->SetQuery("param-1=value-1&param-2=value-2&param-3[]=value-3-a&param-3[]=value-3-b");

Parameters

$rawQuery

Returns

MvcCore\Request
public string
# GetQuery( boolean $withQuestionMark = FALSE, boolean $rawInput = FALSE )

Get URL query string (without question mark character by default). Example: "param-1=value-1&param-2=value-2&param-3[]=value-3-a&param-3[]=value-3-b"

Get URL query string (without question mark character by default). Example: "param-1=value-1&param-2=value-2&param-3[]=value-3-a&param-3[]=value-3-b"

Parameters

$withQuestionMark

If FALSE (by default), query string is returned always without question mark character at the beginning. If TRUE, and query string contains any character(s), query string is returned with question mark character at the beginning. But if query string contains no character(s), query string is returned as EMPTY STRING WITHOUT question mark character.

$rawInput
Get raw input if TRUE. FALSE by default to get value through htmlspecialchars($result); without ampersand & escaping.

Returns

string
public string
# GetRequestPath( boolean $rawInput = FALSE )

Get request path after domain with possible query string Example: "/requested/path/after/app/root?with=possible&query=string"

Get request path after domain with possible query string Example: "/requested/path/after/app/root?with=possible&query=string"

Parameters

$rawInput
Get raw input if TRUE. FALSE by default to get value through htmlspecialchars($result); without ampersand & escaping.

Returns

string
public string
# GetDomainUrl( )

Get URL to requested domain and possible port. Example: "https://domain.com" | "http://domain:88" if any port.

Get URL to requested domain and possible port. Example: "https://domain.com" | "http://domain:88" if any port.

Returns

string
public string
# GetBaseUrl( )

Get base URL to application root. Example: "http://domain:88/my/development/direcotry/www"

Get base URL to application root. Example: "http://domain:88/my/development/direcotry/www"

Returns

string
public string
# GetRequestUrl( boolean $rawInput = FALSE )

Get request URL including scheme, domain, port, path, without any query string Example: "http://localhost:88/my/development/direcotry/www/requested/path/after/domain"

Get request URL including scheme, domain, port, path, without any query string Example: "http://localhost:88/my/development/direcotry/www/requested/path/after/domain"

Parameters

$rawInput
Get raw input if TRUE. FALSE by default to get value through htmlspecialchars($result); without ampersand & escaping.

Returns

string
public string
# GetFullUrl( boolean $rawInput = FALSE )

Get request URL including scheme, domain, port, path and with query string Example: "http://localhost:88/my/development/direcotry/www/requested/path/after/domain?with=possible&query=string"

Get request URL including scheme, domain, port, path and with query string Example: "http://localhost:88/my/development/direcotry/www/requested/path/after/domain?with=possible&query=string"

Parameters

$rawInput
Get raw input if TRUE. FALSE by default to get value through htmlspecialchars($result); without ampersand & escaping.

Returns

string
public string
# GetFragment( boolean $withHash = FALSE, boolean $rawInput = FALSE )

Get URI fragment parsed by parse_url() (without hash character by default). Example: "any-sublink-path"

Get URI fragment parsed by parse_url() (without hash character by default). Example: "any-sublink-path"

Parameters

$withHash

If FALSE (by default), fragment is returned always without hash character at the beginning. If TRUE, and fragment contains any character(s), fragment is returned with hash character at the beginning. But if fragment contains no character(s), fragment is returned as EMPTY STRING WITHOUT hash character.

$rawInput
Get raw input if TRUE. FALSE by default to get value through htmlspecialchars($result); without ampersand & escaping.

Returns

string
public string
# GetServerIp( )

Get server IP from $_SERVER global variable.

Get server IP from $_SERVER global variable.

Returns

string
public string
# GetClientIp( )

Get client IP from $_SERVER global variable.

Get client IP from $_SERVER global variable.

Returns

string
public boolean
# IsAjax( )

Get TRUE if request is requested on the background with usual Javascript HTTP header containing: X-Requested-With: AnyJsFrameworkName.

Get TRUE if request is requested on the background with usual Javascript HTTP header containing: X-Requested-With: AnyJsFrameworkName.

Returns

boolean
public integer|null
# GetContentLength( )

Get integer value from global $_SERVER['CONTENT_LENGTH'] or from http header Content-Length, if no value, NULL is returned.

Get integer value from global $_SERVER['CONTENT_LENGTH'] or from http header Content-Length, if no value, NULL is returned.

Returns

integer|null
public string
# GetBody( )

Raw request body, usually from file_get_contents('php://input');. Use this method only for non-standard application inputs like: XML, binary data, etc...

Raw request body, usually from file_get_contents('php://input');. Use this method only for non-standard application inputs like: XML, binary data, etc...

Returns

string
public static string
# HtmlSpecialChars( string $str )

Convert special characters to HTML entities except ampersand &.

Convert special characters to HTML entities except ampersand &.

Parameters

$str

Returns

string

See

http://php.net/manual/en/function.htmlspecialchars.php
Constants inherited from MvcCore\Request\IConstants
METHOD_DELETE, METHOD_GET, METHOD_HEAD, METHOD_OPTIONS, METHOD_PATCH, METHOD_POST, METHOD_PUT, METHOD_TRACE, PARAM_FILTER_ALPHABETS, PARAM_FILTER_ALPHABETS_DIGITS, PARAM_FILTER_ALPHABETS_LOWER, PARAM_FILTER_ALPHABETS_NUMERICS_PUNCT, PARAM_FILTER_ALPHABETS_NUMERICS_PUNCT_SPECIAL, PARAM_FILTER_ALPHABETS_PUNCT, PARAM_FILTER_ALPHABETS_UPPER, PARAM_FILTER_DIGITS, PARAM_FILTER_NUMERICS, PARAM_FILTER_PUNCT, PARAM_FILTER_SPECIAL, SCHEME_DATA, SCHEME_FILE, SCHEME_FTP, SCHEME_FTPS, SCHEME_HTTP, SCHEME_HTTPS, SCHEME_IRC, SCHEME_IRCS, SCHEME_LDAP, SCHEME_MAILTO, SCHEME_RTP, SCHEME_RTSP, SCHEME_SSH, SCHEME_TEL, SCHEME_TELNET
MvcCore API Documentation API documentation generated by ApiGen