ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilContainerBaseXmlParser Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilContainerBaseXmlParser:
+ Collaboration diagram for ilContainerBaseXmlParser:

Protected Member Functions

 trimAndStripAttribs (array $attribs)
 
 trimAndStrip (string $input)
 
- Protected Member Functions inherited from ilSaxParser
 openXMLFile ()
 
 handleError (string $message)
 
 setThrowException (bool $throw_exception)
 

Additional Inherited Members

- Public Member Functions inherited from ilSaxParser
 __construct (?string $path_to_file='', ?bool $throw_exception=false)
 
 setXMLContent (string $a_xml_content)
 
 getXMLContent ()
 
 getInputType ()
 
 startParsing ()
 stores xml data in array More...
 
 createParser ()
 
 setHandlers ($a_xml_parser)
 
 parse ($a_xml_parser, $a_fp=null)
 
- Data Fields inherited from ilSaxParser
string $xml_file
 
bool $throw_exception = false
 
- Protected Attributes inherited from ilSaxParser
ilLanguage $lng = null
 

Detailed Description

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

Definition at line 19 of file class.ilContainerBaseXmlParser.php.

Member Function Documentation

◆ trimAndStrip()

ilContainerBaseXmlParser::trimAndStrip ( string  $input)
protected

Definition at line 30 of file class.ilContainerBaseXmlParser.php.

References ilUtil\stripSlashes().

Referenced by ilFolderXmlParser\handlerEndTag(), ilCategoryXmlParser\handlerEndTag(), ilContainerReferenceXmlParser\handlerEndTag(), ilCategoryImportParser\handlerEndTag(), and trimAndStripAttribs().

30  : string
31  {
32  return ilUtil::stripSlashes(trim($input));
33  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ trimAndStripAttribs()

ilContainerBaseXmlParser::trimAndStripAttribs ( array  $attribs)
protected

Definition at line 21 of file class.ilContainerBaseXmlParser.php.

References trimAndStrip().

Referenced by ilContainerReferenceXmlParser\handlerBeginTag(), ilCategoryXmlParser\handlerBeginTag(), and ilCategoryImportParser\handlerBeginTag().

21  : array
22  {
23  $ret = [];
24  foreach ($attribs as $k => $v) {
25  $ret[$k] = $this->trimAndStrip((string) $v);
26  }
27  return $ret;
28  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: