메소드 | 설명 | |
---|---|---|
__construct ( string $title, WPSEO_Admin_Banner_Renderer $banner_renderer = null ) | WPSEO_Admin_Banner_Spot constructor. | |
add_banner ( WPSEO_Admin_Banner $banner ) | Adds an admin banner. | |
get_description ( ) : string | Returns the description. | |
get_title ( ) : string | Returns the title. | |
has_banners ( ) : boolean | Checks if there are any banners set. | |
render_banner ( ) : string | Renders the banner. | |
set_description ( string $description ) | Sets the description |
메소드 | 설명 | |
---|---|---|
get_random_banner ( ) : null | WPSEO_Admin_Banner | Returns a random banner. |
public __construct ( string $title, WPSEO_Admin_Banner_Renderer $banner_renderer = null ) | ||
$title | string | The title for the spot. |
$banner_renderer | WPSEO_Admin_Banner_Renderer | The renderer for the banner. |
public add_banner ( WPSEO_Admin_Banner $banner ) | ||
$banner | WPSEO_Admin_Banner | The banner to add. |
protected get_random_banner ( ) : null | WPSEO_Admin_Banner | ||
리턴 | null | WPSEO_Admin_Banner |
public has_banners ( ) : boolean | ||
리턴 | boolean |
public set_description ( string $description ) | ||
$description | string | The description. |