src/XQueue/Maileon/API/ContactFilters/ContactFilter.php
function fromXML($xmlElement)
    {
        $this->author = $xmlElement->author;
        $this->countContacts = $xmlElement->count_contacts;
        $this->countRules = $xmlElement->count_rules;
        $this->created = $xmlElement->created;
        $this->id = $xmlElement->id;
        $this->name = $xmlElement->name;
        $this->state = $xmlElement->state;
        if ($xmlElement->rules) {
            $rules = $xmlElement->rules;
            foreach ($rules as $rule) {
                array_push($this->rules, new Rule($rule->is_customfield, $rule->field, $rule->operator, $rule->value, $rule->type));
            }
        }
    }
function fromXML($xmlElement)
    {
        $this->author = $xmlElement->author;
        $this->countContacts = $xmlElement->count_contacts;
        $this->countRules = $xmlElement->count_rules;
        $this->created = $xmlElement->created;
        $this->id = $xmlElement->id;
        $this->name = $xmlElement->name;
        $this->state = $xmlElement->state;
        if ($xmlElement->rules) {
            $rules = $xmlElement->rules;
            foreach ($rules as $rule) {
                array_push($this->rules, new Rule($rule->is_customfield, $rule->field, $rule->operator, $rule->value, $rule->type));
            }
        }
    }
Initializes this contact filter from an XML representation.

@param SimpleXMLElement $xmlElement
the XML representation to use