Extension Key: div2007
Copyright 2007-2008, Elmar Hinz, <email@example.com>
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.com
Table of Contents¶
EXT: div 1
The functions of tx_div in alphabetic order 1
The functions of tx_div 2007 in alphabetic order¶
This function walks through all directories of an extension and includes all class files it finds.
Store data into the browser session or load it from there.
The browser session lasts, while the browser is opened, by default with a maximum of 24 hours. Also see tx_div2007::userSession() and tx_div2007::session() .
Clear all caches at once.
This function if for the development process only. It can be applied temporary to avoid repeated cache clearing by hand. It will be painful for you, if you forget to disable it on your live server.
Explode a string to an array in a typical way.
This is typically used to simplify user input for example by TypoScript.
Strings are exploded by ,;: comma, semicolon and colon. The resulting tokens are trimmed. Whitespace inside the token is kept. The list of names: David Copperfield, Mr. Wickfield, Uriah Heep would be split into 3 tokens.
Get an instance of the TCE.
Use the features of the TCE also from the frontend. Useful to do INSERT and UPDATE queries in full accordance with the T3 constraints, but not very fast. A backend user must be logged in or be faked.
Get the global TYPO3_DB object.
Typically used to do SELECT queries.
Load the site relative extension path for the given extension key.
That is the path to the extension from the view point of the browser in opposite to the absolute path from the view point of the server file system.
Takes the extension key with or without underscores and finds the matching official extension key with underscores. If the extension key is not loaded it returns false.
Helps you to find the real, valid key, if you only know the key with underscores stripped. The stripped key is i.e. part of class names.
Takes a string like a class name or a file path, that contains any information about the extension key, and tries to extract it in the official format with underscores.
Loads TCA additions of other extensions
Your extension may depend on fields that are added by other extensions. For reasons of performance parts of the TCA are only loaded on demand. To ensure that the extended TCA is loaded for the extensions yours depends on you can apply this function.
Load the class file and make an instance of the class.
This is an extension to t3lib_div::makeInstance(). It automatically finds and includes the required class file. The XCLASS mechanisms are working. See tx_div2007::makeInstanceClassName() .
Load the class file and return the class name or the ux_classname.
See tx_div2007::makeInstance() .
Resolve extension paths that make use of the “EXT:” prefix.
The path is relative to PATH_site. See tx_div2007::getSiteRelativeExtensionPath() .