ILIAS
Release_4_2_x_branch Revision 61807
|
Xml export of roles and role templates. More...
Public Member Functions | |
__construct () | |
Constructor. | |
setRoles ($a_roles) | |
Set roles Format is: array(role_id => array(role_folder_id)) | |
getRoles () | |
Get roles. | |
addRole ($a_role_id, $a_rolf_id) | |
Add one role. | |
setMode ($a_mode) | |
getMode () | |
writeHeader () | |
Write xml header. | |
write () | |
Write xml presentation of chosen roles. | |
Public Member Functions inherited from ilXmlWriter | |
ilXmlWriter ($version="1.0", $outEnc="utf-8", $inEnc="utf-8") | |
constructor | |
_ilXmlWriter () | |
destructor public | |
xmlSetDtdDef ($dtdDef) | |
Sets dtd definition. | |
xmlSetStSheet ($stSheet) | |
Sets stylesheet. | |
xmlSetGenCmt ($genCmt) | |
Sets generated comment. | |
_xmlEscapeData ($data) | |
Escapes reserved characters. | |
xmlEncodeData ($data) | |
Encodes text from input encoding into output encoding. | |
xmlFormatData ($data) | |
Indents text for better reading. | |
xmlFormatElement ($array) | |
Callback function for xmlFormatData; do not invoke directly. | |
xmlHeader () | |
Writes xml header public. | |
xmlStartTag ($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE) | |
Writes a starttag. | |
xmlEndTag ($tag) | |
Writes an endtag. | |
xmlComment ($comment) | |
Writes a comment. | |
xmlData ($data, $encode=TRUE, $escape=TRUE) | |
Writes data. | |
xmlElement ($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE) | |
Writes a basic element (no children, just textual content) | |
xmlDumpFile ($file, $format=TRUE) | |
Dumps xml document from memory into a file. | |
xmlDumpMem ($format=TRUE) | |
Returns xml document from memory. | |
appendXML ($a_str) | |
append xml string to document | |
xmlClear () | |
clears xmlStr public |
Data Fields | |
const | MODE_DTPL = 1 |
Data Fields inherited from ilXmlWriter | |
$xmlStr | |
$version | |
$outEnc | |
$inEnc | |
$dtdDef = "" | |
$stSheet = "" | |
$genCmt = "Generated by ILIAS XmlWriter" |
Private Member Functions | |
writeRole ($a_role_id, $a_rolf) | |
Write xml presentation of one role. | |
initRbacOperations () | |
Cache rbac operations. |
Private Attributes | |
$roles = array() | |
$operations = array() | |
$mode = 0 |
Xml export of roles and role templates.
Definition at line 12 of file class.ilRoleXmlExport.php.
ilRoleXmlExport::__construct | ( | ) |
Constructor.
Definition at line 26 of file class.ilRoleXmlExport.php.
References initRbacOperations().
ilRoleXmlExport::addRole | ( | $a_role_id, | |
$a_rolf_id | |||
) |
Add one role.
int | $a_role_id | |
int | $a_rolf_id |
Definition at line 60 of file class.ilRoleXmlExport.php.
ilRoleXmlExport::getMode | ( | ) |
Definition at line 70 of file class.ilRoleXmlExport.php.
References $mode.
Referenced by write().
ilRoleXmlExport::getRoles | ( | ) |
Get roles.
Definition at line 50 of file class.ilRoleXmlExport.php.
References $roles.
Referenced by write().
|
private |
Cache rbac operations.
Definition at line 148 of file class.ilRoleXmlExport.php.
Referenced by __construct().
ilRoleXmlExport::setMode | ( | $a_mode | ) |
Definition at line 65 of file class.ilRoleXmlExport.php.
ilRoleXmlExport::setRoles | ( | $a_roles | ) |
Set roles Format is: array(role_id => array(role_folder_id))
array | $a_roles |
Definition at line 41 of file class.ilRoleXmlExport.php.
ilRoleXmlExport::write | ( | ) |
Write xml presentation of chosen roles.
Definition at line 91 of file class.ilRoleXmlExport.php.
References getMode(), getRoles(), writeRole(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilRoleXmlExport::writeHeader | ( | ) |
Write xml header.
Definition at line 79 of file class.ilRoleXmlExport.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
|
private |
Write xml presentation of one role.
int | $a_role_id | |
int | $a_rolf |
Definition at line 118 of file class.ilRoleXmlExport.php.
References $operations, ilObject\_lookupDescription(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by write().
|
private |
Definition at line 20 of file class.ilRoleXmlExport.php.
Referenced by getMode().
|
private |
Definition at line 18 of file class.ilRoleXmlExport.php.
Referenced by writeRole().
|
private |
Definition at line 17 of file class.ilRoleXmlExport.php.
Referenced by getRoles().
const ilRoleXmlExport::MODE_DTPL = 1 |
Definition at line 14 of file class.ilRoleXmlExport.php.
Referenced by ilDidacticTemplateLocalRoleAction\toXml(), and ilDidacticTemplateLocalPolicyAction\toXml().