Yoast\WP\SEO\Presenters\Admin
Badge_Presenter::__construct()
Badge_Presenter constructor.
Метод класса: Badge_Presenter{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Badge_Presenter = new Badge_Presenter(); $Badge_Presenter->__construct( $id, $link, $group, $badge_group_names );
- $id(строка) (обязательный)
- Id of the badge.
- $link(строка)
- Optional link of the badge.
По умолчанию: '' - $group(строка)
- Optional group which the badge belongs to.
По умолчанию: '' - $badge_group_names(Badge_Group_Names|null)
- Optional object storing the group names.
По умолчанию: null
Код Badge_Presenter::__construct() Badge Presenter:: construct Yoast 22.3
public function __construct( $id, $link = '', $group = '', $badge_group_names = null ) { $this->id = $id; $this->link = $link; $this->group = $group; if ( ! $badge_group_names instanceof Badge_Group_Names ) { $badge_group_names = new Badge_Group_Names(); } $this->badge_group_names = $badge_group_names; }