public static function createAssociationsDrawerXMLElement($value, Entry $e, array $parent_association, $prepopulate = '')
    {
        $li = new XMLElement('li');
        $a = new XMLElement('a', $value);
        $a->setAttribute('href', SYMPHONY_URL . '/publish/' . $parent_association['handle'] . '/edit/' . $e->get('id') . '/' . $prepopulate);
        $li->appendChild($a);
        return $li;
    }
public static function createAssociationsDrawerXMLElement($value, Entry $e, array $parent_association, $prepopulate = '')
    {
        $li = new XMLElement('li');
        $a = new XMLElement('a', $value);
        $a->setAttribute('href', SYMPHONY_URL . '/publish/' . $parent_association['handle'] . '/edit/' . $e->get('id') . '/' . $prepopulate);
        $li->appendChild($a);
        return $li;
    }
public static function createAssociationsDrawerXMLElement ( $ value , Entry $ e , array $ parent_association , $ prepopulate = '' ) { $ li = new XMLElement ( 'li' ) ; $ a = new XMLElement ( 'a' , $ value ) ; $ a -> setAttribute ( 'href' , SYMPHONY_URL . '/publish/' . $ parent_association [ 'handle' ] . '/edit/' . $ e -> get ( 'id' ) . '/' . $ prepopulate ) ; $ li -> appendChild ( $ a ) ; return $ li ; }
This is general purpose factory method that makes it easier to create the
markup needed in order to create an Associations Drawer XMLElement.

@since Symphony 2.5.0

@param string $value
The value to display in the link
@param Entry $e
The associated entry
@param array $parent_association
An array containing information about the association
@param string $prepopulate
A string containing prepopulate parameter to append to the association url

@return XMLElement
The XMLElement must be a li node, since it will be added an ul node.
This is general purpose factory method that makes it easier to create the markup needed in order to create an Associations Drawer XMLElement .