Overview

Packages

  • Geolib

Classes

  • Geo
  • GeoBody
  • GeoCell
  • GeoDebug
  • GeoHead
  • GeoHtml
  • GeoImg
  • GeoLink
  • GeoList
  • GeoSelect
  • GeoTable
  • GeoTag

Functions

  • b
  • div
  • geoAbsLink
  • geoAnchor
  • geoBody
  • geoButton
  • geoCell
  • geoCheckbox
  • geoDb
  • geoEnd
  • geoFieldSet
  • geoForm
  • geoHead
  • geoHidden
  • geoHtml
  • geoif
  • geoIList
  • geoImg
  • geoImgSubmit
  • geoInput
  • geoIsMultiArr
  • geoItem
  • geoJSLink
  • geoLabel
  • geoLegend
  • geolib_autoloader
  • geoLink
  • geoList
  • geoMultiArr
  • geoNoScript
  • geoPassword
  • geoPre
  • geoRadio
  • geoRadios
  • geoScript
  • geoSelect
  • geoStart
  • geoSubmit
  • geoTable
  • geoTabs
  • geoTag
  • geoText
  • geoTextArea
  • geoTrace
  • geoUpload
  • geovar
  • h1
  • h2
  • h3
  • h4
  • i
  • idiv
  • ispan
  • itag
  • p
  • span
  • Overview
  • Package
  • Class

Class GeoHead

Geo - Class to create html head tags

GeoTag
Extended by GeoHead
Package: Geolib
Category: Html_Tag
License: Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
Author: Peter Pitchford peter@geotonics.com
Version: Release: .1
Since: Class available since Release .1
Link: http://geotonics.com/#geolib
Located at classes/GeoHead.php
Methods summary
public
# __construct( string $title = null, string|array $stylesheets = null, string|array $scripts = null, string $styles = null, array $metas = null, string|array $addlTags = null, string $media = null, string $addHtml = null )

Constructor

Constructor

Parameters

$title
Document title
$stylesheets
Paths to document stylesheets. Can be 1 path or an array
$scripts
Paths to document scripts. Can be either 1 path or an array
$styles
Styles for style tag in head
$metas
Content of metatags
$addlTags

Any additional tags for head addlTags can be multi or non multi. Examples: array:$tags["script"][$script]=array("type"=>'text/script'); $addlTags['link'][]=array("rel"=>'goback'); $addlTags['link']=array("rel"=>'goback');

$media
Media attribute
$addHtml
Any additional html for head

Overrides

GeoTag::__construct()
public
# setStyles( array $styles )

Set content of style tags inside head

Set content of style tags inside head

Parameters

$styles
Each row gets its own style tag
public
# setTitle( GeoTag::$text $title )

Set content of title tag

Set content of title tag

Parameters

$title
document title
public
# setMetas( array $metas, boolean $replace = null )

Set document metatags

Set document metatags

Parameters

$metas
Content of metatags.
$replace
If true, replace metas. Default is to add $metas to existing metas.
public
# setStylesheets( array $stylesheets, boolean $replace = null )

Set links to stylesheets

Set links to stylesheets

Parameters

$stylesheets
hrefs of css files
$replace
If true, replace stylesheets. Default is to add $stylesheets to existing metas.
public
# setScripts( array $scripts, boolean $replace = null, boolean $isForHead = null )

Set scripts

Set scripts

Parameters

$scripts
hrefs of script files
$replace
If true, replace script hrefs. Default is to add $scripts to existing scripts.
$isForHead

If true, script tags will be added to the head. Default is to add script tags to the end of the body

public
# setBase( array $base )

Set Base

Set Base

Parameters

$base
Set document base
public string
# scripts( boolean $getHeadScripts = null )

Get scripts. Sets scripts for the head or the end of the body via geohtmlObj

Get scripts. Sets scripts for the head or the end of the body via geohtmlObj

Parameters

$getHeadScripts

Indicates whether to get scripts indended for the head or the end of the body. Default is the end of the body.

Returns

string
$scripts Script tags
public string
# addTags( array|string $addlTags )

Add tags to the head

Add tags to the head

Parameters

$addlTags

Additional tags for the head. Can be a 2 D array in the form of $array($tagname=>$tagContentArray) Can be an 1 D array in the form of $array($tagname=>$tagContentString) Can be a string. String is assumed to be the content of a script tag

Returns

string
$scripts Script tags
public
# addHtml( string $html )

Add Html to head

Add Html to head

Parameters

$html
Html to be added to head
public string
# tag( )

HTML head tag

HTML head tag

Returns

string
head tag
Methods inherited from GeoTag
baseTag(), init(), setAtt(), setText()
Properties inherited from GeoTag
$atts, $text
API documentation generated by ApiGen