public function getUserGroup($con = null) { include_once 'lib/model/om/BaseUserGroupPeer.php'; if ($this->aUserGroup === null && $this->user_group_id !== null) { $this->aUserGroup = UserGroupPeer::retrieveByPK($this->user_group_id, $con); } return $this->aUserGroup; }
</tr> <tr class="page_home"><td class="page_home" colspan="2"> <div class="home_profile"> <div style="float:left; width: 50%;"><?php echo image_tag('foto.jpg', array('class' => 'picture_page')); ?> </div> <div style="float:left; width: 50%;"> <h2 class="titlesubmenu">Username</h2> <h3 class="titletext"><?php echo $this->getContext()->getUser()->getAttribute('username', '', 'bo'); ?> </h3> <h2 class="titlesubmenu">Role</h2> <h3 class="titletext"><?php echo UserGroupPeer::retrieveByPK($this->getContext()->getUser()->getAttribute('group_id', '', 'bo'))->getName(); ?> </h3> <h2 class="titlesubmenu">Tingkat</h2> <h3 class="titletext"><?php echo DepartmentPeer::retrieveByPK($this->getContext()->getUser()->getAttribute('department_id', '', 'bo'))->getName(); ?> </h3> </div> </div> <?php $c = new Criteria(); $dept = $this->getContext()->getUser()->getAttribute('department', null, 'bo'); $c->add(PublicInformationPeer::DEPARTMENT_ID, $dept->getChildRecurs(), Criteria::IN); $c->add(PublicInformationPeer::PUBLISHED, 1, Criteria::IN); $information = PublicInformationPeer::doSelect($c);