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(); }
/** * @param $content string */ public function __construct($content = null) { parent::__construct('td', $content); }
function __construct() { parent::__construct('td', ''); }