PHP Class WPSEO_Admin_Banner, wordpress-seo

Afficher le fichier Open project: yoast/wordpress-seo Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $url, string $image, integer $width, integer $height, string $alt = '' ) Sets the attributes for this object.
get_alt ( ) : string Returns the alt-text.
get_height ( ) : string Returns the height.
get_image ( ) : string Returns the image.
get_url ( ) : string Returns the set url.
get_width ( ) : string Returns the width.

Method Details

__construct() public méthode

Sets the attributes for this object.
public __construct ( string $url, string $image, integer $width, integer $height, string $alt = '' )
$url string The URL where the banner links to.
$image string The image filename.
$width integer The width of the image.
$height integer The height of the image.
$alt string The alt text for the image.

get_alt() public méthode

Returns the alt-text.
public get_alt ( ) : string
Résultat string

get_height() public méthode

Returns the height.
public get_height ( ) : string
Résultat string

get_image() public méthode

Returns the image.
public get_image ( ) : string
Résultat string

get_url() public méthode

Returns the set url.
public get_url ( ) : string
Résultat string

get_width() public méthode

Returns the width.
public get_width ( ) : string
Résultat string