psf
 All Classes Functions Variables
element.php
1 <?php
2 
3 //Part of simple php framework (spf)
4 
5 //This program is free software: you can redistribute it and/or modify
6 //it under the terms of the GNU General Public License as published by
7 //the Free Software Foundation, either version 3 of the License, or
8 //(at your option) any later version.
9 
10 //This program is distributed in the hope that it will be useful,
11 //but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 //GNU General Public License for more details.
14 
15 //Copyright Petr Bena 2015
16 
17 if (!defined("PSF_ENTRY_POINT"))
18  die("Not a valid psf entry point");
19 
20 require_once (dirname(__FILE__) . "/../object.php");
21 require_once (dirname(__FILE__) . "/../css/inline.php");
22 
23 class HtmlElement extends PsfObject
24 {
25  public $Indentation = 0;
26  public $Indent = True;
27  public $Style = NULL;
29  public $ClassName = NULL;
30 
31  function __clone()
32  {
33  if ($this->Style !== NULL)
34  $this->Style = clone $this->Style;
35  }
36 
37  public function ToHtml()
38  {
39  return "";
40  }
41 
42  public function DisableIndenting()
43  {
44  if ($this->Parent !== NULL && $this->Parent instanceof HtmlElement)
45  $this->Parent->DisableIndenting();
46  $this->Indent = false;
47  }
48 }