Source code for file /joomla/registry/format/php.php
Documentation is available at php.php
* @version $Id: php.php 6472 2007-02-03 10:47:26Z pasamio $
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
// Check to ensure this file is within the rest of the framework
* PHP class format handler for JRegistry
* @package Joomla.Framework
* Converts an object into a php class string.
* - NOTE: Only one depth level is supported.
* @param object $object Data Source Object
* @param array $param Parameters used by the formatter
* @return string Config class formatted string
// Build the object variables string
$vars .=
"\tvar $".
$k .
" = '" .
addslashes($v) .
"';\n";
$str =
"<?php\nclass ".
$params['class'].
" {\n";