ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE3/branches/fukamachi/db-convert-from-2.x/lib/task/openpneUpgradeFrom2Task.class.php @ 12555

Last change on this file since 12555 was 12555, checked in by fukamachi, 14 years ago

added the db-convert task

File size: 935 bytes
Line 
1<?php
2
3/**
4 * This file is part of the OpenPNE package.
5 * (c) OpenPNE Project (http://www.openpne.jp/)
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file and the NOTICE file that were distributed with this source code.
9 */
10
11class openpneUpgradeFrom2Task extends sfDoctrineBaseTask
12{
13  protected function configure()
14  {
15    $this->namespace        = 'openpne';
16    $this->name             = 'upgrade-from-2';
17    $this->briefDescription = 'Upgrade from OpenPNE 2.x';
18    $this->detailedDescription = <<<EOF
19The [openpne:upgrade-from-2|INFO] task does things.
20Call it with:
21
22  [php symfony openpne:upgrade-from-2|INFO]
23EOF;
24  }
25
26  protected function execute($arguments = array(), $options = array())
27  {
28    $databaseManager = new sfDatabaseManager($this->configuration);
29    $connection = $databaseManager->getDatabase($options['connection'] ? $options['connection'] : null)->getConnection();
30  }
31}
Note: See TracBrowser for help on using the repository browser.