deprecated/classes/PodsAPI.php 1 location
|
@@ 29-39 (lines=11) @@
|
| 26 |
|
* @license http://www.gnu.org/licenses/gpl-2.0.html |
| 27 |
|
* @since 2.0 |
| 28 |
|
*/ |
| 29 |
|
public function __construct( $obj ) { |
| 30 |
|
|
| 31 |
|
// backwards-compatibility with references to $this->var_name |
| 32 |
|
$vars = get_object_vars( $obj ); |
| 33 |
|
|
| 34 |
|
foreach ( (array) $vars as $key => $val ) { |
| 35 |
|
$this->{$key} = $val; |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
// keeping references pointing back to the source |
| 39 |
|
$this->obj =& $obj; |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
/** |
deprecated/classes/Pods.php 1 location
|
@@ 27-37 (lines=11) @@
|
| 24 |
|
* @license http://www.gnu.org/licenses/gpl-2.0.html |
| 25 |
|
* @since 2.0 |
| 26 |
|
*/ |
| 27 |
|
public function __construct( $obj ) { |
| 28 |
|
|
| 29 |
|
// backwards-compatibility with references to $this->var_name |
| 30 |
|
$vars = get_object_vars( $obj ); |
| 31 |
|
|
| 32 |
|
foreach ( (array) $vars as $key => $val ) { |
| 33 |
|
$this->{$key} = $val; |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
// keeping references pointing back to the source |
| 37 |
|
$this->obj =& $obj; |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
/** |