WordPress at a glance
function is not described

IXR_Value::__construct() public WP 1.0

PHP5 constructor.

{} It's a method of the class: IXR_Value{}

No Hooks.

Return

Null. Nothing.

Usage

$IXR_Value = new IXR_Value();
$IXR_Value->__construct( $data, $type );

Code of IXR_Value::__construct() WP 5.5.1

<?php
function __construct( $data, $type = false )
    {
        $this->data = $data;
        if (!$type) {
            $type = $this->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]);
            }
        }
    }