create-col-array.php File Reference

Functions

 quoteVal ($val)
 print_help ()

Variables

 $o = getopt('d:u:p:t:s:P:h')
 $h = (isset($o['h'])) ? true : false
 $dsn = (isset($o['d'])) ? $o['d'] : null
 $user = (isset($o['u'])) ? $o['u'] : null
 $pass = (isset($o['p'])) ? $o['p'] : null
 $table = (isset($o['t'])) ? $o['t'] : null
 $space = (isset($o['s'])) ? $o['s'] : null
 $prefix = (isset($o['P'])) ? $o['P'] : null
if($h||$dsn===null||$user===null||$pass===null||$table===null||$space===null||$prefix===null) $pdo = new PDO($dsn, $user, $pass)
 $query = $pdo->prepare(sprintf('DESCRIBE %s', $table))
 $re = $query->execute()

Function Documentation

print_help (  ) 
quoteVal ( val  ) 

Variable Documentation

$dsn = (isset($o['d'])) ? $o['d'] : null
$h = (isset($o['h'])) ? true : false
$o = getopt('d:u:p:t:s:P:h')

Creates a column array for writing new drivers

Author:
Marius Hein <mhein@netways.de> (c) 2009 Icinga Developer Team
Version:
1.0
$pass = (isset($o['p'])) ? $o['p'] : null
if ($h||$dsn===null||$user===null||$pass===null||$table===null||$space===null||$prefix===null) $pdo = new PDO($dsn, $user, $pass)
$prefix = (isset($o['P'])) ? $o['P'] : null
$query = $pdo->prepare(sprintf('DESCRIBE %s', $table))
$re = $query->execute()
$space = (isset($o['s'])) ? $o['s'] : null
$table = (isset($o['t'])) ? $o['t'] : null
$user = (isset($o['u'])) ? $o['u'] : null

Generated on Thu Jan 14 15:06:46 2010 for ICINGA-API by  doxygen 1.6.1