コード例 #1
0
 public function loadSubscription()
 {
     //get all channels
     $channel = new NewsChannel();
     $arrChannel = $channel->getWhere("channel_active = 1");
     //get my level and org
     $org = RoleOrganization::getMy();
     $lvl = RoleLevel::getMy();
     foreach ($arrChannel as $chn) {
         $id = $chn->channel_id . "_" . $org->organization_id;
         $n = new NewsChannel2Org();
         $n->getByID($id);
         if (isset($n->c2d_level_id) && $lvl->level_id >= $n->c2d_level_id && $n->c2d_level_id) {
             $_SESSION['newsfeed'][] = $chn->channel_id;
         }
     }
 }
コード例 #2
0
        <h3 style="padding-left: 10px; padding-top: 0px; margin-top: 0;"><?php 
echo $roleObj->getName();
?>
</h3>
        <table class="table table-striped">
            
            <tr>
                <td>
                    <?php 
echo Lang::t('Department');
?>
 :
                </td>
                <td>
                    <?php 
echo RoleOrganization::getMy()->organization_name;
?>
                </td>
                
            </tr>
            <tr>
                <td>
                    <?php 
echo Lang::t('Level');
?>
 :
                </td>
                
                <td>
                    <?php 
echo RoleLevel::getMy()->level_name;
コード例 #3
0
 public function mydepartment()
 {
     //wall setting is done here
     $org = RoleOrganization::getMy();
     //set the target_id
     $_GET['kelasid'] = $org->organization_id;
     //pr($org);
     if (!isset($_GET['kelasid'])) {
         die("No Target ID");
     }
     //set the target name
     $_GET['type'] = "RoleOrganization";
     $p = new PortalHierarchy();
     $p->departmentPage();
 }