Horde_ActiveSync_Wbxml_Decoder::isEmptyElement PHP Method

isEmptyElement() public method

Returns whether or not the passed in element array represents an empty tag.
public isEmptyElement ( array $el ) : boolean
$el array The element array.
return boolean True if $el is an empty start tag, otherwise false.
    public function isEmptyElement($el)
    {
        if (!is_array($el)) {
            return false;
        }
        switch ($el[self::EN_TYPE]) {
            case self::EN_TYPE_STARTTAG:
                return !($el[self::EN_FLAGS] & self::EN_FLAGS_CONTENT);
            default:
                // Not applicable.
                return false;
        }
    }