Hawk - PHP documentation
  • Namespace
  • Class
  • Tree

Namespaces

  • Hawk
    • View
      • Plugins

Classes

  • App
  • ButtonInput
  • Cache
  • CheckboxInput
  • ColorInput
  • Conf
  • Controller
  • Crypto
  • DatabaseSessionHandler
  • DatetimeInput
  • DB
  • DBExample
  • DeleteInput
  • Dialogbox
  • EmailInput
  • ErrorHandler
  • Event
  • FileInput
  • FileSystem
  • FloatInput
  • Form
  • FormFieldset
  • FormInput
  • GenericModel
  • GifImage
  • HawkApi
  • HawkUpdater
  • HiddenInput
  • HtmlInput
  • HTTPRequest
  • Icon
  • Image
  • IntegerInput
  • ItemList
  • ItemListField
  • JpegImage
  • Lang
  • Language
  • LeftSidebarTab
  • Less
  • Logger
  • Mail
  • MenuItem
  • Model
  • NoSidebarTab
  • NumberInput
  • ObjectInput
  • Option
  • Panel
  • PasswordInput
  • Permission
  • Plugin
  • PluginInstaller
  • PngImage
  • ProfileQuestion
  • ProfileQuestionValue
  • RadioInput
  • Request
  • Response
  • RightSidebarTab
  • Role
  • RolePermission
  • Route
  • Router
  • SelectInput
  • Session
  • Singleton
  • SubmitInput
  • Tabs
  • TextareaInput
  • TextInput
  • Theme
  • TimeInput
  • Upload
  • User
  • View
  • ViewPlugin
  • Widget
  • WysiwygInput

Traits

  • Utils

Exceptions

  • AppStopException
  • DBExampleException
  • DBException
  • FileSystemException
  • HawkApiException
  • ImageException
  • MailException
  • UploadException
  • ViewException

Class App

This class is used to generate the application singletons. It is loaded at script start, and initialize the following singletons : conf, errorHandler, logger, fs (FileSystem), session, router, request, response, cache and db

Hawk\Singleton
Extended by Hawk\App
Final
Namespace: Hawk
Package: Core
Located at App.php

Methods summary

public
# init( )

Initialize the application

Initialize the application

public
# singleton( string $name, object $instance )

Create an application singleton

Create an application singleton

Parameters

$name

The singleton name, that will running by App::{$name}(). For example, if $name = 'db', the singleton will be accessible by App::db();

$instance
The singleton instance
public static
# __callStatic( string $method, array $arguments )

Call a singleton

Call a singleton

Parameters

$method
The method name, corresponding to the singleton name
$arguments
The singleton arguments (not used, but mandatory when overriding __callStatic method)

Methods inherited from Hawk\Singleton

__construct(), getInstance()

Properties summary

protected static $instance

The application instance

The application instance

#
Hawk - PHP documentation API documentation generated by ApiGen