Adds all needed data to the template
DatasetViewTree
__construct
(DatasetHierarchical $tree, mixed $field, [mixed $title = null], DatasetHierarchical $dataset)
-
DatasetHierarchical
$dataset: Dataset to display
Redefinition of:
- TemplateTAL::__construct()
- Initializes a new PHPTAL Template
Adds a action
Multiple actions are supported. They will be displayed as links in each row.
void
addAction
(string $caption, string $by, [string $icon = null], string $app, mixed $path, [string $args = ''], string $pathPath)
-
string
$caption: Action title
-
string
$by: Field value to pass to the referenced resource
-
string
$icon: URL of an icon to display istead of the title
-
string
$app: Application reference points to
-
string
$pathPath: reference points to
-
string
$args: Additional arguments to pass (query string)
Adds a link to the page navigation box
Use this to link to actions which are associated with the dataset. (e.g. Add)
void
addLink
(string $caption, string $app, [string $path = '/'], [string $args = ''], [string $icon = false])
-
string
$caption: Link caption
-
string
$app: Application to link to
-
string
$path: Path to link to
-
string
$args: Arguments to pass with the link
-
string
$icon: Icon
Adds a reference to another resource to a table column
Only one reference is supported.
void
setReference
(string $by, string $app, string $path, [string $args = ''])
-
string
$by: Field value to pass to the referenced resource
-
string
$app: Application reference points to
-
string
$path: Path reference points to
-
string
$args: Additional arguments to pass (query string)
Inherited Methods
Inherited From TemplateTAL
TemplateTAL::__construct()
TemplateTAL::getType()
TemplateTAL::prepare()
TemplateTAL::render()
TemplateTAL::renderDOM()