src/XQueue/Maileon/API/TargetGroups/TargetGroup.php
function fromXML($xmlElement)
    {

        $this->id = $xmlElement->id;
        $this->name = $xmlElement->name;
        $this->author = $xmlElement->author;
        $this->state = $xmlElement->state;
        $this->type = $xmlElement->type;
        $this->contactFilterName = $xmlElement->contact_filter_name;
        $this->contactFilterId = $xmlElement->contact_filter_id;
        $this->evaluated = $xmlElement->evaluated;
        $this->created = $xmlElement->created;
        $this->updated = $xmlElement->updated;
        $this->countActiveContacts = $xmlElement->count_active_contacts;
        $this->countContacts = $xmlElement->count_contacts;

    }
function fromXML($xmlElement)
    {

        $this->id = $xmlElement->id;
        $this->name = $xmlElement->name;
        $this->author = $xmlElement->author;
        $this->state = $xmlElement->state;
        $this->type = $xmlElement->type;
        $this->contactFilterName = $xmlElement->contact_filter_name;
        $this->contactFilterId = $xmlElement->contact_filter_id;
        $this->evaluated = $xmlElement->evaluated;
        $this->created = $xmlElement->created;
        $this->updated = $xmlElement->updated;
        $this->countActiveContacts = $xmlElement->count_active_contacts;
        $this->countContacts = $xmlElement->count_contacts;

    }
Initializes this target group from an XML representation.

@param SimpleXMLElement $xmlElement
the XML representation to use