public static function buildFilterElement($name, $status, $message = null, array $attributes = null)
    {
        $filter = new XMLElement('filter', (!$message || is_object($message) ? null : $message), array('name' => $name, 'status' => $status));

        if ($message instanceof XMLElement) {
            $filter->appendChild($message);
        }

        if (is_array($attributes)) {
            $filter->setAttributeArray($attributes);
        }

        return $filter;
    }
public static function buildFilterElement($name, $status, $message = null, array $attributes = null)
    {
        $filter = new XMLElement('filter', (!$message || is_object($message) ? null : $message), array('name' => $name, 'status' => $status));

        if ($message instanceof XMLElement) {
            $filter->appendChild($message);
        }

        if (is_array($attributes)) {
            $filter->setAttributeArray($attributes);
        }

        return $filter;
    }
public static function buildFilterElement ( $ name , $ status , $ message = null , array $ attributes = null ) { $ filter = new XMLElement ( 'filter' , ( ! $ message || is_object ( $ message ) ? null : $ message ) , array ( 'name' => $ name , 'status' => $ status ) ) ; if ( $ message instanceof XMLElement ) { $ filter -> appendChild ( $ message ) ; } if ( is_array ( $ attributes ) ) { $ filter -> setAttributeArray ( $ attributes ) ; } return $ filter ; }
This method will construct XML that represents the result of
an Event filter.

@param string $name
The name of the filter
@param string $status
The status of the filter, either passed or failed.
@param XMLElement|string $message
Optionally, an XMLElement or string to be appended to this
`<filter>` element. XMLElement allows for more complex return
types.
@param array $attributes
An associative array of additional attributes to add to this
`<filter>` element
@return XMLElement
This method will construct XML that represents the result of an Event filter .