ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Go to the source code of this file.
Variables | |
if($argc< 2) | $paths |
foreach($paths as $path) | $dsn = $argv[1] |
$user = isset($argv[2]) ? $argv[2] : null | |
$pass = isset($argv[3]) ? $argv[3] : null | |
$pdo = new PDO($dsn, $user, $pass) | |
$driver = $pdo->getAttribute(PDO::ATTR_DRIVER_NAME) | |
switch ( $driver) | |
$addValueType = false | |
try | |
$row = $result->fetch(\PDO::FETCH_ASSOC) | |
if(! $row) elseif(array_key_exists('valuetype', $row)) | else |
catch(Exception $e) | if ( $addValueType) |
$result = $pdo->query('SELECT id, uri, vcardurl FROM principals WHERE vcardurl IS NOT NULL') | |
$stmt1 = $pdo->prepare('INSERT INTO propertystorage (path, name, valuetype, value) VALUES (?, ?, 3, ?)') | |
while ( $row=$result->fetch(\PDO::FETCH_ASSOC)) | |
$addValueType = false |
Definition at line 82 of file migrateto30.php.
$driver = $pdo->getAttribute(PDO::ATTR_DRIVER_NAME) |
Definition at line 66 of file migrateto30.php.
foreach ( $paths as $path) $dsn = $argv[1] |
Definition at line 56 of file migrateto30.php.
$pass = isset($argv[3]) ? $argv[3] : null |
Definition at line 58 of file migrateto30.php.
if ( $argc< 2) $paths |
Definition at line 44 of file migrateto30.php.
$pdo = new PDO($dsn, $user, $pass) |
Definition at line 62 of file migrateto30.php.
$result = $pdo->query('SELECT id, uri, vcardurl FROM principals WHERE vcardurl IS NOT NULL') |
Definition at line 154 of file migrateto30.php.
$row = $result->fetch(\PDO::FETCH_ASSOC) |
Definition at line 85 of file migrateto30.php.
$stmt1 = $pdo->prepare('INSERT INTO propertystorage (path, name, valuetype, value) VALUES (?, ?, 3, ?)') |
Definition at line 155 of file migrateto30.php.
$user = isset($argv[2]) ? $argv[2] : null |
Definition at line 57 of file migrateto30.php.
if (! $row) elseif (array_key_exists( 'valuetype', $row)) else |
Definition at line 125 of file migrateto30.php.
catch (Exception $e) if($addValueType) |
Definition at line 136 of file migrateto30.php.
switch($driver) |
Definition at line 68 of file migrateto30.php.
try |
Definition at line 83 of file migrateto30.php.
while($row=$result->fetch(\PDO::FETCH_ASSOC)) |
Definition at line 157 of file migrateto30.php.