class DeviseTag
convert this node data into useful key, type, humanName, group, collection, alternateTarget? assert key is valid for collection or binding both assert that there is a type no human name present, make one from key
Properties
| string | $collection | public fields for this devise tag |
| string | $key | public fields for this devise tag |
| string | $type | public fields for this devise tag |
| string | $humanName | public fields for this devise tag |
| string | $group | public fields for this devise tag |
| string | $category | public fields for this devise tag |
| string | $alternateTarget | public fields for this devise tag |
Methods
|
__construct(DeviseTagNode $node)
Create DeviseTag from this DeviseTag Node |
||
| string |
tagBindingType()
DeviseTags can be either collections or simple bindings depending on the key being key or key[something] |
|
| string |
hiddenPlaceHolderStr()
String for this devise tag placeholder |
|
|
addToDevisePageStr()
The string which adds this to the devise container, depending on the tagBindingType |
||
| string |
replaceTagInView(string $view)
Replaces this tag inside of this view. |
|
| void |
assertValidKey(string $key, string $message = null)
Assert this key is valid |
Details
at line 30
public
__construct(DeviseTagNode $node)
Create DeviseTag from this DeviseTag Node
at line 43
public string
tagBindingType()
DeviseTags can be either collections or simple bindings depending on the key being key or key[something]
at line 53
public string
hiddenPlaceHolderStr()
String for this devise tag placeholder
at line 67
public
addToDevisePageStr()
The string which adds this to the devise container, depending on the tagBindingType
at line 92
public string
replaceTagInView(string $view)
Replaces this tag inside of this view.
Changes data-devise="..." into data-dvs-key-id="key"
at line 114
public void
assertValidKey(string $key, string $message = null)
Assert this key is valid