Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Class: Metatags

Source Location: /system/classes/metatags.class.php

Class Overview




Constants

Methods



Class Details

[line 36]


[ Top ]


Class Methods


constructor __construct [line 53]

Metatags __construct( [string $charset = 'utf-8'], [int $htmlVersion = 4], [boolean $isXhtml = false])

Constructor



Tags:

access:  public


Parameters:

string   $charset   the character set of meta tags
int   $htmlVersion   HTML version
boolean   $isXhtml   true = XHTML, false = HTML

[ Top ]

method addTag [line 237]

boolean addTag( $pairs)

Adds a meta tag



Tags:

return:  true = valid tag, false = otherwise
access:  public


Parameters:

array   $pairs   For example, if you want to add <meta name="description" content="SOME CONTENT">, specifify array('name' => 'description', 'content' => 'SOME CONTENT'). This method can be called many times, but values specified later will overwrite the previous ones if they are the same meta tag.

[ Top ]

method build [line 352]

string build( )

Renders meta tags



Tags:

access:  public


[ Top ]

method isHtmlGlobalAttribute [line 162]

boolean isHtmlGlobalAttribute( string $attr)

Returns if an attribute is one of HTML global attributes



Tags:

access:  protected


Parameters:

string   $attr  

[ Top ]

method log [line 124]

$this log( string $entry)

Writes an entery into a log file



Tags:

throws:  Exception
access:  protected


Parameters:

string   $entry  

[ Top ]

method normalizeAttribute [line 195]

string normalizeAttribute( string $attr)

Normalizes an attribute



Tags:

access:  protected


Parameters:

string   $attr  

[ Top ]

method processValue [line 209]

string processValue( string $value)

Processes a value



Tags:

access:  protected


Parameters:

string   $value  

[ Top ]

method setCharset [line 78]

$this setCharset( string $charset)

Sets the character set of meta tags



Tags:

access:  protected


Parameters:

string   $charset  

[ Top ]

method setHtmlVersion [line 97]

$this setHtmlVersion( int $version)

Sets the version of HTML of meta tags



Tags:

access:  protected


Parameters:

int   $version  

[ Top ]

method setLog [line 143]

$this setLog( string $path)

Sets the path to a log file



Tags:

throws:  Exception
access:  public


Parameters:

string   $path  

[ Top ]

method setXhtml [line 110]

$this setXhtml( boolean $isXhtml)

Sets if meta tags is written in XHTML



Tags:

access:  protected


Parameters:

boolean   $isXhtml  

[ Top ]


Class Constants

LF =  "\n"

[line 38]


[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:52:20 +0000 by phpDocumentor 1.4.3