Yoast\WP\SEO\Commands
Index_Command::__construct
Generate_Indexables_Command constructor.
Метод класса: Index_Command{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Index_Command = new Index_Command(); $Index_Command->__construct( $post_indexation_action, $term_indexation_action, $post_type_archive_indexation_action, $general_indexation_action, $complete_indexation_action, $prepare_indexing_action, $post_link_indexing_action, $term_link_indexing_action, $indexable_helper );
- $post_indexation_action(Indexable_Post_Indexation_Action) (обязательный)
- The post indexation action.
- $term_indexation_action(Indexable_Term_Indexation_Action) (обязательный)
- The term indexation action.
- $post_type_archive_indexation_action(Indexable_Post_Type_Archive_Indexation_Action) (обязательный)
- The post type archive indexation action.
- $general_indexation_action(Indexable_General_Indexation_Action) (обязательный)
- The general indexation action.
- $complete_indexation_action(Indexable_Indexing_Complete_Action) (обязательный)
- The complete indexation action.
- $prepare_indexing_action(Indexing_Prepare_Action) (обязательный)
- The prepare indexing action.
- $post_link_indexing_action(Post_Link_Indexing_Action) (обязательный)
- The post link indexation action.
- $term_link_indexing_action(Term_Link_Indexing_Action) (обязательный)
- The term link indexation action.
- $indexable_helper(Indexable_Helper) (обязательный)
- The indexable helper.
Код Index_Command::__construct() Index Command:: construct Yoast 26.3
public function __construct(
Indexable_Post_Indexation_Action $post_indexation_action,
Indexable_Term_Indexation_Action $term_indexation_action,
Indexable_Post_Type_Archive_Indexation_Action $post_type_archive_indexation_action,
Indexable_General_Indexation_Action $general_indexation_action,
Indexable_Indexing_Complete_Action $complete_indexation_action,
Indexing_Prepare_Action $prepare_indexing_action,
Post_Link_Indexing_Action $post_link_indexing_action,
Term_Link_Indexing_Action $term_link_indexing_action,
Indexable_Helper $indexable_helper
) {
$this->post_indexation_action = $post_indexation_action;
$this->term_indexation_action = $term_indexation_action;
$this->post_type_archive_indexation_action = $post_type_archive_indexation_action;
$this->general_indexation_action = $general_indexation_action;
$this->complete_indexation_action = $complete_indexation_action;
$this->prepare_indexing_action = $prepare_indexing_action;
$this->post_link_indexing_action = $post_link_indexing_action;
$this->term_link_indexing_action = $term_link_indexing_action;
$this->indexable_helper = $indexable_helper;
}