ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct () | |
setRoles (array $a_roles) | |
Set roles Format is: array(role_id => array(role_folder_id)) More... | |
getRoles () | |
addRole (int $a_role_id, int $a_rolf_id) | |
setMode (int $a_mode) | |
getMode () | |
writeHeader () | |
Write xml header. More... | |
write () | |
Write xml presentation of chosen roles. More... | |
![]() | |
__construct (string $version="1.0", string $outEnc="utf-8", string $inEnc="utf-8") | |
xmlSetDtdDef (string $dtdDef) | |
Sets dtd definition. More... | |
xmlSetGenCmt (string $genCmt) | |
Sets generated comment. More... | |
xmlFormatData (string $data) | |
Indents text for better reading. More... | |
xmlHeader () | |
Writes xml header. More... | |
xmlStartTag (string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true) | |
Writes a starttag. More... | |
xmlEndTag (string $tag) | |
Writes an endtag. More... | |
xmlData (string $data, bool $encode=true, bool $escape=true) | |
Writes data. More... | |
xmlElement (string $tag, $attrs=null, $data=null, $encode=true, $escape=true) | |
Writes a basic element (no children, just textual content) More... | |
xmlDumpFile (string $file, bool $format=true) | |
Dumps xml document from memory into a file. More... | |
xmlDumpMem (bool $format=true) | |
Returns xml document from memory. More... | |
appendXML (string $a_str) | |
append xml string to document More... | |
xmlClear () | |
clears xmlStr More... | |
Data Fields | |
const | MODE_DTPL = 1 |
Protected Attributes | |
ilRbacReview | $rbacreview |
Private Member Functions | |
writeRole (int $a_role_id, int $a_rolf) | |
Write xml presentation of one role. More... | |
initRbacOperations () | |
Cache rbac operations. More... | |
Private Attributes | |
array | $roles = array() |
array | $operations = array() |
int | $mode = 0 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Xml export of roles and role templates
Definition at line 25 of file class.ilRoleXmlExport.php.
ilRoleXmlExport::__construct | ( | ) |
Definition at line 35 of file class.ilRoleXmlExport.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and initRbacOperations().
ilRoleXmlExport::addRole | ( | int | $a_role_id, |
int | $a_rolf_id | ||
) |
Definition at line 59 of file class.ilRoleXmlExport.php.
ilRoleXmlExport::getMode | ( | ) |
Definition at line 69 of file class.ilRoleXmlExport.php.
References $mode.
Referenced by write().
ilRoleXmlExport::getRoles | ( | ) |
Definition at line 54 of file class.ilRoleXmlExport.php.
References $roles.
Referenced by write().
|
private |
Cache rbac operations.
Definition at line 135 of file class.ilRoleXmlExport.php.
Referenced by __construct().
ilRoleXmlExport::setMode | ( | int | $a_mode | ) |
Definition at line 64 of file class.ilRoleXmlExport.php.
ilRoleXmlExport::setRoles | ( | array | $a_roles | ) |
Set roles Format is: array(role_id => array(role_folder_id))
Definition at line 49 of file class.ilRoleXmlExport.php.
ilRoleXmlExport::write | ( | ) |
Write xml presentation of chosen roles.
Definition at line 87 of file class.ilRoleXmlExport.php.
References getMode(), getRoles(), writeRole(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilRoleXmlExport::writeHeader | ( | ) |
Write xml header.
Definition at line 77 of file class.ilRoleXmlExport.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
|
private |
Write xml presentation of one role.
Definition at line 107 of file class.ilRoleXmlExport.php.
References $attributes, $GLOBALS, $operations, ilObject\_lookupDescription(), ilObject\_lookupTitle(), ilObject\_lookupType(), IL_INST_ID, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by write().
|
private |
Definition at line 31 of file class.ilRoleXmlExport.php.
Referenced by getMode().
|
private |
Definition at line 30 of file class.ilRoleXmlExport.php.
Referenced by writeRole().
|
protected |
Definition at line 33 of file class.ilRoleXmlExport.php.
|
private |
Definition at line 29 of file class.ilRoleXmlExport.php.
Referenced by getRoles().
const ilRoleXmlExport::MODE_DTPL = 1 |
Definition at line 27 of file class.ilRoleXmlExport.php.
Referenced by ilDidacticTemplateLocalRoleAction\toXml(), and ilDidacticTemplateLocalPolicyAction\toXml().