Classes, interfaces and traits
Action¶
Actions process a request and produce data to be displayed in a view.
« More »
Config¶
Provides an interface for managing configuration options.
To get an set options, either use `\HotMelt\Config::get()` and \HotMelt\Config::set()`, respectively,
or take advantage of the fact that `\HotMelt\Config` allows arbitrary method overloading
`\HotMelt\Config` parses these configuration files:
- `Site/config.php`
- `Site/config-<DOMAIN>.php`
For a host name beginning with *www.*, `\HotMelt\Config` will also try to load the configuration file for the corresponding host name without *www.*.
« More »
Cookie¶
Provides an interace for manipulating HTTP cookies.
Create a cookie object and access its value with the `value` property.
Use `\HotMelt\Cookie::update()` to change its value and send the cookie back to the client,
or use `\HotMelt\Cookie::delete()` to delete the cookie.
« More »
HTTP¶
Provides convenience method for dealing with HTTP messages.
« More »
HTTPErrorException¶
Throw an instance of `\HotMelt\HTTPErrorException` to break out of the regular controlf flow.
« More »
JSONView¶
Renders a JSON-encoded representation of the data produced by a route's action.
« More »
Log¶
Provides logging capabilities to the HotMelt framework.
« More »
Middleware¶
Provides an API for extending HotMelt's request handling machinery.
Middleware can register for hooks to intercept requests.
« More »
PDO¶
Extends to default `PDO` class with capabilities used by other HotMelt classes.
Extensions include a wrapper around `\PDO::prepare()` that wraps statements in an instance of `\HotMelt\PDOStatementDecorator` and support for quoting identifiers (`\HotMelt\PDO::quoteIdentifier()`).
« More »
PDOStatementDecorator¶
Implements a wrapper around the default `\PDOStatement` class providing features required by the HotMelt ORM layer.
« More »
PersistentObject¶
Implements a lightweight object-relational-mapper interface.
The `PersistentObject` class prefers convention over configuration.
This is an overview of the conventions that the `PersistentObject` class establishes and how to override them:
- Objects are read from and written to a table that is the plural form of the subclass name (without the namespace prefix). Override the `tableName()` method to change this.
- Objects have a primary key (assumged to be an auto-incrementing integer) named `id`. Override the `primaryKey()` method to change this.
- Some methods allow you to specify a `\HotMelt\PDO` object for database access. If not PDO is given, the PDO returned from the `defaultPDO()` class method is used. The default value returned by this method is `null`, however, so you will have to override this method to use a default PDO.
Note that you should not directly create a new persistent object instance. Use the `findBy...()` and `insert()` methods to retrieve existing objects or create new ones.
« More »
Request¶
Collects information about requests handled by the HotMelt dispatch machinery.
« More »
Response¶
Collects information about a response to send for a request.
« More »
Route¶
Maps URI patterns to actions and views.
Routes are declared through the interfaces provided by the `\HotMelt\Route` class.
HotMelt will automatically load `Site/routes.php`, so you should use that file to declare routes.
« More »
TemplateView¶
Provides support for views using the Twig template engine.
« More »
View¶
Coordinates rendering of the data produced by an action.
« More »