Yoast\WP\SEO\Repositories
Indexable_Repository::__construct
Returns the instance of this class constructed through the ORM Wrapper.
Метод класса: Indexable_Repository{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Indexable_Repository = new Indexable_Repository(); $Indexable_Repository->__construct( $builder, $current_page, $logger, $hierarchy_repository, $wpdb, $version_manager );
- $builder(Indexable_Builder) (обязательный)
- The indexable builder.
- $current_page(Current_Page_Helper) (обязательный)
- The current post helper.
- $logger(Logger) (обязательный)
- The logger.
- $hierarchy_repository(Indexable_Hierarchy_Repository) (обязательный)
- The hierarchy repository.
- $wpdb(wpdb) (обязательный)
- The WordPress database instance.
- $version_manager(Indexable_Version_Manager) (обязательный)
- The indexable version manager.
Код Indexable_Repository::__construct() Indexable Repository:: construct Yoast 27.3
public function __construct(
Indexable_Builder $builder,
Current_Page_Helper $current_page,
Logger $logger,
Indexable_Hierarchy_Repository $hierarchy_repository,
wpdb $wpdb,
Indexable_Version_Manager $version_manager
) {
$this->builder = $builder;
$this->current_page = $current_page;
$this->logger = $logger;
$this->hierarchy_repository = $hierarchy_repository;
$this->wpdb = $wpdb;
$this->version_manager = $version_manager;
}