'
',
'ol' => '%s
',
'li' => '%s',
);
/***FOR RETURNING LISTS and parsing the 'id' of a list to a particular URL****/
function linkedList($list, $link, $attributes = array(), $itemAttributes = array(), $tag = 'ul') {
if(is_string($list)) {
//if an error occured
return $list;
exit;
}
if (is_string($attributes)) {
$tag = $attributes;
$attributes = array();
}
$items = $this->__linkedListItem($list, $link);
return sprintf($this->tags[$tag], $this->_parseAttributes($attributes, null, ' ', ''), $items);
}
function __linkedListItem($items, $link) {
$out = '';
$index = 1;
foreach($items as $key) {
$out .= '' . $key['name'] . '(' . $key['member_count'] . ')' . '';
$index++;
}
return $out;
}
/***FOR RETURNING MEMBERS FOR LIST and parsing the 'id' of a list to a particular URL****/
function linkedMembersList($list, $id, $link, $attributes = array(), $itemAttributes = array(), $tag = 'ul') {
if(is_string($list)) {
//if an error occured
return $list;
exit;
}
if (is_string($attributes)) {
$tag = $attributes;
$attributes = array();
}
$items = $this->__linkedMembersListItem($list, $id, $link);
return sprintf($this->tags[$tag], $this->_parseAttributes($attributes, null, ' ', ''), $items);
}
function __linkedMembersListItem($items,$id, $link) {
$out = '';
$index = 1;
foreach($items as $key) {
$out .= '' . $index . ' ' . $key['email'] . '' . ' Remove from List ' . '';
$index++;
}
return $out;
}
}
?>