|
Revision 19112, 1.3 kB
(checked in by fabien, 4 years ago)
|
[1.1, 1.2, 1.3] added missing PHPDoc
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
abstract class sfCommandApplicationTask extends sfTask |
|---|
| 20 |
{ |
|---|
| 21 |
protected |
|---|
| 22 |
$commandApplication = null; |
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
* Sets the command application instance for this task. |
|---|
| 26 |
* |
|---|
| 27 |
* @param sfCommandApplication $commandApplication A sfCommandApplication instance |
|---|
| 28 |
*/ |
|---|
| 29 |
public function setCommandApplication(sfCommandApplication $commandApplication = null) |
|---|
| 30 |
{ |
|---|
| 31 |
$this->commandApplication = $commandApplication; |
|---|
| 32 |
} |
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
* @see sfTask |
|---|
| 36 |
*/ |
|---|
| 37 |
public function log($messages) |
|---|
| 38 |
{ |
|---|
| 39 |
if (is_null($this->commandApplication) || $this->commandApplication->isVerbose()) |
|---|
| 40 |
{ |
|---|
| 41 |
parent::log($messages); |
|---|
| 42 |
} |
|---|
| 43 |
} |
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
* @see sfTask |
|---|
| 47 |
*/ |
|---|
| 48 |
public function logSection($section, $message, $size = null, $style = 'INFO') |
|---|
| 49 |
{ |
|---|
| 50 |
if (is_null($this->commandApplication) || $this->commandApplication->isVerbose()) |
|---|
| 51 |
{ |
|---|
| 52 |
parent::logSection($section, $message, $size, $style); |
|---|
| 53 |
} |
|---|
| 54 |
} |
|---|
| 55 |
} |
|---|
| 56 |
|
|---|