SimplePie_XML_Declaration_Parser::standalone_value PHP Method

standalone_value() public method

public standalone_value ( )
    function standalone_value()
    {
        if ($standalone = $this->get_value()) {
            switch ($standalone) {
                case 'yes':
                    $this->standalone = true;
                    break;
                case 'no':
                    $this->standalone = false;
                    break;
                default:
                    $this->state = false;
                    return;
            }
            $this->skip_whitespace();
            if ($this->has_data()) {
                $this->state = false;
            } else {
                $this->state = 'emit';
            }
        } else {
            $this->state = false;
        }
    }