|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilUserXMLWriter:
Collaboration diagram for ilUserXMLWriter:Public Member Functions | |
| __construct () | |
| setAttachRoles (bool $value) | |
| setObjects (array $users) | |
| start () | |
| getXML () | |
| __buildHeader () | |
| __buildFooter () | |
| __handleUser (array $row) | |
| __addElementMulti (string $tagname, array $value, ?array $attrs=null, ?string $settingsname=null, bool $requiredTag=false) | |
| __addElement (string $tagname, ?string $value, array $attrs=null, ?string $settingsname=null, bool $requiredTag=false) | |
| setSettings (array $settings) | |
| setAttachPreferences (bool $attachPrefs) | |
| if set to true, all preferences of a user will be set More... | |
Public Member Functions inherited from ilXmlWriter | |
| __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... | |
Static Public Member Functions | |
| static | getExportablePreferences () |
| return exportable preference keys as found in db More... | |
| static | isPrefExportable (string $key) |
| returns wether a key from db is exportable or not More... | |
Data Fields | |
| ILIAS | $ilias |
| array | $users |
| int | $user_id = 0 |
| bool | $attachRoles = false |
| bool | $attachPreferences = false |
Private Member Functions | |
| __handlePreferences (array $prefs, array $row) | |
| canExport (string $tagname, ?string $settingsname=null) | |
| getPictureValue (int $usr_id) | |
| return array with base-encoded picture data as key value, encoding type as encoding, and image type as key type. More... | |
Private Attributes | |
| array | $settings = [] |
| fields to be exported More... | |
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 writer class Class to simplify manual writing of xml documents. It only supports writing xml sequentially, because the xml document is saved in a string with no additional structure information. The author is responsible for well-formedness and validity of the xml document.
Definition at line 28 of file class.ilUserXMLWriter.php.
| ilUserXMLWriter::__construct | ( | ) |
Definition at line 42 of file class.ilUserXMLWriter.php.
References $DIC, $ilias, $ilUser, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:| ilUserXMLWriter::__addElement | ( | string | $tagname, |
| ?string | $value, | ||
| array | $attrs = null, |
||
| ?string | $settingsname = null, |
||
| bool | $requiredTag = false |
||
| ) |
Definition at line 290 of file class.ilUserXMLWriter.php.
Referenced by __addElementMulti(), and __handleUser().
Here is the caller graph for this function:| ilUserXMLWriter::__addElementMulti | ( | string | $tagname, |
| array | $value, | ||
| ?array | $attrs = null, |
||
| ?string | $settingsname = null, |
||
| bool | $requiredTag = false |
||
| ) |
Definition at line 276 of file class.ilUserXMLWriter.php.
References __addElement().
Referenced by __handleUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserXMLWriter::__buildFooter | ( | ) |
Definition at line 102 of file class.ilUserXMLWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserXMLWriter::__buildHeader | ( | ) |
Definition at line 93 of file class.ilUserXMLWriter.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), ilXmlWriter\xmlSetGenCmt(), and ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 257 of file class.ilUserXMLWriter.php.
References ILIAS\LTI\ToolProvider\$key, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by __handleUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserXMLWriter::__handleUser | ( | array | $row | ) |
Definition at line 107 of file class.ilUserXMLWriter.php.
References $DIC, $ilDB, $lng, $query, $type, __addElement(), __addElementMulti(), __handlePreferences(), ilObjUser\_getPreferences(), canExport(), ilDBConstants\FETCHMODE_ASSOC, ilObjUserFolder\getExportSettings(), getPictureValue(), IL_INST_ID, ROLE_FOLDER_ID, setSettings(), ILIAS\Repository\settings(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 304 of file class.ilUserXMLWriter.php.
Referenced by __handleUser().
Here is the caller graph for this function:
|
static |
return exportable preference keys as found in db
Definition at line 372 of file class.ilUserXMLWriter.php.
|
private |
return array with base-encoded picture data as key value, encoding type as encoding, and image type as key type.
Definition at line 322 of file class.ilUserXMLWriter.php.
References $DIC, $ilDB, ilDBConstants\FETCHMODE_ASSOC, and ilFileUtils\getWebspaceDir().
Referenced by __handleUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserXMLWriter::getXML | ( | ) |
Definition at line 87 of file class.ilUserXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
Here is the call graph for this function:
|
static |
returns wether a key from db is exportable or not
Definition at line 413 of file class.ilUserXMLWriter.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by ilUserImportParser\importEndTag(), and ilUserImportParser\verifyPref().
Here is the caller graph for this function:| ilUserXMLWriter::setAttachPreferences | ( | bool | $attachPrefs | ) |
if set to true, all preferences of a user will be set
Definition at line 364 of file class.ilUserXMLWriter.php.
| ilUserXMLWriter::setAttachRoles | ( | bool | $value | ) |
Definition at line 56 of file class.ilUserXMLWriter.php.
| ilUserXMLWriter::setObjects | ( | array | $users | ) |
Definition at line 61 of file class.ilUserXMLWriter.php.
References $users.
| ilUserXMLWriter::setSettings | ( | array | $settings | ) |
Definition at line 313 of file class.ilUserXMLWriter.php.
References ILIAS\LTI\ToolProvider\$settings, and ILIAS\Repository\settings().
Referenced by __handleUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserXMLWriter::start | ( | ) |
Definition at line 67 of file class.ilUserXMLWriter.php.
References __buildFooter(), __buildHeader(), __handleUser(), and ilUserDefinedFields\_getInstance().
Here is the call graph for this function:| bool ilUserXMLWriter::$attachPreferences = false |
Definition at line 34 of file class.ilUserXMLWriter.php.
| bool ilUserXMLWriter::$attachRoles = false |
Definition at line 33 of file class.ilUserXMLWriter.php.
| ILIAS ilUserXMLWriter::$ilias |
Definition at line 30 of file class.ilUserXMLWriter.php.
Referenced by __construct().
|
private |
fields to be exported
Definition at line 40 of file class.ilUserXMLWriter.php.
| int ilUserXMLWriter::$user_id = 0 |
Definition at line 32 of file class.ilUserXMLWriter.php.
| array ilUserXMLWriter::$users |
Definition at line 31 of file class.ilUserXMLWriter.php.
Referenced by setObjects().