BxDolJoinProcessor::__construct PHP Method

__construct() public method

public __construct ( $aParams = [] )
    function __construct($aParams = array())
    {
        $this->aErrors = array(0 => array(), 1 => array());
        $this->oPF = !empty($aParams['profile_fields']) ? $aParams['profile_fields'] : new BxDolProfileFields(1);
        $this->aValues = array();
        $this->aValues[0] = $this->aValues[1] = $this->oPF->getDefaultValues();
        // double arrays (for couples)
        $this->bAjaxMode = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest');
    }