[TYPO3-english] question about codes in ext_localconf.php

Richard Davies richard at ocular.co.nz
Mon Nov 19 04:16:32 CET 2012


 Hi Tom

Unfortunately the bold didn't come through. Since I don't know which part
you want, I'll quickly run through all of them.


if (!defined('TYPO3_MODE')) die ('Access denied.');
>
Defines that if the file isn't accessed by Typo3 itself, it will throw an
error.

require_once(t3lib_extMgm::extPath('newsletter','hooks/class.tx_newsletter_uuser.php'));
>
This includes the file 'hooks/class....uuser.php' file in the extension
'newsletter' into the current path, most likely to hook into something

*$TYPO3_CONF_VARS['SC_OPTIONS']['u_user/pi1/class.tx_uuser_pi1.php'][15] =
>> 'tx_newsletter_uuser';*
>>
>  This hooks into an extension so (presumably) the previous include can
hook into the extension 'u_user'
(
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.2.0/view/3/4/
)

*t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_newsletter_pi1.php',
>> '_pi1', 'list_type', 1);*
>>
> This is a part of adding a plugin to Typo3 - the other part being in
ext_tables, you are probably familiar with this.

*$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_newsletter_ajax'] =
>> 'EXT:newsletter/class.tx_newsletter_ajax.php';*
>>
> This includes an AJAX script for the extension newsletter. This means the
site can be called like index.php?eID= tx_newsletter_ajax where
class.tx_newsletter_ajax.php will be called so the whole typo3 frontend
doesn't need to be rendered for an AJAX fetch

> *$TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['newsletter'] =
>> array('EXT:newsletter/cli/cli_newsletter.php', '_CLI_jc');*
>
> Finally this seems to be another hook into Typo3 so the extension
newletter can run a cron with cli.
See http://lists.typo3.org/pipermail/typo3-dev/2008-January/026987.html


Richard



On 19 November 2012 15:59, tom <typostudy at gmail.com> wrote:

> Hi,
>
> Below code is from ext_localconf.php, I know it is configuration of
> $TYPO3_CONF_VARS, but I had hard time to understand the meaning of some
> lines, can anyone explain the meaning of the lines in bold below? thanks.
>
> <?php
> if (!defined('TYPO3_MODE')) die ('Access denied.');
> require_once(t3lib_extMgm::extPath('newsletter',
> 'hooks/class.tx_newsletter_uuser.php'));
> *$TYPO3_CONF_VARS['SC_OPTIONS']['u_user/pi1/class.tx_uuser_pi1.php'][15] =
> 'tx_newsletter_uuser';*
> *t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_newsletter_pi1.php',
> '_pi1', 'list_type', 1);*
> *$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_newsletter_ajax'] =
> 'EXT:newsletter/class.tx_newsletter_ajax.php';*
> *$TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['newsletter'] =
> array('EXT:newsletter/cli/cli_newsletter.php', '_CLI_jc');*
> ?>
>
> Tom
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list