Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
aCssDeclarationToken Class Reference
Inheritance diagram for aCssDeclarationToken:
aCssToken CssAtFontFaceDeclarationToken CssAtKeyframesRulesetDeclarationToken CssAtPageDeclarationToken CssAtVariablesDeclarationToken CssRulesetDeclarationToken

Public Member Functions

 __construct ($property, $value, $isImportant=false, $isLast=false)
 __toString ()

Public Attributes

 $IsImportant = false
 $IsLast = false
 $Property = ""
 $Value = ""

Detailed Description

Definition at line 327 of file cssmin.php.

Constructor & Destructor Documentation

aCssDeclarationToken::__construct (   $property,
  $value,
  $isImportant = false,
  $isLast = false 
)

Set the properties of the -face declaration.

Parameters
string$propertyProperty of the declaration
string$valueValue of the declaration
boolean$isImportantIs the !important flag is set?
boolean$IsLastIs the declaration the last one of the block?
Returns
void

Definition at line 362 of file cssmin.php.

{
$this->Property = $property;
$this->Value = $value;
$this->IsImportant = $isImportant;
$this->IsLast = $isLast;
}

Member Function Documentation

aCssDeclarationToken::__toString ( )

Implements aCssToken::__toString().

Returns
string

Reimplemented from aCssToken.

Reimplemented in CssAtVariablesDeclarationToken.

Definition at line 374 of file cssmin.php.

{
return $this->Property . ":" . $this->Value . ($this->IsImportant ? " !important" : "") . ($this->IsLast ? "" : ";");
}

The documentation for this class was generated from the following file: