protected function parse()
{
parent::parse();
$this->tpl->assign('notifyProfile', $this->notifyProfile);
// assign the active record and additional variables
$this->tpl->assign('profile', $this->profile);
// parse data grids
$this->tpl->assign('dgGroups', $this->dgGroups->getNumResults() != 0 ? $this->dgGroups->getContent() : false);
// show delete or undelete button?
if ($this->profile['status'] === 'deleted') {
$this->tpl->assign('deleted', true);
}
// show block or unblock button?
if ($this->profile['status'] === 'blocked') {
$this->tpl->assign('blocked', true);
}
}