contenido\includes\functions.rights.php
Project:
Contenido Content Management System
Description: Defines the "rights" related functions
Requirements:
- Author
- Martin Horwath
- Con_php_req
- 5.0
- Copyright
- dayside.net
- Link
- http://www.dayside.net
- Package
- Contenido Backend includes
- Since
- file available since contenido release <= 4.6 {@internal created 2004-11-25 modified 2008-06-26, Frederic Schneider, add security fix $Id: functions.rights.php 802 2008-09-09 15:54:38Z timo.trautmann $: }}
- Version
- 1.0.0
Functions

checkLangInClients(array $aClients, integer $iLang, array $aCfg, object $oDb) : boolean
Function checks if a language is associated with a given list of clients Fixed CON-200
Parameters
Returns
Name | Type | Description |
---|---|---|
$aClients | array |
|
$iLang | integer |
|
$aCfg | array |
|
$oDb | object |
|
Type | Description |
---|---|
boolean | - status (if language id corresponds to list of clients true otherwise false) |

copyRightsForElement(string $area, int $iditem, int $newiditem, int $idlang = false) : void
Duplicate rights for any element
Parameters
Details
Name | Type | Description |
---|---|---|
$area | string | main area name |
$iditem | int | ID of element to copy |
$newiditem | int | ID of the new element |
$idlang | int | ID of lang parameter |
- Author
- Martin Horwath
- Copyright
- dayside.net

createRightsForElement(string $area, int $iditem, int $idlang = false) : void
Create rights for any element
Parameters
Details
Name | Type | Description |
---|---|---|
$area | string | main area name |
$iditem | int | ID of new element |
$idlang | int | ID of lang parameter |
- Author
- Martin Horwath
- Copyright
- dayside.net

deleteRightsForElement(string $area, int $iditem, int $idlang = false) : void
Delete rights for any element
Parameters
Details
Name | Type | Description |
---|---|---|
$area | string | main area name |
$iditem | int | ID of new element |
$idlang | int | ID of lang parameter |
- Author
- Martin Horwath
- Copyright
- dayside.net