Overview

Namespaces

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

Classes

  • CrudDatabaseSeeder
  • CrudInstallCommand
  • CrudSeeder
  • CrudServiceProvider
  • CrudUpdateCommand
  • DbGopher
  • Log
  • Options
  • Params
  • PostCrudSeeder
  • SeedActions
  • SeedAssets
  • SeedGroups
  • SeedLogs
  • SeedMenus
  • SeedObjects
  • SeedOptions
  • SeedPageTypes
  • SeedSeverities
  • SeedTables
  • SeedUsergroups
  • SeedUsers
  • SeedViews
  • UpdateCMSFields
  • UpdateReferences
  • Overview
  • Namespace
  • Class
  • Tree

Class DbGopher

Description of DbGopher

Namespace: Laravella\Crud
Author: Victor
Located at src/Laravella/Crud/DbGopher.php
Methods summary
public static
# makeArray( type $meta, type $data )

Turn a StdClass object into an array using an array of meta data objects.

Turn a StdClass object into an array using an array of meta data objects.

Parameters

$meta
type
$meta An array of stdClass objects, each object representing a field's metadata (_db_fields). You can use Table::getMeta($tableName) to get this.
$data
type
$data An array of stdClass objects, each object a record. (the result of DB::table('tableName')->get() not ->first() )
public static
# makeArrayA( type $metaA, type $data )

Turn a StdClass object into an array using an array of meta data arrays.

Turn a StdClass object into an array using an array of meta data arrays.

Parameters

$metaA
type
$meta An array of arrays, each one representing a field's metadata (_db_fields)
$data
type
$data An array of stdClass objects, each object a record
public static
# pick( mixed $result, mixed $fieldName )

check if a StdObj exists as an object and then returns a field from it.

check if a StdObj exists as an object and then returns a field from it.

crud API documentation generated by ApiGen 2.8.0