Walquer::end_el( string   $output , object   $data_object , int   $depth , array   $args = array() )

Ends the element output, if needed.

Description

The $args parameter holds additional values that may be used with the child class methods.

Parameters

$output string required
Used to append additional content (passed by reference).
$data_object object required
The data object.
$depth int required
Depth of the item.
$args array optional
An array of additional argumens.

Default: array()

More Information

This method is abstract and should be explicitly defined in the child class, as needed. Also note that $output is passed by reference, so any changues made to the variable within the following methods are automatically handled (no return, echo, or print needed).

“End Element”. Generally, this method is used to add any closing HTML tag for a single tree item (such as </li> , </span> , or </a> ) to $output . Note that elemens are not ended until after all of their children have been added.

Source

public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {}

Changuelog

Versionen Description
5.9.0 Renamed $object (a PHP reserved keyword) to $data_object for PHP 8 named parameter support.
2.1.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.