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 CrudSeeder

Basic functions to manipulate meta data

Seeder
Extended by Laravella\Crud\CrudSeeder

Direct known subclasses

Laravella\Crud\Params, Laravella\Crud\PostCrudSeeder, Laravella\Crud\SeedTables, Laravella\Crud\SeedUsers, Laravella\Crud\SeedViews, Laravella\Crud\UpdateCMSFields, Laravella\Crud\UpdateReferences, Laravella\Crud\SeedActions, Laravella\Crud\SeedAssets, Laravella\Crud\SeedGroups, Laravella\Crud\SeedMenus, Laravella\Crud\SeedObjects, Laravella\Crud\SeedOptions, Laravella\Crud\SeedPageTypes, Laravella\Crud\SeedSeverities
Namespace: Laravella\Crud
Located at src/Laravella/Crud/CrudSeeder.php
Methods summary
public
# setTitle( mixed $slug, mixed $title )

Set the title of a page

Set the title of a page

public
# setHeroCaption( mixed $mediaId, mixed $caption )

Set the Caption of an image (_db_medias.caption)

Set the Caption of an image (_db_medias.caption)

public
# setPageType( )
public
# setAssetType( )
public
# linkAssetPageGroups( type $assetGroup, type $pageGroup )

Parameters

$assetGroup
type
$id
$pageGroup
type
$slugs
public
# tableActionViewId( type $tableName, type $actionName, type $viewName )

Parameters

$tableName
type
$tableName The name of the table
$actionName
type
$actionName The name of the action
$viewName
type
$viewName The name of the view
public type
# addPage( type $tableName, type $actionName, type $viewName, type $values )

Parameters

$tableName
type
$tableName
$actionName
type
$actionName
$viewName
type
$viewName
$values
type
$values

Returns

type
public
# addAsset( type $url, type $type = '', type $assetGroup = '', type $position = 'top', mixed $vendor = '', mixed $version = '' )

Parameters

$url
type
$url
$type
type
$type
$assetGroup
type
$vendor
$position
type
$version
$vendor
$version
public
# linkAssetPage( type $id, type $slugs )

Parameters

$id
type
$id
$slugs
type
$slugs Use '*' for all pages
public
# info( mixed $message )
public
# updateReference( type $fkTableName, type $fkFieldName, type $pkTableName, type $pkFieldName, mixed $pkDisplayFieldName )

Update a reference to primary keys in _db_fields

Update a reference to primary keys in _db_fields

Parameters

$fkTableName
type
$fkTableName
$fkFieldName
type
$fkFieldName
$pkTableName
type
$pkTableName
$pkFieldName
type
$pkFieldName
$pkDisplayFieldName
public
# getId( type $table, type $whereField, mixed $whereValue = null )

Get the id of a record based on the value of another field

Get the id of a record based on the value of another field

Parameters

$table
type
$whereField
$whereField
type
$whereValue
$whereValue
public
# addSeverity( type $severity )

Add a severity

Add a severity

Parameters

$severity
type
$severity
public
# makeApiKey( )
public type
# createUser( type $groupName, type $name, type $password, type $email, type $firstName, type $lastName )

Add a new user

Add a new user

Parameters

$groupName
type
$groupName
$name
type
$name
$password
type
$password
$email
type
$email
$firstName
type
$firstName
$lastName
type
$lastName

Returns

type
public type
# addOption( type $optionTypeId, type $name, type $value )

Add an option

Parameters

$optionTypeId
type
$optionTypeId
$name
type
$name
$value
type
$value

Returns

type
public type
# addOptionType( type $name, type $parentId = null )

Add an option type

Add an option type

Parameters

$name
type
$name
$parentId
type
$parentId

Returns

type
public type
# getOptionType( type $name, type $parentName = null )

Add an option type

Add an option type

Parameters

$name
type
$name
$parentName
type
$parentId

Returns

type
public type
# addAssetType( type $typeName )

Add an asset type

Add an asset type

Parameters

$typeName
type
$typeName

Returns

type
public type
# addPageType( type $pageType )

Parameters

$pageType
type
$pageType

Returns

type
public
# addGroup( type $groupName )

Add a new usergroup

Add a new usergroup

Parameters

$groupName
type
$groupName
public
# delete( type $updateTable, type $whereValues )

Updates a field or inserts a record if key does not exist

Updates a field or inserts a record if key does not exist

Parameters

$updateTable
type
$updateTable
$whereValues
type
$whereValues an array of key value pairs , or an id
public
# updateOrInsert( type $updateTable, type $whereValues, array $insertValues = null )

Updates a field or inserts a record if key does not exist

Updates a field or inserts a record if key does not exist

Parameters

$updateTable
type
$updateTable The table that is to be updated
$whereValues
type
$whereValues an array of key value pairs , or an id
$insertValues
type
$insertValues Used as a single value if whereField is a string, else excluded
public
# addDivider( mixed $parentId )
public type
# addMenu( type $label, type $href, type $iconClass = 'icon-file', type $parentId = null )

Add a menu item

Add a menu item

Parameters

$label
type
$label
$href
type
$href
$iconClass
type
$iconClass
$parentId
type
$parentId Can be the id or the label of the parent menu item

Returns

type
public
# addMenuPermissions( type $menuId = null, type $groupName = '' )

Add menu permissions

Add menu permissions

Parameters

$menuId
type
$menuId
$groupName
type
$groupName
public type
# addWidgetType( type $name )

Add widget type

Add widget type

Parameters

$name
type
$name

Returns

type
public
# addDisplayType( type $name, type $id = null )

Add display_type

Add display_type

Parameters

$name
type
$id
$id
type
$name
public
# addKeyType( type $name, type $id = null )

Add display_type

Add display_type

Parameters

$name
type
$id
$id
type
$name
public type
# addAction( type $actionName )

Add action to _db_actions

Add action to _db_actions

Parameters

$actionName
type
$actionName

Returns

type
public type
# addObject( type $objectName )

Add objects to _db_actions

Add objects to _db_actions

Parameters

$objectName
type
$actionName

Returns

type
public
# addView( type $viewName )

populate _db_views

populate _db_views

Parameters

$viewName
type
$viewName
public
# populateTableActions( type $doPermissions = false )

Populate table _db_pages

Populate table _db_pages

Parameters

$doPermissions
type
$viewId
public
# makeLabel( type $name )

Replace _ with spaces and make first character of each word uppercase

Replace _ with spaces and make first character of each word uppercase

Parameters

$name
type
$name
public
# getFieldType( mixed $fieldType )

Returns varchar if fieldType = varchar(100) etc.

Returns varchar if fieldType = varchar(100) etc.

public
# getFieldLength( mixed $fieldType )

Returns 100 if fieldType = varchar(100) etc.

Returns 100 if fieldType = varchar(100) etc.

public
# getFieldWidth( mixed $fieldType, mixed $fieldLength )

Try and calculate the width of the widget to display the field in

Try and calculate the width of the widget to display the field in

public
# getFieldWidget( mixed $fieldType, mixed $fieldLength )

Try and calculate the best widget to display the field in. Define the widget in json

Try and calculate the best widget to display the field in. Define the widget in json

public
# getDisplayType( mixed $colRec, mixed $types )
crud API documentation generated by ApiGen 2.8.0