2 namespace wcf\system\package
;
3 use wcf\system\form\FormDocument
;
6 * Represents step information within an installation node.
8 * @author Alexander Ebert
9 * @copyright 2001-2018 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\Package
13 class PackageInstallationStep
{
15 * form document object
18 protected $document = null;
21 * next installation node
27 * indicates if current current node should be splitted
30 protected $splitNode = false;
33 * Sets next installation node.
37 public function setNode($node) {
42 * Returns next installation node.
46 public function getNode() {
51 * Sets form document object.
53 * @param FormDocument $document
55 public function setDocument(FormDocument
$document) {
56 $this->document
= $document;
60 * Returns HTML-representation of form document object.
64 public function getTemplate() {
65 return $this->document
->getHTML();
69 * Returns true if current step holds a form document object.
73 public function hasDocument() {
74 return ($this->document
!== null);
78 * Enforces node splitting.
80 public function setSplitNode() {
81 $this->splitNode
= true;
85 * Returns true if node should be splitted.
89 public function splitNode() {
90 return $this->splitNode
;