Jelix 1.8.13

groupsCtrl extends jController
in package

class base for controllers.

Tags
subpackage

jacl2db_admin

author

Laurent Jouanneau

contributor

Julien Issler, Olivier Demah, Adrien Lagroy de Croutte

copyright

2020 Adrien Lagroy de Croutte

copyright

2008-2022 Laurent Jouanneau

copyright

2009 Julien Issler

copyright

2010 Olivier Demah

see
http://jelix.org
licence

http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public Licence, see LICENCE file

Table of Contents

$pluginParams  : array<string|int, mixed>
parameters for plugins of the coordinator.
$sensitiveParameters  : array<string|int, string>
sensitive parameters.
$request  : jRequest
the request object.
__construct()  : mixed
allrights()  : jResponseHtml
Page to see rights of all groups
autocomplete()  : mixed
changename()  : jResponseJson
Change the name of a group
create()  : jResponseHtml
Form to create group
delgroup()  : jResponseJson
delete a group
groupsList()  : jResponseJson
list of groups
index()  : jResponseJson
Page to list all groups
newgroup()  : jResponseRedirect
Create a group
rightres()  : jResponseHtml
Show rights on ressources of a group
rights()  : jResponseHtml
Page to change rights of a group
saverightres()  : jResponseRedirect
save rights on ressources of a group.
saverights()  : jResponseRedirect
save rights of a group.
setdefault()  : jResponseJson
Set or unset a group as a default group
boolParam()  : bool
same as param(), but convert the value to a boolean value. If it isn't a numerical value, return null.
checkException()  : mixed
floatParam()  : float
same as param(), but convert the value to a float value. If it isn't a numerical value, return null.
getExceptionMessage()  : mixed
getFileResponse()  : jResponseBinary|jResponseHtml
Return the given file as a response.
getResponse()  : jResponse|jResponseHtml|jResponseJson|jResponseRedirect
get a response object.
intParam()  : int
same as param(), but convert the value to an integer value. If it isn't a numerical value, return null.
param()  : mixed
Gets the value of a request parameter. If not defined, gets its default value.
params()  : array<string|int, mixed>
redirect()  : jResponseRedirect
get a jReponseRedirect object
redirectToUrl()  : jResponseRedirectUrl
get a jReponseRedirectUrl object

Properties

$pluginParams

parameters for plugins of the coordinator.

public array<string|int, mixed> $pluginParams = array('index' => array('jacl2.right' => 'acl.group.view'), 'groupsList' => array('jacl2.right' => 'acl.group.view'), 'autocomplete' => array('jacl2.right' => 'acl.group.view'), 'rights' => array('jacl2.rights.and' => array('acl.group.view')), 'saverights' => array('jacl2.rights.and' => array('acl.group.view', 'acl.group.modify')), 'rightres' => array('jacl2.rights.and' => array('acl.group.view')), 'saverightres' => array('jacl2.rights.and' => array('acl.group.view', 'acl.group.modify')), 'newgroup' => array('jacl2.rights.and' => array('acl.group.view', 'acl.group.create')), 'create' => array('jacl2.rights.and' => array('acl.group.view', 'acl.group.create')), 'changename' => array('jacl2.rights.and' => array('acl.group.view', 'acl.group.modify')), 'delgroup' => array('jacl2.rights.and' => array('acl.group.view', 'acl.group.delete')), 'setdefault' => array('jacl2.rights.and' => array('acl.group.view', 'acl.group.modify')))

this array should contains all parameters needed by installed plugins for each action, see the documentation of each plugins to know this parameters. keys : name of an action or * for parameters to all action values : array that contains all plugin parameters

Tags

$sensitiveParameters

sensitive parameters.

public array<string|int, string> $sensitiveParameters = array()

List of names of parameters that can have sensitive values like password etc. This list is used by the logger for example, to replace values by a dummy value. See also sensitiveParameters into error_handling section of the configuration.

Tags
since
1.6.16

Methods

autocomplete()

public autocomplete() : mixed
Tags
Return values
mixed

boolParam()

same as param(), but convert the value to a boolean value. If it isn't a numerical value, return null.

protected boolParam(string $parName[, mixed $parDefaultValue = null ][, bool $useDefaultIfEmpty = false ]) : bool
Parameters
$parName : string

the name of the request parameter

$parDefaultValue : mixed = null

the default returned value if the parameter doesn't exists

$useDefaultIfEmpty : bool = false

true: says to return the default value the value is ""

Tags
Return values
bool

the request parameter value

floatParam()

same as param(), but convert the value to a float value. If it isn't a numerical value, return null.

protected floatParam(string $parName[, mixed $parDefaultValue = null ][, bool $useDefaultIfEmpty = false ]) : float
Parameters
$parName : string

the name of the request parameter

$parDefaultValue : mixed = null

the default returned value if the parameter doesn't exists

$useDefaultIfEmpty : bool = false

true: says to return the default value the value is ""

Tags
Return values
float

the request parameter value

getFileResponse()

Return the given file as a response.

protected getFileResponse(string $filename[, bool $useCache = true ]) : jResponseBinary|jResponseHtml

It reads the file content and will return it into the HTTP Response. Mimetype will be set. Can use HTTP cache optionally.

Returns a 404 response if the file does not exists.

Parameters
$filename : string

path to the file

$useCache : bool = true

true if http cache must be activated, based on the date of the file.

Tags
Return values
jResponseBinary|jResponseHtml

intParam()

same as param(), but convert the value to an integer value. If it isn't a numerical value, return null.

protected intParam(string $parName[, mixed $parDefaultValue = null ][, bool $useDefaultIfEmpty = false ]) : int
Parameters
$parName : string

the name of the request parameter

$parDefaultValue : mixed = null

the default returned value if the parameter doesn't exists

$useDefaultIfEmpty : bool = false

true: says to return the default value the value is ""

Tags
Return values
int

the request parameter value

param()

Gets the value of a request parameter. If not defined, gets its default value.

protected param(string $parName[, mixed $parDefaultValue = null ][, bool $useDefaultIfEmpty = false ]) : mixed
Parameters
$parName : string

the name of the request parameter

$parDefaultValue : mixed = null

the default returned value if the parameter doesn't exists

$useDefaultIfEmpty : bool = false

true: says to return the default value if the parameter value is ""

Tags
Return values
mixed

the request parameter value

params()

protected params() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

all request parameters

redirect()

get a jReponseRedirect object

protected redirect(string $action[, array<string|int, mixed> $parameters = [] ][, string $anchor = '' ][, bool $temporary = true ]) : jResponseRedirect
Parameters
$action : string

the action selector, like "mymodule~myctrl:mymethod"

$parameters : array<string|int, mixed> = []

parameters of the action

$anchor : string = ''

url anchor

$temporary : bool = true

temporary redirection (true) or permanent redirection (false)

Tags
Return values
jResponseRedirect

Search results