VirtueMart - 1.1 Uživatelská příručka Strana 19

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 44
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 18
Database Structure
9
$vmLogger->warning( 'My warning message to the user' ); // Mainly used to trigger warnings
$vmLogger->notice( 'My Notice to the user' );
$vmLogger->info( 'My informational message to the user' ); // Used to give success messages
$vmLogger->debug( 'My debug message to the user' ); // Only displayed when DEBUG is enabled
$vmLogger->tip( 'My advice to the user' ); // Used to display Advice messages to the user
2.4. Database Structure
As said before, all Tables used for VM begin with the prefix _vm_. VM doesn't use Joomla core tables
for storing data.
2.5. Database Access
VM uses its own database access class for dealing with the database.
The database class file is
/administrator/components/com_virtuemart/classes/ps_database.php.
This database class extends Joomla's database class (class ps_DB extends database) and provides
additional functions, to be able to use older phpShop code. So this class is just a wrapper class for
Joomla's database object and doesn't open new connections to the database!
Start a query: call the method query( string $query )
$db->query( 'SELECT email FROM #__users');
Get the resulting record set: call method next_record( void ):
$db->next_record();
(returns false when no result can be returned or the end of the record set has been reached)
Fetch the value of an attribute of the record set: method f( string
$nameOfTheAttribute )
$db->f( 'email' );
Alternative: method sf( string $nameOfTheAttribute ) returns the value of
the attribute specified by $nameOfTheAttribute or - when it's not available - the value of
$vars[$nameOfTheAttribute].
Print (echo) the value of an attribute of the record set: method p( string
$nameOfTheAttribute )
$db->p( 'email' );
Alternative: method sp( string $nameOfTheAttribute ) prints the value of
the attribute specified by $nameOfTheAttribute or - when it's not available - the value of
$vars[$nameOfTheAttribute].
Get the number of returned records: method num_rows( void ).
if( $db->num_rows() > 0 ) { // we have a record set! }
Zobrazit stránku 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 43 44

Komentáře k této Příručce

Žádné komentáře

Dataram DTM64315B manuály

Uživatelské manuály a uživatelské příručky pro Paměťové moduly Dataram DTM64315B.
Poskytujeme 1 manuály pdf Dataram DTM64315B ke stažení zdarma podle typů dokumentů: Datový list


Dataram DTM64315B Datový list (13 strany)


Značka: Dataram | Kategorie: Memory modules | Velikost: 0.35 MB |

 

Tabulka s obsahem





Další produkty a příručky pro Paměťové moduly Dataram

Modely Typ Dokumentu
DRH1600RS/8GB Datový list   Dataram 1 x 16GB 2Rx4 DIMM, 1 stránky
GRSX2270L/8GB Datový list   Dataram 4GB DDR3-1333, 1 stránky
DRSX6275-13/8GB Datový list   Dataram DRSX6275-13/8GB memory module, 1 stránky
DRH2660/4GB Datový list   Dataram DRH2660/16GB memory module, 1 stránky
GRILS42-6/8GB Datový list   Dataram 8GB(2 x 4GB) DDR2-667, 1 stránky
GRH980QL/32GB Datový list   Dataram 16GB DDR3, 1 stránky
DRH165G7U/4GB Datový list   Dataram 4GB PC3-10600, 1 stránky
GRSU40M2/8GB Datový list   Dataram 16GB(2 x 8GB) DDR2-667, 1 stránky
GRL1333R/8GB Datový list   Dataram GRL1333R/2GB memory module, 1 stránky
GRHMW8760/4GB Datový list   Dataram 4GB DDR3-1333, 1 stránky
DTM63310R Datový list   Dataram DTM63310P memory module, 10 stránky
DTM64307C Datový list   Dataram 1GB DDR3 SDRAM, 12 stránky
DRSX4450LV/16GB Datový list   Dataram DRSX4450LV/16GB memory module, 1 stránky
DTM64368B Datový list   Dataram 2 GB DDR3 DIMM, 12 stránky
GRSX4200M2/8GB Datový list   Dataram 16GB(2 x 8GB) DDR2-667, 1 stránky
GRIHS22L3/8GB Datový list   Dataram 4GB DDR3-1333, 1 stránky
DTM63344E Datový list   Dataram DTM63344E memory module, 12 stránky
GRIJS22/8GB Datový list   Dataram 16GB(2 x 8GB) DDR2-533, 1 stránky
DTM63372A Datový list   Dataram DTM63372A memory module, 12 stránky
DRIX1066RQ/16GB Datový list   Dataram 16GB DDR3-1066, 1 stránky