/[cvs]/bareface/yakka/methods/YakkaMethodView.php
ViewVC logotype

Diff of /bareface/yakka/methods/YakkaMethodView.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by bareface, Sun Jan 5 00:22:26 2003 UTC revision 1.2 by bareface, Mon Jan 6 13:35:23 2003 UTC
# Line 10  class YakkaMethodView { Line 10  class YakkaMethodView {
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);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed