Overview

Namespaces

  • Core
    • Auth
    • Exceptions
    • Helpers
    • Providers
  • Kernel
    • Dispatch
    • Providers
  • None
  • Vendor
    • ExampleVendor

Classes

  • Controller
  • ErrorController
  • HomeController
  • HomeModel
  • LoginController
  • LoginModel
  • Model

Functions

  • _die
  • asset
  • clock_end
  • clock_start
  • clock_time
  • config
  • ddie
  • deleteDir
  • email_png
  • env
  • folder_action
  • folder_recurse
  • generateFile
  • getClientIP
  • getClientUserAgent
  • getVersion
  • isAjax
  • isAuth
  • isDev
  • isLocalServer
  • isProd
  • nocache
  • php
  • ppie
  • query
  • queryIndexed
  • save_ini_file
  • t
  • versioning
  • view
  • write_ini
  • Overview
  • Namespace
  • Class
  • Download

Class HomeModel

Class Model acts as a stepping stone (or "intermediate agent") between the user-defined code (/src/models/) and the system-defined code (ParentModel) that helps to better structure the code. See @example

Core\ParentModel
Extended by Model
Extended by HomeModel
Example:
// To avoid:
FooController->queryProducts();
// and
BarController->queryProducts();
// to be defined twice (one in each controller) or once (in ParentController, bad code practices)
Controller->queryProducts();
// can be defined and thus accessed from both <b>Foo</b> and <b>Bar</b> Controllers.

Located at src/models/HomeModel.php
Methods summary
public static HomeModel
# singleton( )

Returns a HomeModel instance, creating it if it did not exist.

Returns a HomeModel instance, creating it if it did not exist.

Returns

HomeModel

Overrides

Model::singleton()
Methods inherited from Core\ParentModel
getRow(), query(), queryClass(), queryIndexed(), updateRow()
Properties inherited from Core\ParentModel
$config, $db, $id
Ribosome API documentation generated by ApiGen