Méthode |
Description |
|
__construct ( ) |
Constructor. |
|
addCustomCss ( string $name ) : void |
Adds a custom css file to be loaded. |
|
addDataTable ( string $label, array $data ) |
Adds an entry to the list of tables displayed in the template. |
|
addDataTableCallback ( string $label, callable $callback ) |
Lazily adds an entry to the list of tables displayed in the table. |
|
addEditor ( string $identifier, string $resolver ) |
Adds an editor resolver, identified by a string
name, and that may be a string path, or a callable
resolver. If the callable returns a string, it will
be set as the file reference's href attribute. |
|
addResourcePath ( string $path ) : void |
Adds a path to the list of paths to be searched for
resources. |
|
getApplicationPaths ( ) : array |
Return the application paths. |
|
getDataTables ( string | null $label = null ) : array[] | callable |
Returns all the extra data tables registered with this handler. |
|
getEditorAjax ( string $filePath, integer $line ) : boolean |
Given a boolean if the editor link should
act as an Ajax request. The editor must be a
valid callable function/closure |
|
getEditorHref ( string $filePath, integer $line ) : string | boolean |
Given a string file path, and an integer file line,
executes the editor resolver and returns, if available,
a string that may be used as the href property for that
file reference. |
|
getPageTitle ( ) : string |
|
|
getResourcePaths ( ) : array |
|
|
getResourcesPath ( ) : string |
|
|
handle ( ) : integer | null |
|
|
handleUnconditionally ( boolean | null $value = null ) : boolean | null |
Allows to disable all attempts to dynamically decide whether to
handle or return prematurely. |
|
setApplicationPaths ( array $applicationPaths ) |
Set the application paths. |
|
setEditor ( string | callable $editor ) |
Set the editor to use to open referenced files, by a string
identifier, or a callable that will be executed for every
file reference, with a $file and $line argument, and should
return a string. |
|
setPageTitle ( string $title ) : void |
|
|
setResourcesPath ( string $resourcesPath ) : void |
|
|