123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- abstract class sfCommandApplicationTask extends sfTask
- {
- protected
- $commandApplication = null;
- public function setCommandApplication(sfCommandApplication $commandApplication = null)
- {
- $this->commandApplication = $commandApplication;
- }
-
- public function log($messages)
- {
- if (is_null($this->commandApplication) || $this->commandApplication->isVerbose())
- {
- parent::log($messages);
- }
- }
-
- public function logSection($section, $message, $size = null, $style = 'INFO')
- {
- if (is_null($this->commandApplication) || $this->commandApplication->isVerbose())
- {
- parent::logSection($section, $message, $size, $style);
- }
- }
- }
|