Overview

Namespaces

  • Composer
    • Autoload
  • Illuminate
    • Support
      • Contracts
      • Facades
  • Laravella
    • Crud
      • Exceptions
      • Facades
  • None
  • PHP

Classes

  • ComposerAutoloaderInit0812ead62c33200f1cfc491b452f7c6a
  • CreateActionsTable
  • CreateAssetsTable
  • CreateAuditTable
  • CreateDisplayTypesTable
  • CreateEventsTable
  • CreateFieldsTable
  • CreateKeyFieldsTable
  • CreateKeysTable
  • CreateKeyTypesTable
  • CreateLogsTable
  • CreateMenuPermissionsTable
  • CreateMenusTable
  • CreateObjectEventsTable
  • CreateObjectsTable
  • CreateOptionsTable
  • CreateOptionTypesTable
  • CreatePageAssetsTable
  • CreatePagesTable
  • CreateSeveritiesTable
  • CreateTablesTable
  • CreateUserGroupPermissionsTable
  • CreateUsergroupsTable
  • CreateUserPermissionsTable
  • CreateViewsTable
  • CreateWidgetTypesTable
  • DbApiController
  • DbController
  • Domain
  • field
  • foreignKey
  • Model
  • PageController
  • primaryKey
  • Record
  • Relation
  • Table
  • xxxxAddMcollectionMediaTable
  • xxxxCreateUsersTable

Functions

  • action
  • app
  • app_path
  • array_add
  • array_build
  • array_divide
  • array_dot
  • array_except
  • array_fetch
  • array_first
  • array_flatten
  • array_forget
  • array_get
  • array_only
  • array_pluck
  • array_pull
  • array_set
  • array_sort
  • asset
  • base_path
  • camel_case
  • class_basename
  • csrf_token
  • dd
  • e
  • ends_with
  • head
  • last
  • link_to
  • link_to_action
  • link_to_asset
  • link_to_route
  • object_get
  • public_path
  • route
  • secure_asset
  • secure_url
  • snake_case
  • starts_with
  • storage_path
  • str_contains
  • str_finish
  • str_is
  • str_plural
  • str_random
  • str_singular
  • studly_case
  • trans
  • trans_choice
  • url
  • value
  • with
  • Overview
  • Namespace
  • Class
  • Tree

Class Model

Description of generic Model

Eloquent
Extended by Model
Author: Victor
Located at src/models/Model.php
Methods summary
public static
# getInstance( )

A way to overload the constructor. Use this to instantiate the class.

A way to overload the constructor. Use this to instantiate the class.

public
# __construct( )

Create a new Eloquent model instance.

Create a new Eloquent model instance.

public string
# getTable( )

Get the table associated with the model.

Get the table associated with the model.

Returns

string
public type
# setHasOne( type $table, type $customKey )

Parameters

$table
type
$table
$customKey
type
$customKey

Returns

type
public type
# setHasMany( type $table, type $customKey )

Parameters

$table
type
$table
$customKey
type
$customKey

Returns

type
public type
# setBelongsTo( type $table, type $customKey )

Parameters

$table
type
$table
$customKey
type
$customKey

Returns

type
public type
# setBelongsToMany( type $table, type $pivotTable, type $remoteId, type $localId )

Parameters

$table
type
$table
$pivotTable
type
$pivotTable
$remoteId
type
$remoteId
$localId
type
$localId

Returns

type
public
# setGuarded( mixed $guardedA )
public
# getA( )
public
# insertRec( )

Insert a new record

Insert a new record

public Model
# editRec( type $pkValue, mixed $json = null )

Update a record

Update a record

Parameters

$pkValue
type
$pkValue
$json

Returns

Model
public
# setTable( type $tableName )

Setter for table

Setter for table

Parameters

$tableName
type
$tableName
public
# setMetaData( type $tableName )

Setter for metaData

Setter for metaData

Parameters

$tableName
type
$tableName
public type
# getMetaData( )

Getter for metaData

Getter for metaData

Returns

type
Properties summary
protected mixed $metaData null
#
protected string $primaryKey "id"
#
protected array $guarded array('id')
#
crud API documentation generated by ApiGen 2.8.0