PHP Class Nvd\Crud\Form

显示文件 Open project: engrnvd/laravel-crud-generator

Protected Properties

Property Type Description
$_name
$_value
$attributes
$helpBlock
$label
$model show help block or not
$options element type: select, input, textarea
$type model to be bound
$useOptionKeysForValues only for select element

Public Methods

Method Description
__call ( $attr, $args = null )
__get ( $property )
__set ( $property, $value )
attributes ( $value = null )
input ( $name, $type = 'text' ) only for select element
select ( $name, $options, $useOptionKeysForValues = false )
show ( )
textarea ( $name )

Protected Methods

Method Description
createElement ( $name, $type )
setValue ( )
showInput ( )
showSelect ( )
showTextarea ( )

Method Details

__call() public method

public __call ( $attr, $args = null )

__get() public method

public __get ( $property )

__set() public method

public __set ( $property, $value )

attributes() public method

public attributes ( $value = null )

createElement() protected static method

protected static createElement ( $name, $type )

input() public static method

only for select element
public static input ( $name, $type = 'text' )

select() public static method

public static select ( $name, $options, $useOptionKeysForValues = false )

setValue() protected method

protected setValue ( )

show() public method

public show ( )

showInput() protected method

protected showInput ( )

showSelect() protected method

protected showSelect ( )

showTextarea() protected method

protected showTextarea ( )

textarea() public static method

public static textarea ( $name )

Property Details

$_name protected_oe property

protected $_name

$_value protected_oe property

protected $_value

$attributes protected_oe property

protected $attributes

$helpBlock protected_oe property

protected $helpBlock

$label protected_oe property

protected $label

$model protected_oe property

show help block or not
protected $model

$options protected_oe property

element type: select, input, textarea
protected $options

$type protected_oe property

model to be bound
protected $type

$useOptionKeysForValues protected_oe property

only for select element
protected $useOptionKeysForValues