| 1 |
lars |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Object clone method
|
|
|
4 |
*
|
|
|
5 |
* phpDocumentor :: automatic documentation generator
|
|
|
6 |
*
|
|
|
7 |
* PHP versions 4 and 5
|
|
|
8 |
*
|
|
|
9 |
* Copyright (c) 2001-2006 Gregory Beaver
|
|
|
10 |
*
|
|
|
11 |
* LICENSE:
|
|
|
12 |
*
|
|
|
13 |
* This library is free software; you can redistribute it
|
|
|
14 |
* and/or modify it under the terms of the GNU Lesser General
|
|
|
15 |
* Public License as published by the Free Software Foundation;
|
|
|
16 |
* either version 2.1 of the License, or (at your option) any
|
|
|
17 |
* later version.
|
|
|
18 |
*
|
|
|
19 |
* This library is distributed in the hope that it will be useful,
|
|
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
22 |
* Lesser General Public License for more details.
|
|
|
23 |
*
|
|
|
24 |
* You should have received a copy of the GNU Lesser General Public
|
|
|
25 |
* License along with this library; if not, write to the Free Software
|
|
|
26 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
27 |
*
|
|
|
28 |
* @category ToolsAndUtilities
|
|
|
29 |
* @package phpDocumentor
|
|
|
30 |
* @author Greg Beaver <cellog@php.net>
|
|
|
31 |
* @copyright 2001-2006 Gregory Beaver
|
|
|
32 |
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
|
|
33 |
* @version CVS: $Id: clone.inc.php 243202 2007-09-30 02:08:08Z ashnazg $
|
|
|
34 |
* @filesource
|
|
|
35 |
* @link http://www.phpdoc.org
|
|
|
36 |
* @link http://pear.php.net/PhpDocumentor
|
|
|
37 |
* @since 1.0rc1
|
|
|
38 |
* @todo CS cleanup - change package to PhpDocumentor
|
|
|
39 |
*/
|
|
|
40 |
/**
|
|
|
41 |
* Clone an object in PHP 4
|
|
|
42 |
*
|
|
|
43 |
* @param object $obj the object to be cloned
|
|
|
44 |
*
|
|
|
45 |
* @return object the new clone
|
|
|
46 |
* @todo CS cleanup - rename function to PhpDocumentor_clone
|
|
|
47 |
*/
|
|
|
48 |
function phpDocumentor_clone($obj)
|
|
|
49 |
{
|
|
|
50 |
return $obj;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
?>
|