| [ Index ] |
PHP Cross Reference of Zikula Core 1.3.2 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Copyright Zikula Foundation 2009 - Zikula Application Framework 4 * 5 * This work is contributed to the Zikula Foundation under one or more 6 * Contributor Agreements and licensed to You under the following license: 7 * 8 * @license GNU/LGPLv3 (or at your option, any later version). 9 * @package Zikula 10 * 11 * Please see the NOTICE file distributed with this source code for further 12 * information regarding copyright and licensing. 13 */ 14 15 /** 16 * Smarty modifier format an issue date for an atom news feed. 17 * 18 * Example 19 * 20 * {$MyVar|updated} 21 * 22 * @param array $string The contents to transform. 23 * 24 * @return string the updated output 25 */ 26 function smarty_modifier_updated($string) 27 { 28 global $atom_feed_lastupdated; 29 30 $timestamp = strtotime($string); 31 32 if (!isset($atom_feed_lastupdated) || $timestamp > $atom_feed_lastupdated) { 33 $atom_feed_lastupdated = $timestamp; 34 } 35 36 return strftime('%Y-%m-%dT%H:%M:%SZ', $timestamp); 37 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Feb 20 12:35:30 2012 | Cross-referenced by PHPXref 0.7.1 |