Yoast\WP\SEO\Presenters
Abstract_Indexable_Presenter{} Yoast 1.0
Abstract presenter class for indexable presentations.
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Abstract_Indexable_Presenter = new Abstract_Indexable_Presenter(); // use class methods
Методы
Код Abstract_Indexable_Presenter{} Abstract Indexable Presenter{} Yoast 15.6.2
abstract class Abstract_Indexable_Presenter extends Abstract_Presenter {
/**
* The WPSEO Replace Vars object.
*
* @var WPSEO_Replace_Vars
*/
public $replace_vars;
/**
* The indexable presentation.
*
* @var Indexable_Presentation
*/
public $presentation;
/**
* The helpers surface
*
* @var Helpers_Surface
*/
public $helpers;
/**
* Gets the raw value of a presentation.
*
* @return string|array The raw value.
*/
abstract public function get();
/**
* Replace replacement variables in a string.
*
* @param string $string The string.
*
* @return string The string with replacement variables replaced.
*/
protected function replace_vars( $string ) {
return $this->replace_vars->replace( $string, $this->presentation->source );
}
}