XML_RPC_Message::character_data PHP Method

character_data() public method

Parse character data
public character_data ( $the_parser, $data ) : void
return void
    public function character_data($the_parser, $data)
    {
        $the_parser = (string) $the_parser;
        if ($this->xh[$the_parser]['isf'] > 1) {
            return;
        }
        // XML Fault found already
        // If a value has not been found
        if ($this->xh[$the_parser]['lv'] !== 3) {
            if ($this->xh[$the_parser]['lv'] === 1) {
                $this->xh[$the_parser]['lv'] = 2;
                // Found a value
            }
            if (!isset($this->xh[$the_parser]['ac'])) {
                $this->xh[$the_parser]['ac'] = '';
            }
            $this->xh[$the_parser]['ac'] .= $data;
        }
    }