17 if (!defined(
"PSF_ENTRY_POINT"))
18 die(
"Not a valid psf entry point");
20 require_once (dirname(__FILE__) .
"/../object.php");
24 public $items = array();
25 public $BackgroundColor = NULL;
32 protected function Load()
34 if ($this->BackgroundColor !== NULL)
35 $this->items[
'body'][
'background-color'] = $this->BackgroundColor;
46 public function FetchCss($n)
48 return $this->ToCss($n);
51 public function ToCss($n = 0)
58 foreach ($this->items as $name => $values)
60 $buff .= $indentation . $name .
" {\n";
61 foreach ($values as $vn => $xx)
63 $buff .= $indentation .
' ' . $vn .
': ' . $xx .
";\n";
65 $buff .= $indentation .
"}\n";
Base class used for every single PSF object.
AutoInit($element)
This is just a skeleton function that can be overriden in order to auto-initialize style for certain ...