\Pivot\Admin\BuildersBuilder

Builder class

Summary

Methods
Properties
Constants
buildSelect()
makeTable()
getProcessedContents()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

buildSelect()

buildSelect(array  $kva, string  $name = null, string  $selectedValue = null, boolean  $multiple = false) : string

Builds a select box from supplied data

Parameters

array $kva

Key => Value array

string $name

Name of the select box

string $selectedValue

Value (if present) to select

boolean $multiple

Display a multiple-select box

Returns

string —

HTML

makeTable()

makeTable(array  $data, string  $style = null, boolean  $pk = false, string  $table = false, array  $restrictFields = array(), array  $changeHeaders = array(), boolean  $readOnly = false) : string

Builds a table from supplied data

Parameters

array $data

[[row],[row]]

string $style

Style to add to the table

boolean $pk

The Primary Key of the data

string $table

name of the submitted value-array

array $restrictFields

Fields to not allow editing

array $changeHeaders

Headers to display over key

boolean $readOnly

Make a read-only table

Returns

string —

HTML

getProcessedContents()

getProcessedContents(string  $file) : string

Returns the php-processed contents of a file

Parameters

string $file

File Path

Returns

string