Source for file php.php
Documentation is available at php.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* PHP class format handler for JRegistry
* @package Joomla.Platform
* Converts an object into a php class string.
* - NOTE: Only one depth level is supported.
* @param object $object Data Source Object
* @param array $params Parameters used by the formatter
* @return string Config class formatted string
// Build the object variables string
$vars .=
"\tpublic $" .
$k .
" = '" .
addcslashes($v, '\\\'') .
"';\n";
$vars .=
"\tpublic $" .
$k .
" = " .
$this->getArrayString((array)
$v) .
";\n";
$str =
"<?php\nclass " .
$params['class'] .
" {\n";
// Use the closing tag if it not set to false in parameters.
if (!isset
($params['closingtag']) ||
$params['closingtag'] !==
false)
* Parse a PHP class formatted string and convert it into an object.
* @param string $data PHP Class formatted string to convert.
* @param array $options Options used by the formatter.
* @return object Data object.
* Method to get an array as an exported string.
* @param array $a The array to get as a string.
$s .=
'"' .
$k .
'" => ';
Documentation generated on Tue, 19 Nov 2013 15:10:31 +0100 by phpDocumentor 1.4.3