@@ 68-77 (lines=10) @@ | ||
65 | return $this->_version; |
|
66 | } |
|
67 | ||
68 | public function actionGenfake($file) |
|
69 | { |
|
70 | $path = $this->buildFakePath($file); |
|
71 | if (!$this->force && file_exists($path)) { |
|
72 | Yii::warning("already exists: $path"); |
|
73 | return 1; |
|
74 | } |
|
75 | ||
76 | return $this->genFake($file, $path); |
|
77 | } |
|
78 | ||
79 | public function genFake($file, $path) |
|
80 | { |
|
@@ 89-98 (lines=10) @@ | ||
86 | BaseHandler::write($path, $text); |
|
87 | } |
|
88 | ||
89 | public function actionGentest($file) |
|
90 | { |
|
91 | $path = $this->buildTestPath($file); |
|
92 | if (!$this->force && file_exists($path)) { |
|
93 | Yii::warning("already exists: $path"); |
|
94 | return 1; |
|
95 | } |
|
96 | ||
97 | return $this->genSkel($file); |
|
98 | } |
|
99 | ||
100 | public function genSkel($file) |
|
101 | { |