private function formRelationships() { if ($this->registry->getObject('authenticate')->isLoggedIn() == true) { require_once FRAMEWORK_PATH . 'models/relationships.php'; $relationships = new Relationships($this->registry); $types = $relationships->getTypes(true); $this->registry->getObject('template')->addTemplateBit('form_relationship', 'members/form_relationship.tpl.php'); $this->registry->getObject('template')->getPage()->addPPTag('relationship_types', array('SQL', $types)); } else { $this->registry->getObject('template')->getPage()->addTag('form_relationship', '<!-- relationship types dropdown -->'); } }