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

Class: Stylesheet

Source Location: /html/Stylesheet.class.php

Class Overview




Author(s):

Version:

  • 1.25

Copyright:

  • Copyright (c) 2005 Daniel Plücken <daniel@debakel.net>

    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Variables

Methods



Class Details

[line 46]


Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.25
copyright:  

Copyright (c) 2005 Daniel Plücken <daniel@debakel.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

license:  GNU Lesser General Public License


[ Top ]


Class Variables

$cls_arr = array()

[line 52]



Tags:

access:  public

Type:   array


[ Top ]

$id_arr = array()

[line 57]



Tags:

access:  public

Type:   array


[ Top ]

$str_media =  ""

[line 69]

Stores the type of media ...



Tags:

access:  public

Type:   string


[ Top ]

$tag_arr = array()

[line 62]



Tags:

access:  public

Type:   array


[ Top ]



Class Methods


constructor Stylesheet [line 84]

void Stylesheet( [string $classname = ""], [string $content = ""])

The constructor can be used to set the first stylesheet-class.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  1.0
access:  public


Parameters:

string   $classname  
string   $content  

[ Top ]

method addClass [line 130]

void addClass( string $name, string $content)

Adds a stylesheet-class to this object.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  1.0
access:  public


Parameters:

string   $name  
string   $content  

[ Top ]

method addId [line 170]

void addId( $name, $content, string $classname*, string $content*)

Adds a stylesheet-id to this object.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  1.1
access:  public


Parameters:

string   $classname*  
string   $content*  
   $name  
   $content  

[ Top ]

method addTag [line 150]

void addTag( string $name, string $content)

Adds a stylesheet of a html-tag to this object.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  1.2
access:  public


Parameters:

string   $name  
string   $content  

[ Top ]

method get [line 188]

string get( )

Returns a generated string based on the attributes of this HTML-Object.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  1.0
access:  public


[ Top ]

method setMedia [line 114]

void setMedia( string $str_type)

Sets the type of media to the stylesheet.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  1.25
access:  public


Parameters:

string   $str_type  

The type of media can be comma seperated! Possible values are:

  • screen
  • tty
  • tv
  • projection
  • handheld
  • print
  • braille
  • aural
  • all


[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:15:10 +0200 by phpDocumentor 1.4.1