mapsCtrl
extends jController
in package
Lizmap administration.
Tags
Table of Contents
Properties
- $pluginParams : mixed
- $lizmapClientPrefix : mixed
- $selectedMenuItem : mixed
Methods
- createSection() : jResponseRedirect
- Creation of a new section.
- editSection() : jResponseHtml|jResponseRedirect
- Display the form to create/modify a Section.
- index() : jResponseHtml
- Display the list of repositories and maps.
- modifySection() : jResponseRedirect
- Modification of a repository.
- removeCache() : jResponseRedirect
- Empty a map service cache.
- removeLayerCache() : jResponseRedirect
- Empty a map service cache.
- removeSection() : jResponseRedirect
- Remove a section.
- saveSection() : jResponseRedirect
- Save the data for one section.
- validateSection() : jResponseRedirect
- Save the data for one section.
- getLabel() : string
- Get label for a given subject corresponding to passed lablekey.
- populateRepositoryRightsFormControl() : object
- Add checkboxes controls to a repository form for each lizmap subject.
- saveRepositoryRightsFromRequest() : mixed
- Save rights for a repository.
Properties
$pluginParams
public
mixed
$pluginParams
= array('*' => array('jacl2.rights.and' => array('lizmap.admin.access', 'lizmap.admin.repositories.view')), 'createSection' => array('jacl2.rights' => 'lizmap.admin.repositories.create'), 'modifySection' => array('jacl2.right' => 'lizmap.admin.repositories.update'), 'editSection' => array('jacl2.rights.or' => array('lizmap.admin.repositories.create', 'lizmap.admin.repositories.update')), 'saveSection' => array('jacl2.rights.or' => array('lizmap.admin.repositories.create', 'lizmap.admin.repositories.update')), 'validateSection' => array('jacl2.rights.or' => array('lizmap.admin.repositories.create', 'lizmap.admin.repositories.update')), 'removeSection' => array('jacl2.right' => 'lizmap.admin.repositories.delete'), 'removeCache' => array('jacl2.right' => 'lizmap.admin.repositories.delete'), 'removeLayerCache' => array('jacl2.right' => 'lizmap.admin.repositories.delete'))
$lizmapClientPrefix
protected
mixed
$lizmapClientPrefix
= 'lizmap.repositories|lizmap.tools'
$selectedMenuItem
protected
mixed
$selectedMenuItem
= 'lizmap_maps'
Methods
createSection()
Creation of a new section.
public
createSection() : jResponseRedirect
Return values
jResponseRedirect —to the form display action
editSection()
Display the form to create/modify a Section.
public
editSection() : jResponseHtml|jResponseRedirect
Tags
Return values
jResponseHtml|jResponseRedirect —the form
index()
Display the list of repositories and maps.
public
index() : jResponseHtml
Return values
jResponseHtmlmodifySection()
Modification of a repository.
public
modifySection() : jResponseRedirect
Return values
jResponseRedirect —to the form display action
removeCache()
Empty a map service cache.
public
removeCache() : jResponseRedirect
Tags
Return values
jResponseRedirect —Redirection to the index
removeLayerCache()
Empty a map service cache.
public
removeLayerCache() : jResponseRedirect
Tags
Return values
jResponseRedirect —Redirection to the index
removeSection()
Remove a section.
public
removeSection() : jResponseRedirect
Return values
jResponseRedirect —to the index
saveSection()
Save the data for one section.
public
saveSection() : jResponseRedirect
Return values
jResponseRedirect —to the index
validateSection()
Save the data for one section.
public
validateSection() : jResponseRedirect
Return values
jResponseRedirect —to the index
getLabel()
Get label for a given subject corresponding to passed lablekey.
protected
getLabel(string $id, string $labelKey) : string
Parameters
- $id : string
-
Id of the subject
- $labelKey : string
-
Label key of the subject
Return values
string —label if found, else key
populateRepositoryRightsFormControl()
Add checkboxes controls to a repository form for each lizmap subject.
protected
populateRepositoryRightsFormControl(object $form[, null|string $repository = null ][, string $load = 'db' ]) : object
Used to manage rights for each subject and for each group of each repositories.
Parameters
- $form : object
-
jform object concerned
- $repository : null|string = null
-
repository key
- $load : string = 'db'
-
if db, load data from jacl2 database and set form control data
Return values
object —modified form
saveRepositoryRightsFromRequest()
Save rights for a repository.
protected
saveRepositoryRightsFromRequest(object $form, string $repository) : mixed
Used to save rights for each subject and for each group of one repository.
Parameters
- $form : object
-
jform object concerned
- $repository : string
-
repository key