10 |
if ($pageSource = $this->engine->arguments->getArgument("page-source")) { |
if ($pageSource = $this->engine->arguments->getArgument("page-source")) { |
11 |
$this->engine->runtime->page->setSource($pageSource); |
$this->engine->runtime->page->setSource($pageSource); |
12 |
$this->engine->runtime->page->setModifyUser($this->engine->runtime->user); |
$this->engine->runtime->page->setModifyUser($this->engine->runtime->user); |
13 |
|
|
14 |
|
switch($this->engine->arguments->getArgument("page-version-severity")) { |
15 |
|
case "release": |
16 |
|
$this->engine->runtime->page->increaseReleaseVersion(); |
17 |
|
break; |
18 |
|
case "major": |
19 |
|
$this->engine->runtime->page->increaseMajorVersion(); |
20 |
|
break; |
21 |
|
case "minor": |
22 |
|
$this->engine->runtime->page->increaseMinorVersion(); |
23 |
|
break; |
24 |
|
case "create": |
25 |
|
$this->engine->runtime->page->setVersion("0.1.0"); |
26 |
|
break; |
27 |
|
} |
28 |
$this->engine->runtime->page->save(); |
$this->engine->runtime->page->save(); |
29 |
if ($pageParent = $this->engine->arguments->getArgument("page-parent")) { |
if ($pageParent = $this->engine->arguments->getArgument("page-parent")) { |
30 |
$this->engine->runtime->page->copyGrantsOf($pageParent); |
$this->engine->runtime->page->copyGrantsOf($pageParent); |