protected function createFields($pclass)
    {
        $fields = array();

        //This is to prevent HTMLEntities to be converted to the real character.
        $fields[] = $this->dom->createElement('description');
        end($fields)->appendChild(
            $this->dom->createTextNode($pclass->getDescription())
        );
        $fields[] = $this->dom->createElement(
            'months', $pclass->getMonths()
        );
        $fields[] = $this->dom->createElement(
            'startfee', $pclass->getStartFee()
        );
        $fields[] = $this->dom->createElement(
            'invoicefee', $pclass->getInvoiceFee()
        );
        $fields[] = $this->dom->createElement(
            'interestrate', $pclass->getInterestRate()
        );
        $fields[] = $this->dom->createElement(
            'minamount', $pclass->getMinAmount()
        );
        $fields[] = $this->dom->createElement(
            'country', $pclass->getCountry()
        );
        $fields[] = $this->dom->createElement(
            'expire', $pclass->getExpire()
        );

        return $fields;
    }
protected function createFields($pclass)
    {
        $fields = array();

        //This is to prevent HTMLEntities to be converted to the real character.
        $fields[] = $this->dom->createElement('description');
        end($fields)->appendChild(
            $this->dom->createTextNode($pclass->getDescription())
        );
        $fields[] = $this->dom->createElement(
            'months', $pclass->getMonths()
        );
        $fields[] = $this->dom->createElement(
            'startfee', $pclass->getStartFee()
        );
        $fields[] = $this->dom->createElement(
            'invoicefee', $pclass->getInvoiceFee()
        );
        $fields[] = $this->dom->createElement(
            'interestrate', $pclass->getInterestRate()
        );
        $fields[] = $this->dom->createElement(
            'minamount', $pclass->getMinAmount()
        );
        $fields[] = $this->dom->createElement(
            'country', $pclass->getCountry()
        );
        $fields[] = $this->dom->createElement(
            'expire', $pclass->getExpire()
        );

        return $fields;
    }
protected function createFields ( $ pclass ) { $ fields = array ( ) ; //This is to prevent HTMLEntities to be converted to the real character. $ fields [ ] = $ this -> dom -> createElement ( 'description' ) ; end ( $ fields ) -> appendChild ( $ this -> dom -> createTextNode ( $ pclass -> getDescription ( ) ) ) ; $ fields [ ] = $ this -> dom -> createElement ( 'months' , $ pclass -> getMonths ( ) ) ; $ fields [ ] = $ this -> dom -> createElement ( 'startfee' , $ pclass -> getStartFee ( ) ) ; $ fields [ ] = $ this -> dom -> createElement ( 'invoicefee' , $ pclass -> getInvoiceFee ( ) ) ; $ fields [ ] = $ this -> dom -> createElement ( 'interestrate' , $ pclass -> getInterestRate ( ) ) ; $ fields [ ] = $ this -> dom -> createElement ( 'minamount' , $ pclass -> getMinAmount ( ) ) ; $ fields [ ] = $ this -> dom -> createElement ( 'country' , $ pclass -> getCountry ( ) ) ; $ fields [ ] = $ this -> dom -> createElement ( 'expire' , $ pclass -> getExpire ( ) ) ; return $ fields ; }
Creates DOMElement for all fields for specified PClass.

@param KlarnaPClass $pclass pclass object

@return array Array of DOMElements.
Creates DOMElement for all fields for specified PClass .