| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @subpackage Languages 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 18 class indexView extends View 19 { 20 function render(&$renderer, &$request) 21 { 22 $rows = array(); 23 $languageDir = mamboCore::get('mosConfig_absolute_path')."/language/"; 24 $xmlFilesInDir = mosReadDirectory($languageDir,'.xml$'); 25 $rowid = 0; 26 27 foreach($xmlFilesInDir as $xmlfile) { 28 // Read the file to see if it's a valid template XML file 29 $parser =& new mosXMLDescription($languageDir.$xmlfile); 30 if ($parser->getType() != 'language') continue; 31 $row = new StdClass(); 32 $row->id = $rowid; 33 $row->language = substr($xmlfile,0,-4); 34 $row->name = $parser->getName('language'); 35 $row->creationdate = $parser->getCreationDate('language'); 36 $row->author = $parser->getAuthor('language'); 37 $row->copyright = $parser->getCopyright('language'); 38 $row->authorEmail = $parser->getAuthorEmail('language'); 39 $row->authorUrl = $parser->getAuthorUrl('language'); 40 $row->version = $parser->getVersion('language'); 41 $row->checked_out = 0; 42 $row->mosname = strtolower( str_replace( " ", "_", $row->name ) ); 43 $row->published = (mamboCore::get('mosConfig_locale') == $row->language) ? 1 : 0; 44 $rows[] = $row; 45 $rowid++; 46 47 48 } 49 50 $renderer->addvar('rows', $rows); 51 $renderer->addvar('content', $renderer->fetch('table.tpl.php')); 52 $renderer->display('form.tpl.php'); 53 } 54 } 55 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |