






International Sites:
|
|
PStylesheet
The class PStylesheet maps a style sheet.
This object is derived from > PView > PObject.
Fields:
StylesheetName, String
CSSTag, String
FontFaceID, Integer
FontSize, String
FontStyle, String
FontVariant, String
FontColor, String
FontWeight, String
WordSpacing, String
LetterSpacing, String
TextDecoration, String
TextShadow, String
TextIdent, String
TextAlign, String
LineHeigh, String
BackgroundColor, String
MarginTop, String
MarginBottom, String
MarginLeft, String
MarginRight, String
function PStylesheet ($sStylesheet="") [KONSTRUKTOR]
The constructor calls the ancestor’s constructor. In so far as the parameter $sStylesheet is passed, the style sheet named $sStylesheet is loaded. If no parameter is passed or no style sheet is found, you can apply a new style sheet with the Create-Object function.
function Create ($sStylesheetName)
Applies a new style sheet to the Portalsuite data base under the name passed in the parameter $sStylesheetName. If this could be done successfully, the object continues to map this new style sheet. It is useful to call the object function WriteField afterwards in order to define the key value settings for the style sheet.
function Delete ()
Deletes the style sheet in the Portalsuite data base, which represents the object.
function Field ($sFieldName)
Reads out the passed field $sFieldName and returns the field content.
function GetStylesheetName ()
Returns the style sheet’s name, in so far as the object represents a valid dataset in the Portalsuite data base. Internally it solely calls the internal object function Field.
function GetStylesheetCSS ()
Returns the stylesheet-HTML-tag of the style sheet, in so far as the object represents a valid dataset in the Portalsuite data baset. Internally it solely calls the internal object function Field.
function Output ()
The object function Output of the class PStylesheet overwrites the inherited function of the ancestor completely and does also not call the inherited function of the ancestor internally. The function Output writes out all defined fields of the current style sheet in the HTML-stylesheet language. It is not very useful to use the function Output alone. Before and after the output the HTML-style-tag has to be placed – alternatively the function can be used in the style-parameter of HTML-tags.
function Valid ()
Checks if the current object is valid (return value =1) or non-valid (return value=0). The object is valid if it represents a style sheet in the Portalsuite data base. The function Valid is called by other object functions a. o.
function WriteField ($sFieldName,$sFieldValue)
Writes the passed content of the variable $sFieldValue into the field, which is defined by the parameter $sFieldName.
[Back] -
[Bookmark] -
[Optimized for Printing] - [Send by E-mail] - [Contact]
Copyright © 2000-2002 by Portunity GmbH (Germany) - All rights reserved.
|
|


Direct links to the new Portalsuite 2002:
- Productinfos
- Download
- Support overview
- Support forum
|