
3
Chapter 2. Basics
2.1. Directory and File Structure
VM holds most of its files in the /administrator part of Joomla. The only files stored in the /
components part of a Joomla site are those, which must be accessible from the Frontend of a Joomla
site, even when the Administrator part is secured by htaccess files.
/administrator/components/
com_virtuemart/
Contains file for the administration interface of VM. Because
the administrative interface is also accessible from the frontend,
those files are not restricted to the Joomla! Coding Standards.
Important files:
• header.php (Code for the Drop-Down Menu of the
administration)
• virtuemart.cfg.php (central Configuration File)
• toolbar.virtuemart.html.php (Standard Toolbar
- Joomla! style)
• toolbar.html.php (Toolbar for ExtJS in extended
Layout)
/administrator/components/
com_virtuemart/classes/
Holds all the core classes which are used by VM Important:
• ps_database.php (wrapper for Joomla's database
object $database)
• ps_cart.php (controls the cart contents)
• ps_main.php (not a class, contains central functions, e.g.
for image upload)
• ps_session.php (basic session management, URL
formatting)
/administrator/components/
com_virtuemart/classes/Log/
Contains a slightly modified version of PEAR's Log class
/administrator/components/
com_virtuemart/classes/shipping/
Contains Shipping Modules & their informational Files
/administrator/components/
com_virtuemart/classes/payment/
Contains Payment Modules & their informational Files
/administrator/components/
com_virtuemart/classes/pdf/
Contains the classes of the HTML2FPDF Package (see
sourceforge.net/projects/html2fpdf [http://sourceforge.net/
projects/html2fpdf])
/administrator/components/
com_virtuemart/classes/
phpInputFilter/
contains the phpinputfilter class for VirtueMart
/administrator/components/
com_virtuemart/classes/phpmailer/
Komentáře k této Příručce