Solutions Open Source

Référence du fichier Z:/doxygen/typo3_src-4.1.2/typo3/sysext/adodb/adodb/pivottable.inc.php


Fonctions

 PivotTableSQL (&$db, $tables, $rowfields, $colfield, $where=false, $aggfield=false, $sumlabel='Sum ', $aggfn='SUM', $showcount=true)

Variables

print< pre > $sql
 $rs = $gDB->Execute($sql)
 $sql
print< pre > $sql
 $rs = $gDB->Execute($sql)

Documentation des fonctions

PivotTableSQL ( &$  db,
tables,
rowfields,
colfield,
where = false,
aggfield = false,
sumlabel = 'Sum ',
aggfn = 'SUM',
showcount = true 
)

Version:
V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim::natsoft.com.my). All rights reserved. Released under both BSD license and Lesser GPL library license. Whenever there is any discrepancy between the two licenses, the BSD license will take precedence.
Set tabs to 4 for best viewing.


Documentation des variables

$rs = $gDB->Execute($sql)

$rs = $gDB->Execute($sql)

print<pre> $sql

$sql

Valeur initiale :

 PivotTableSQL(
        $gDB,                                                                           # adodb connection
        'products p ,categories c ,suppliers s',        # tables
        'CompanyName,QuantityPerUnit',                          # row fields
                                                                                                # column ranges
array(                                                                          
' 0 ' => 'UnitsInStock <= 0',
"1 to 5" => '0 < UnitsInStock and UnitsInStock <= 5',
"6 to 10" => '5 < UnitsInStock and UnitsInStock <= 10',
"11 to 15"  => '10 < UnitsInStock and UnitsInStock <= 15',
"16+" =>'15 < UnitsInStock'
),
        ' p.CategoryID = c.CategoryID and s.SupplierID= p.SupplierID', # joins/where
        'UnitsInStock',                                                         # sum this field
        'Sum'                                                                           # sum label prefix
)

print<pre> $sql


Généré le Fri Aug 31 11:38:49 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3