示例#1
0
 public function __construct($id = null, $position = null)
 {
     if ($id == null) {
         self::$lastAutoId++;
         $id = self::$lastAutoId;
     }
     if ($position == null) {
         self::$lastAutoPosition++;
         $position = self::$lastAutoPosition;
     }
     $this->id = $id;
     $this->content = $id;
     $this->position = $position;
     parent::__construct();
 }
示例#2
0
 /**
  * @param $content string
  */
 public function __construct($content = null)
 {
     parent::__construct('td', $content);
 }
示例#3
0
 function __construct()
 {
     parent::__construct('td', '');
 }