IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
47 | 47 | */ |
48 | 48 | public $has_children; |
49 | 49 | |
| 50 | /** |
| 51 | * Total children of current element. |
| 52 | * |
| 53 | * @since 4.7.2 |
| 54 | * @var bool |
| 55 | */ |
| 56 | public $total_children; |
| 57 | |
50 | 58 | /** |
51 | 59 | * Starts the list before the elements are added. |
52 | 60 | * |
… |
… |
|
142 | 150 | $args[0]['has_children'] = $this->has_children; // Back-compat. |
143 | 151 | } |
144 | 152 | |
| 153 | $this->total_children = 0; |
| 154 | if ( $this->has_children ) { |
| 155 | $this->total_children = count( $children_elements[ $id ] ); |
| 156 | } |
| 157 | |
145 | 158 | $cb_args = array_merge( array(&$output, $element, $depth), $args); |
146 | 159 | call_user_func_array(array($this, 'start_el'), $cb_args); |
147 | 160 | |
… |
… |
|
404 | 417 | /** |
405 | 418 | * Unset all the children for a given top level element. |
406 | 419 | * |
407 | | * @since 2.7.0 |
408 | | * |
409 | 420 | * @param object $e |
410 | 421 | * @param array $children_elements |
411 | 422 | */ |