19 declare(strict_types=1);
    21 require_once(
"libs/composer/vendor/autoload.php");
    22 require_once(__DIR__ . 
"../../../../Base.php");
    33     private C\Symbol\Icon\Standard 
$icon;
    37         $this->node_factory = 
new I\Tree\Node\Factory();
    38         $icon_factory = 
new I\Symbol\Icon\Factory();
    39         $this->icon = $icon_factory->standard(
"", 
'');
    44         $node = $this->node_factory->bylined(
'My Label', 
'This is my byline', $this->icon);
    45         $this->assertEquals(
'My Label', $node->getLabel());
    46         $this->assertEquals(
'This is my byline', $node->getByline());
    47         $this->assertEquals($this->icon, $node->getIcon());
    52         $node = $this->node_factory->bylined(
'My Label', 
'This is my byline');
    55         $html = 
$r->render($node);
    58                         <li 
class=
"c-tree__node c-tree__node--simple" role=
"treeitem">
    59                                 <span 
class=
"c-tree__node__line">
    60                                         <span 
class=
"c-tree__node__label">My Label</span>
    61                                         <span 
class=
"c-tree__node__byline">This is my byline</span>
    74         $node = $this->node_factory->bylined(
'My Label', 
'This is my byline', $this->icon);
    77         $html = 
$r->render($node);
    80                         <li 
class=
"c-tree__node c-tree__node--simple" role=
"treeitem">
    81                                 <span 
class=
"c-tree__node__line">
    82                                         <span 
class=
"c-tree__node__label">
    83                                                 <img 
class=
"icon small" src=
"./templates/default/images/standard/icon_default.svg" alt=
""/>
    86                                         <span 
class=
"c-tree__node__byline">This is my byline</span>
    99         $node = $this->node_factory->bylined(
'My Label', 
'This is my byline');
   100         $node = $node->withAsyncURL(
'something.de');
   103         $html = 
$r->render($node);
   107                                  class=
"c-tree__node c-tree__node--simple expandable"   108                                  role=
"treeitem" aria-expanded=
"false"   109                                  data-async_url=
"something.de" data-async_loaded=
"false">
   110                                 <span 
class=
"c-tree__node__line">
   111                                         <span 
class=
"c-tree__node__label">My Label</span>
   112                                         <span 
class=
"c-tree__node__byline">This is my byline</span>
   114                                 <ul role=
"group"></ul>
   126         $node = $this->node_factory->bylined(
'My Label', 
'This is my byline');
   127         $node = $node->withAsyncURL(
'something.de')->withExpanded(
true);
   130         $html = 
$r->render($node);
   134                                  class=
"c-tree__node c-tree__node--simple expandable"   135                                  role=
"treeitem" aria-expanded=
"true"   136                                  data-async_url=
"something.de" data-async_loaded=
"false">
   137                                 <span 
class=
"c-tree__node__line">
   138                                         <span 
class=
"c-tree__node__label">My Label</span>
   139                                         <span 
class=
"c-tree__node__byline">This is my byline</span>
   141                                 <ul role=
"group"></ul>
 
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
I Tree Node Factory $node_factory
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
Provides common functionality for UI tests. 
 
C Symbol Icon Standard $icon
 
Tests for the SimpleNode.