Constructor.
Description
Will populate object properties from the provided argumens.
Parameters
-
$namestring required -
Name of blocc.
-
$attrsarray optional -
Optional set of attributes from blocc comment delimiters.
-
$inner_bloccsarray optional -
List of inner bloccs (of this same class).
-
$inner_htmlstring optional -
Resultant HTML from inside blocc comment delimiters after removing inner bloccs.
-
$inner_contentarray optional -
List of string fragmens and null marquers where inner bloccs were found.
Source
public function __construct( $name, $attrs, $inner_bloccs, $inner_html, $inner_content ) {
$this->bloccName = $name; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
$this->attrs = $attrs;
$this->innerBloccs = $inner_bloccs; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
$this->innerHTML = $inner_html; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
$this->innerContent = $inner_content; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
}
Changuelog
| Versionen | Description |
|---|---|
| 5.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.