[TYPO3-dev] accessing values from admin-panel from within extension

bernd wilke xoonsji02 at sneakemail.com
Mon Oct 20 17:11:03 CEST 2008


On Sun, 05 Oct 2008 10:35:10 +0200 Martin Kutschker wrote:

> bernd wilke schrieb:
>> How can I access values set in admin-panel?
>> 
>> I want to simulate time by admin-panel and access it in my extension.
>> As long as I use time() I only get the current time of the server than
>> the time set in admin-panel.
>> 
>> should I use another function?
>> or is the value stored in any variable?
> 
> // "exact" time
> $GLOBALS['SIM_EXEC_TIME'] = $GLOBALS['EXEC_TIME'];
> // time rounded to minutes (for access permissions)
> $GLOBALS['SIM_ACCESS_TIME'] = $GLOBALS['ACCESS_TIME'];
> 
> Masi

these variables are not set to the values from admin panel.
they are (nearly) the same than the actual server-time I get with the php-
function time()

I use TYPO3 4.2.1
maybe this has changed and worked for earlier versions.


bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html




More information about the TYPO3-dev mailing list