API Reference
About 7 min
API Reference
This is an automatically generated documentation for API Reference.
Namespaces
Hazaar
Classes
Class | Description |
---|---|
Application | The Application. |
Cache | The cache frontend. |
Closure | The Hazaar Closure Class. |
Controller | |
Cron | This class can be used to parse cron strings and compute schedules. |
Date | The date/time class |
Extender | |
File | |
GeoData | The GeoData class for accessing geographic information on countries. |
Loader | Global class file loader. |
Map | Enhanced array access class. |
Model | |
Money | Money class |
RateLimiter | Class RateLimiter. |
Session | Session class |
Socket | The PHP socket extensions class. |
Timer | Timer class for measuring how long things take. |
Version | The version class |
View | The View class is used to render views in the Hazaar MVC framework. |
Functions
Function | Description |
---|---|
getApplicationPath |
Hazaar\Application
Classes
Class | Description |
---|---|
Config | Application Configuration Class. |
Protocol | Hazaar Application Protocol Class |
Request | |
Route | |
Router | |
URL | Generate a URL relative to the application |
Hazaar\Application\Exception
Classes
Class | Description |
---|---|
BadTimezone | |
ConfigEnvNotFound | |
RouterUnknown | |
RuntimeDirNotFound | |
RuntimeDirNotWritable | |
RuntimeDirUncreatable | |
ServerBusy |
Hazaar\Application\Interfaces
Interfaces
Interface | Description |
---|---|
Request |
Hazaar\Application\Request
Classes
Class | Description |
---|---|
CLI | |
HTTP | Controller HTTP Request Class |
Loader | Application Request Loader. |
Hazaar\Application\Router
Classes
Class | Description |
---|---|
Loader |
Hazaar\Application\Router\Exception
Classes
Class | Description |
---|---|
ActionNotFound | |
ControllerHasNoRoutes | |
ControllerNotFound | |
LoaderNotSupported | |
ProtocolNotSupported | |
RouteFailed | |
RouteNotFound |
Hazaar\Application\Router\Loader
Classes
Class | Description |
---|---|
Advanced | |
Annotated | The annotated router class. |
Basic | Basic Application Router. |
File | |
Json | JSON Router. |
Hazaar\Application\Router\Loader\Exception
Classes
Class | Description |
---|---|
MissingRouteFile |
Hazaar\Auth
Classes
Class | Description |
---|---|
Adapter |
Hazaar\Auth\Adapter
Classes
Class | Description |
---|---|
Basic | |
DBITable | |
HTPasswd | |
Model | |
OAuth2 | |
OpenID | OAuth short summary. |
Hazaar\Auth\Adapter\Exception
Classes
Class | Description |
---|---|
HTPasswdFileMissing | |
Unauthorised | |
UnknownStorageAdapter |
Hazaar\Auth\Interfaces
Interfaces
Interface | Description |
---|---|
Adapter | |
Storage |
Hazaar\Auth\Storage
Classes
Class | Description |
---|---|
Cache | Session based authentication adapter |
JWT | JWT Authentication Adapter. |
Session | Session based authentication adapter |
Hazaar\Auth\Storage\Exception
Classes
Class | Description |
---|---|
JWTPrivateKeyFileNotFound | |
NoApplication | |
NoJWTAlgorithm | |
NoJWTPassphrase | |
NoJWTPrivateKey | |
SessionStartFailed | |
UnsupportedJWTAlgorithm |
Hazaar\Cache
Classes
Class | Description |
---|---|
Backend | |
Benchmark | |
Func | Class Func. |
Output |
Hazaar\Cache\Backend
Classes
Class | Description |
---|---|
Apc | The APC cache backend. |
Chain | The cache backend chaining backend. |
File | The file cache backend. |
Memcached | The Memcached cache backend. |
Redis | The Redis cache backend. |
Session | Session cache backend class |
Shm | The PHP-SHM (shared memory) cache backend. |
Sqlite3 | The SQLite3 cache backend. |
Hazaar\Cache\Backend\Exception
Classes
Class | Description |
---|---|
NoAPC | |
NoDBConfig | |
NoDBTable | |
NoMemcached | |
NoSQLite3 | |
NoSQLite3DBPath | |
NoZlib | |
RedisError |
Hazaar\Cache\Exception
Classes
Class | Description |
---|---|
InvalidBackend | |
InvalidFrontend | |
NoBackendAvailable | |
NoFunction |
Hazaar\Cache\Interfaces
Interfaces
Interface | Description |
---|---|
Backend |
Hazaar\Controller
Classes
Class | Description |
---|---|
Action | |
Basic | |
Closure | Class Closure. |
Diagnostic | Basic controller class |
Dump | Class Dump. |
Error | Basic controller class |
Helper | |
Info | Class Info. |
Internal | Class Internal. |
REST | |
Response | |
WebDAV | |
XMLRPC |
Hazaar\Controller\Action
Classes
Class | Description |
---|---|
ViewRenderer | Class ViewRenderer. |
Hazaar\Controller\Action\Exception
Classes
Class | Description |
---|---|
InvalidActionController | |
NoContent |
Hazaar\Controller\Exception
Classes
Class | Description |
---|---|
ActionNotFound | |
ActionNotPublic | |
BrowserRootNotDefined | |
BrowserRootNotFound | |
HeadersSent | |
MethodExists | |
MethodNotFound | |
NoAction | |
NoDefaultRenderer | |
ResponseInvalid |
Hazaar\Controller\Helper
Classes
Class | Description |
---|---|
Response |
Hazaar\Controller\Interfaces
Interfaces
Interface | Description |
---|---|
Controller | |
Response |
Hazaar\Controller\Internal
Classes
Class | Description |
---|---|
Warlock | Class Warlock. |
Hazaar\Controller\Response
Classes
Class | Description |
---|---|
File | |
HTML | |
Image | |
Info | |
JSON | |
Layout | |
Stream | |
Text | |
View | |
XML |
Hazaar\Controller\Response\Exception
Classes
Class | Description |
---|---|
ActionNotFound | |
JSONNotSupported | |
NoLessSupport | |
NoRenderer |
Hazaar\Controller\Response\HTTP
Classes
Class | Description |
---|---|
BadRequest | |
Forbidden | |
NoContent | |
NotFound | |
NotImplemented | |
OK | |
RateLimitExceeded | Represents a HTTP response for when the rate limit has been exceeded. |
Redirect | |
Unauthorized |
Hazaar\DBI
Classes
Class | Description |
---|---|
Adapter | Relational Database Interface |
DataMapper | |
Result | Relational Database Interface - Result Class |
Row | |
Table | Relational Database Interface - Table Class |
Hazaar\DBI\DBD
Classes
Class | Description |
---|---|
BaseDriver | |
Dummy | |
Mysql | |
Pgsql | |
Sqlite | |
TestPDOStatement |
Hazaar\DBI\DBD\Exception
Classes
Class | Description |
---|---|
NoUpdate | |
NotConnected |
Hazaar\DBI\DBD\Interfaces
Interfaces
Interface | Description |
---|---|
Driver | Relational Database Driver Interface |
Hazaar\DBI\Exception
Classes
Class | Description |
---|---|
ConnectionFailed | |
DriverNotFound | |
DriverNotSpecified | |
MissingJoin | |
NotConfigured |
Hazaar\DBI\Schema
Classes
Class | Description |
---|---|
Manager | Relational Database Schema Manager. |
Tool |
Hazaar\DBI\Schema\Exception
Classes
Class | Description |
---|---|
Datasync | |
FileSystem | |
Migration | |
Schema | |
Snapshot |
Hazaar\DBI\Table
Classes
Class | Description |
---|---|
SQL |
Hazaar\Exception
Classes
Hazaar\File
Classes
Class | Description |
---|---|
BTree | B-Tree key/value database file access class. |
BrowserConnector | |
Dir | |
GZFile | |
Image | |
Manager | |
Metric | |
PDF File class for generating PDFs from HTML. | |
Temp | Create a temporary file. |
TempDir | Create a temporary directory. |
Upload | The file upload manager class. |
Hazaar\File\Backend
Classes
Class | Description |
---|---|
DBI | |
Dropbox | |
GoogleDrive | |
Hazaar | |
Local | |
SharePoint | |
WebDAV |
Hazaar\File\Backend\Exception
Classes
Class | Description |
---|---|
ClassNotFound | |
DropboxError | |
GoogleDriveError | |
Offline | |
SharePointError |
Hazaar\File\Backend\Interfaces
Interfaces
Interface | Description |
---|---|
Backend | |
Driver | |
Manageable |
Hazaar\File\Exception
Classes
Class | Description |
---|---|
BackendNotFound | |
InternalFileNotFound | |
InvalidBackend | |
MoveFailed | |
SaveFailed | |
SourceNotFound | |
TargetExists | |
TargetNotFound |
Hazaar\File\Exception\WKPDF
Classes
Class | Description |
---|---|
ExecError | |
InstallFailed | |
NoData | |
NotExecutable | |
SystemError |
Hazaar\File\Renderer
Classes
Class | Description |
---|---|
BaseRenderer | |
GD | |
Imagick |
Interfaces
Interface | Description |
---|---|
ImageRendererInterface |
Hazaar\File\Template
Classes
Class | Description |
---|---|
Smarty | The View\Template class. |
Hazaar\File\Template\Exception
Classes
Class | Description |
---|---|
SmartyRenderException |
Hazaar\HTTP
Classes
Class | Description |
---|---|
Client | |
Request | |
Response | |
URL | |
WebDAV |
Hazaar\HTTP\Exception
Classes
Class | Description |
---|---|
CertificateNotFound | |
DecryptFailed | |
HostNotFound | |
NoConnection | |
ProtocolPortUnknown | |
RedirectNotAllowed | |
TooManyRedirects |
Hazaar\HTTP\WebDAV
Classes
Class | Description |
---|---|
Collection | |
Property |
Hazaar\HTTP\WebDAV\Lock
Hazaar\HTTP\WebDAV\Lock\Scope
Classes
Class | Description |
---|---|
Exclusive |
Hazaar\HTTP\WebDAV\Lock\Type
Classes
Class | Description |
---|---|
Write |
Hazaar\Logger
Classes
Class | Description |
---|---|
Backend | |
Frontend |
Hazaar\Logger\Backend
Classes
Class | Description |
---|---|
Chain | |
Database | |
File | |
Memory | |
Syslog |
Hazaar\Logger\Backend\Exception
Classes
Class | Description |
---|---|
OpenLogFileFailed |
Hazaar\Logger\Exception
Classes
Class | Description |
---|---|
NoBackend |
Hazaar\Logger\Interfaces
Interfaces
Interface | Description |
---|---|
Backend |
Hazaar\Mail
Classes
Class | Description |
---|---|
Adapter | Common class for sending emails via different transport mechanisms. |
Attachment | |
Template | |
Transport | |
TransportMessage |
Hazaar\Mail\Interfaces
Interfaces
Interface | Description |
---|---|
Transport |
Hazaar\Mail\Mime
Classes
Class | Description |
---|---|
Html | |
Message | |
Part |
Hazaar\Mail\Transport
Classes
Class | Description |
---|---|
HTTP | |
Local | |
SMTP |
Hazaar\Mail\Transport\Exception
Classes
Class | Description |
---|---|
FailConnect | FailConnect short summary. |
NoSendmail | FailConnect short summary. |
Hazaar\Model
Classes
Class | Description |
---|---|
Email Address Strict Model. |
Hazaar\Model\Exception
Classes
Class | Description |
---|---|
DefineEventHookException | |
PropertyException | |
PropertyValidationException | |
UnsetPropertyException |
Hazaar\Net
Classes
Class | Description |
---|---|
LDAP | LDAP access class |
Hazaar\Parser
Classes
Class | Description |
---|---|
DocBlock | The docblock parser class. |
PHP | |
YAML |
Hazaar\Parser\PHP
Classes
Class | Description |
---|---|
ParserClass | |
ParserConstant | |
ParserFile | |
ParserFunction | |
ParserInterface | |
ParserNamespace | |
ParserParameter | |
ParserProperty | |
Token | |
TokenParser |
Hazaar\Parser\PHP\Traits
Functions
Function | Description |
---|---|
checkDocComment | |
getTypedValue | |
seekCodeBlockEnd | Find a code block in the token stream. |
Hazaar\RateLimiter
Classes
Class | Description |
---|---|
Backend |
Hazaar\RateLimiter\Backend
Classes
Class | Description |
---|---|
Cache | |
File |
Hazaar\RateLimiter\Interfaces
Interfaces
Interface | Description |
---|---|
Backend |
Hazaar\Socket
Classes
Class | Description |
---|---|
Client | The socket client class. |
Server |
Hazaar\Socket\Exception
Classes
Class | Description |
---|---|
BindFailed | |
CreateFailed | |
ListenFailed | |
OptionFailed |
Hazaar\Template
Classes
Class | Description |
---|---|
Smarty | Smarty 2.0 Templates. |
Hazaar\Template\Exceptions
Classes
Class | Description |
---|---|
SmartyTemplateError |
Hazaar\Template\Smarty
Classes
Class | Description |
---|---|
Modifier |
Hazaar\Test
Classes
Class | Description |
---|---|
BaseClass | |
TestClass |
Interfaces
Interface | Description |
---|---|
TestInterface |
Functions
Function | Description |
---|---|
testFunction | This is a test function. |
variaticFunction |
Constants
Constant | Description |
---|---|
TEST_CONSTANT |
Hazaar\Tool
Classes
Class | Description |
---|---|
APIDoc | |
Main |
Hazaar\View
Classes
Class | Description |
---|---|
Helper | |
Layout | |
ViewableObject |
Interfaces
Interface | Description |
---|---|
Viewable | Interface for objects that are writable as a string. |
Hazaar\View\Helper
Classes
Class | Description |
---|---|
Authentication | |
DateTime | |
Form | |
Pagination |
Hazaar\View\Interfaces
Interfaces
Interface | Description |
---|---|
Helper | Base view helper interface. |
Hazaar\Warlock
Classes
Class | Description |
---|---|
Config | |
Container | |
Control | Control class for Warlock |
Process | |
Protocol | Hazaar Application Protocol Class |
REST | |
Service |
Hazaar\Warlock\Connection
Classes
Class | Description |
---|---|
Pipe | |
Socket |
Hazaar\Warlock\Interfaces
Interfaces
Interface | Description |
---|---|
Client | |
Connection | |
Task |
Hazaar\Warlock\Protocol
Classes
Class | Description |
---|---|
WebSockets |
Hazaar\Warlock\Server
Classes
Class | Description |
---|---|
Client | |
Cluster | |
KVStore | |
Logger | |
Master | |
Process | |
Task |
Hazaar\Warlock\Server\Client
Classes
Class | Description |
---|---|
Peer | |
Service |
Hazaar\Warlock\Server\Struct
Classes
Class | Description |
---|---|
Application |
Hazaar\Warlock\Server\Task
Classes
Class | Description |
---|---|
Internal | |
Runner | |
Service | |
Test |
Hazaar\XML
Classes
Class | Description |
---|---|
Element | Represents an element in an XML document. |
Hazaar\XML\RPC\Exception
Classes
Class | Description |
---|---|
ClientException | |
InvalidRequest | |
MethodNotFound | |
NoCommunication | |
XMLRPCNotInstalled |
Hazaar\Xml\Rpc
Classes
Class | Description |
---|---|
Client | |
Server |
Classes
Class | Description |
---|---|
MatchReplaceException |
Functions
Function | Description |
---|---|
age | Get the age of a date. |
ake | Array/Object value normalizer. |
akr | Array Key Rename. |
array_build_html | Converts a multi dimensional array into key[key][key] => value syntax that can be used in html INPUT field names. |
array_collate | Collate a multi-dimensional array into an associative array where $key_item is the key and $value_item is the value. |
array_diff_assoc_recursive | Recursivly computes the difference of arrays with additional index check. |
array_diff_key_recursive | Computes the difference of arrays using keys for comparison recursively. |
array_flatten | Flattens a multidimensional array into a string representation. |
array_from_dot_notation | Convert a single dimension array in dot notation into a multi-dimensional array. |
array_pull | Pull an item out of an array by is key. |
array_remove_empty | Recursively remove all empty values from an array. |
array_seek | Seek the array cursor forward $count number of elements. |
array_to_dot_notation | Convert to dot notation. |
array_to_object | Recursively convert an array into an object. |
array_unflatten | Converts a flattened string or array into a multidimensional array. |
array_usearch | Searches the array using a callback function and returns the first corresponding key if successful. |
base64url_decode | |
base64url_encode | |
basicHandler | Handles basic PHP errors. |
boolify | Normalize boolean values. |
build_url | Build a correctly formatted URL from argument list. |
bytes_str | String to bytes formatter. |
coalesce | Retreive first non-null value from parameter list. |
days | Convert interval to days. |
deep_clone | Performs a deep clone on an object or array. |
dieDieDie | Terminates the script execution and displays an error message. |
dump | |
errorAndDie | This function handles errors and terminates the script execution. |
errorHandler | Custom error handler function. |
exceptionHandler | Exception handler function. |
grammatical_implode | Grammatically correct array implode. |
guid | |
hazaar_request_headers | Get the current request headers. |
hours | Convert interval to hours. |
http_response_text | Helper function to get the status text for an HTTP response code. |
in_uarray | Checks if a value exists in an array using a callback function. |
interval | Return a string interval in a nice readable format. |
is_assoc | Test of array is an associative array. |
is_boolean | Test whether a value is a boolean. |
is_multi_array | Test of array is multi-dimensional. |
log_dump | |
match_replace | Use the match/replace algorithm on a string to replace mustache tags with view data. |
minutes | Convert interval to minutes. |
money_format | Replacement for the "built-in" PHP function money_format(), which isn't always built-in. |
object_merge | Object Merge. |
object_to_array | Recursively convert an object into an array. |
php_binary | Returns the path to the PHP binary. |
preg_match_array | Perform a regular expression match on a string using multiple possible regular expressions. |
recursive_iterator_to_array | Recrusively convert a traversable object into a normal array. |
replace_property | Replaces a property in an object at key with another value. |
replace_recursive | Replaces elements from passed arrays or objects into the first array or object recursively. |
rotateLogFile | Rotate a log file. |
seconds | Convert a string interval to seconds. |
shutdownHandler | Shutdown handler function. |
str_bytes | Byte to string formatter. |
str_fixtype | Fix a numeric string. |
str_ftime | |
str_putcsv | Convert an array into a CSV line. |
str_random | Generate a truly random string of characters. |
strbool | Retrieve string value of boolean. |
traceAndDie | Traces the current execution and terminates the script. |
uptime | Convert interval to uptime string. |
weeks | Convert interval to weeks. |
years | Convert interval to years. |
yn | The Yes/No function. |
Generated by Hazaar API Doc Generator