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 Table

Eloquent
Extended by Table
Located at src/models/meta/Table.php
Methods summary
public static
# getMetaFields( )
public
# __construct( type $tableName, type $data, type $tableMeta = null, type $pageSize = 10, type $selectBox = array() )

Constructor

Constructor

Parameters

$tableName
type
$tableName
$data
type
$tableMeta
$tableMeta
type
$data
$pageSize
type
$pageSize
$selectBox
type
$selectBox
public type
# records( )

Getter for records

Getter for records

Returns

type
public type
# pageSize( )

Getter for pageSize

Getter for pageSize

Returns

type
public type
# selectBox( )

Getter for selectBox

Getter for selectBox

Returns

type
public
# meta( )
public
# metaA( )
public
# pk( )
public
# name( )
protected
# setTableName( mixed $tableName )
public static
# get( mixed $tableName )
public static
# getFieldMetaN( mixed $fieldName, mixed $tableName )

Gets field metadata from the fieldname and tablename

Gets field metadata from the fieldname and tablename

public static type
# getFieldMeta( type $fieldId, type $dbFieldsMeta = null )

Parameters

$fieldId
type
$fieldId the id of the field in _db_fields
$dbFieldsMeta
type
$dbFieldsMeta [optional] always the result of Table::getMeta("_db_fields");

Returns

type
public static type
# val( type $arr, type $key )

Safely return a value from an array

Safely return a value from an array

Parameters

$arr
type
$arr
$key
type
$key

Returns

type
public static
# getTableMeta( mixed $tableName )

return an array(
'table'=>array('name'=>'name', 'pk_name'=>'fieldname'),
'fields_array'=array('fieldname'=>fieldData,...))

return an array( 'table'=>array('name'=>'name', 'pk_name'=>'fieldname'), 'fields_array'=array('fieldname'=>fieldData,...))

fieldData is in the format :
array("id" => 1, "name" => fieldName, "label" => 'Field Name' ...)

public static type
# getMeta( type $tableName )

get field metadata from database

get field metadata from database

Parameters

$tableName
type
$tableName

Returns

type
public static type
# getMultiMeta( type $fieldNames )

get field metadata from database

get field metadata from database

Parameters

$fieldNames
type
$tableName

Returns

type
public static type
# getMetaArray( type $tableName )

Get a table's metadata (from _db_fields table) as an array

Get a table's metadata (from _db_fields table) as an array

Parameters

$tableName
type
$tableName

Returns

type
public static type
# addPkData( type $tableName, type $ma, type $fieldsMeta = null )

Parameters

$tableName
type
$tableName
$ma
type
$ma
$fieldsMeta
type
$mk

Returns

type
Properties summary
protected string $tableName ""
#
public mixed $tableMetaData null
#
public array $records array()
#
protected mixed $primaryKey
#
crud API documentation generated by ApiGen 2.8.0