* Print messages as migrations happen
* @var boolean
*/
- public static $verbose = true;
+ public $verbose = true;
/**
* The migration version
/**
*/
- public function __construct(Horde_Db_Adapter_Base $connection, $version = null)
+ public function __construct(Horde_Db_Adapter_Base $connection, $version = null, $verbose = true)
{
$this->_connection = $connection;
$this->version = $version;
+ $this->verbose = $verbose;
}
*/
public function write($text = '')
{
- if (self::$verbose) {
+ if ($this->verbose) {
echo "$text\n";
}
}