IXR_Value::__construct() – PHP5 constructor.
You appear to be a bot. Output may be restricted
Description
PHP5 constructor.
Usage
IXR_Value::__construct( $data, $type );
Parameters
- $data
- ( mixed ) required –
- $type
- ( mixed ) optional –
Returns
void
Source
File name: wordpress/wp-includes/IXR/class-IXR-value.php
Lines:
1 to 19 of 19
function __construct( $data, $type = false ) { $this->data = $data; if (!$type) { $type = $this->IXR_Value::calculateType(); } $this->type = $type; if ($type == 'struct') { // Turn all the values in the array in to new IXR_Value objects foreach ($this->data as $key => $value) { $this->data[$key] = new IXR_Value($value); } } if ($type == 'array') { for ($i = 0, $j = count($this->data); $i < $j; $i++) { $this->data[$i] = new IXR_Value($this->data[$i]); } } }