Overview

Namespaces

  • momentphp
    • exceptions
    • interfaces
    • middlewares
    • providers
    • traits
  • None

Classes

  • App
  • Bundle
  • Cache
  • CallableResolver
  • Config
  • Controller
  • Database
  • DebugInfo
  • Error
  • ExceptionHandler
  • FlashMessages
  • Helper
  • Log
  • Middleware
  • Model
  • ObjectCache
  • Provider
  • Registry
  • Router
  • Settings
  • SmartyViewEngine
  • Template
  • TwigViewEngine
  • View
  • Overview
  • Namespace
  • Class

Class Model

Model

momentphp\Model uses momentphp\traits\ContainerTrait, momentphp\traits\OptionsTrait, momentphp\traits\ClassTrait
Abstract
Namespace: momentphp
Located at Model.php
Methods summary
public
# __construct( Interop\Container\ContainerInterface $container, array $options = [] )

Constructor

Constructor

Parameters

$container
$options
public Illuminate\Database\ConnectionInterface
# db( null|string $connectionName = null )

Return connection

Return connection

Parameters

$connectionName

Returns

Illuminate\Database\ConnectionInterface
public array
# implementedEvents( )

Return a list of all events that will fire in the model during its lifecycle

Return a list of all events that will fire in the model during its lifecycle

Returns

array
public
# initialize( )

Model callback invoked just after model construction

Model callback invoked just after model construction

public string
# objectKey( )

Return model key (for caching purposes)

Return model key (for caching purposes)

Returns

string
public momentphp\Model|momentphp\Registry
# __get( string $name )

Return model

Return model

Parameters

$name

Returns

momentphp\Model|momentphp\Registry
Methods used from momentphp\traits\ContainerTrait
container()
Methods used from momentphp\traits\OptionsTrait
options()
Methods used from momentphp\traits\ClassTrait
classBasename(), classConfigKey(), classNamespace(), classPart(), classPath(), classPrefix(), classSuffix()
Properties summary
protected string $connection

Connection name to use

Connection name to use

#
Properties used from momentphp\traits\ContainerTrait
$app, $container
Properties used from momentphp\traits\OptionsTrait
$options, $optionsInitialized
MomentPHP API documentation generated by ApiGen