'doView','tooltip'=>'doToolTip'); function doView() { $this->DBObj->initFromDB(); $item = $this->DBObj->getData(); if (empty($item)) { $this->Doc->display404(); return $this; } $title = $item['first_name'] . ' ' . $item['last_name']; $description = $item['first_name'] . ' ' . $item['last_name']; if ($item['company_name']) { $title .= ', ' . $item['company_name']; $description .= ' of ' . $item['company_name']; } if ($item['city'] && $item['state']) { $title .= ', ' . $item['city'] . ' ' . $item['state']; $description .= ' in ' . $item['city'] . ' ' . $item['state']; } if (in_array($item['id_mncar_type'], array(1, 2, 3, 4))) { $description .= ' is a member'; } else { $description .= ' is an affiliate member'; } $description .= ' of the Minnesota Commercial Association of Realtors (MNCAR)'; $this->Doc->setTitle($title); $this->Doc->setDescription($description); $this->Doc->content['ITEMS'] = array(); $item['tpl'] = 'Member/show.tpl'; $item['back_url'] = $this->getBackUrl(); $this->Doc->addContent($item); return $this; } function doTooltipAjax() { $this->Doc->content['ITEMS'] = array(); $this->DBObj->initFromDB(); $item = $this->DBObj->getData(); require_once('class/Const.php'); Constant::set('DEBUG', false); $this->Doc->assign('item',$item); $this->Doc->setMainTpl('Member/tooltip.tpl'); echo ' '; } }