PHP Class Arcanedev\SeoHelper\Helpers\Meta

Author: ARCANEDEV ([email protected])
Inheritance: implements Arcanedev\SeoHelper\Contracts\Helpers\Meta
Afficher le fichier Open project: arcanedev/seo-helper Class Usage Examples

Protected Properties

Свойство Type Description
$content string Meta content.
$name string Meta name.
$nameProperty string The meta name property.
$prefix string Meta prefix name.

Méthodes publiques

Méthode Description
__construct ( string $name, string $content, string $propertyName = 'name', string $prefix = '' ) Make Meta instance.
__toString ( ) : string Render the tag.
clean ( string $value ) : string Clean all the inputs.
isValid ( ) : boolean Check if meta is valid.
key ( ) : string Get the meta name.
make ( string $name, string $content, string $propertyName = 'name', string $prefix = '' ) : Meta Make Meta instance.
render ( ) : string Render the tag.
setNameProperty ( string $nameProperty ) : Meta Set the meta property name.
setPrefix ( string $prefix ) : Meta Set the meta prefix name.

Méthodes protégées

Méthode Description
isLink ( ) : boolean Check if meta is a link tag.

Private Methods

Méthode Description
checkNameProperty ( string &$nameProperty ) Check the name property.
getContent ( ) : string Get the meta content.
getName ( boolean $prefixed = true ) : string Get the meta name.
renderLink ( ) : string Render the link tag.
renderMeta ( ) : string Render the meta tag.
setContent ( string $content ) : Meta Set the meta content.
setName ( string $name ) : Meta Set the meta name.

Method Details

__construct() public méthode

Make Meta instance.
public __construct ( string $name, string $content, string $propertyName = 'name', string $prefix = '' )
$name string
$content string
$propertyName string
$prefix string

__toString() public méthode

Render the tag.
public __toString ( ) : string
Résultat string

clean() public méthode

Clean all the inputs.
public clean ( string $value ) : string
$value string
Résultat string

isValid() public méthode

Check if meta is valid.
public isValid ( ) : boolean
Résultat boolean

key() public méthode

Get the meta name.
public key ( ) : string
Résultat string

make() public static méthode

Make Meta instance.
public static make ( string $name, string $content, string $propertyName = 'name', string $prefix = '' ) : Meta
$name string
$content string
$propertyName string
$prefix string
Résultat Meta

render() public méthode

Render the tag.
public render ( ) : string
Résultat string

setNameProperty() public méthode

Set the meta property name.
public setNameProperty ( string $nameProperty ) : Meta
$nameProperty string
Résultat Meta

setPrefix() public méthode

Set the meta prefix name.
public setPrefix ( string $prefix ) : Meta
$prefix string
Résultat Meta

Property Details

$content protected_oe property

Meta content.
protected string $content
Résultat string

$name protected_oe property

Meta name.
protected string $name
Résultat string

$nameProperty protected_oe property

The meta name property.
protected string $nameProperty
Résultat string

$prefix protected_oe property

Meta prefix name.
protected string $prefix
Résultat string