Overview

Namespaces

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

Classes

  • ExampleVendorController
  • ExampleVendorModel
  • Overview
  • Namespace
  • Class
  • Download

Class ExampleVendorModel

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 Vendor\ExampleVendor\ExampleVendorModel
Namespace: Vendor\ExampleVendor
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/vendor/ExampleVendor/models/ExampleVendorModel.php
Methods summary
public static Vendor\ExampleVendor\ExampleVendorModel
# singleton( )

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

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

Returns

Vendor\ExampleVendor\ExampleVendorModel

Overrides

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