api/MarkLogic/MLPHP/Values.php
private function addValuesOptions($dom, $elem)
    {
        if (!empty($this->valuesOptions)) {
            foreach($this->valuesOptions as $opt) {
                $valuesElem = $dom->createElement('values-option');
                $valuesElem->nodeValue = $opt;
                $elem->appendChild($valuesElem);
            }
        }
        return $elem;
    }
private function addValuesOptions($dom, $elem)
    {
        if (!empty($this->valuesOptions)) {
            foreach($this->valuesOptions as $opt) {
                $valuesElem = $dom->createElement('values-option');
                $valuesElem->nodeValue = $opt;
                $elem->appendChild($valuesElem);
            }
        }
        return $elem;
    }
Add values options to an element.

@param DOMDocument $dom A DOM document.
@param DOMElement $elem A DOM element.
@return DOMElement The updated element.