当前位置: 首页>>代码示例>>PHP>>正文


PHP message::getProjectMessages方法代码示例

本文整理汇总了PHP中message::getProjectMessages方法的典型用法代码示例。如果您正苦于以下问题:PHP message::getProjectMessages方法的具体用法?PHP message::getProjectMessages怎么用?PHP message::getProjectMessages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在message的用法示例。


在下文中一共展示了message::getProjectMessages方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: elseif

        $item->author = $message["username"];
        $rss->addItem($item);
    }
    echo $rss->saveFeed("RSS2.0", CL_ROOT . "/files/" . CL_CONFIG . "/ics/mymsgs-{$user}.xml");
} elseif ($action == "projectmessages") {
    // check if the user is allowed to edit messages
    if (!$userpermissions["messages"]["add"]) {
        $errtxt = $langfile["nopermission"];
        $noperm = $langfile["accessdenied"];
        $template->assign("errortext", "<h2>{$errtxt}</h2><br>{$noperm}");
        $template->display("error.tpl");
        die;
    }
    $msg = new message();
    // get all messages of this project
    $messages = $msg->getProjectMessages($project);
    // get project's name
    $myproject = new project();
    $pro = $myproject->getProject($project);
    $projectname = $pro['name'];
    $template->assign("projectname", $projectname);
    // get the page title
    $title = $langfile['messages'];
    if (!empty($messages)) {
        $mcount = count($messages);
    } else {
        $mcount = 0;
    }
    $strpro = $langfile["project"];
    $tit = $langfile["messages"];
    $rss->title = $projectname . " / " . $tit;
开发者ID:veganaize,项目名称:Collabtive,代码行数:31,代码来源:managerss.php

示例2: milestone

$milestone = new milestone();
$mtask = new task();
$msg = new message();
// create arrays to hold data
$messages = array();
$milestones = array();
$tasks = array();
// create a counter for the foreach loop
$cou = 0;
// If user has projects, loop through them and get the messages and tasks belonging to those projects
if (!empty($myOpenProjects)) {
    foreach ($myOpenProjects as $proj) {
        // get all the tasks in this project that are assigned to the current user
        $task = $mtask->getAllMyProjectTasks($proj["ID"], 100);
        // get all messages in the project
        $msgs = $msg->getProjectMessages($proj["ID"]);
        // write those to arrays
        if (!empty($msgs)) {
            array_push($messages, $msgs);
        }
        if (!empty($task)) {
            array_push($tasks, $task);
        }
        $cou = $cou + 1;
    }
}
$myClosedProjects = $project->getMyProjects($userid, 0);
// If the user is allowed to add projects, also get all users to assign to those projects
if ($userpermissions["projects"]["add"]) {
    $user = new user();
    $users = $user->getAllUsers(1000000);
开发者ID:veganaize,项目名称:Collabtive,代码行数:31,代码来源:index.php

示例3: project

 if (!$userpermissions["messages"]["view"]) {
     $errtxt = $langfile["nopermission"];
     $noperm = $langfile["accessdenied"];
     $template->assign("errortext", "{$errtxt}<br>{$noperm}");
     $template->display("error.tpl");
     die;
 }
 if (!chkproject($userid, $id)) {
     $errtxt = $langfile["notyourproject"];
     $noperm = $langfile["accessdenied"];
     $template->assign("errortext", "{$errtxt}<br>{$noperm}");
     $template->display("error.tpl");
     die;
 }
 // get all messages of this project
 $messages = $msg->getProjectMessages($id);
 // get project's name
 $myproject = new project();
 $pro = $myproject->getProject($id);
 $members = $myproject->getProjectMembers($id, 10000);
 $projectname = $pro['name'];
 $template->assign("projectname", $projectname);
 // get the page title
 $title = $langfile['messages'];
 $template->assign("title", $title);
 if (!empty($messages)) {
     $mcount = count($messages);
 } else {
     $mcount = 0;
 }
 // get files of the project
开发者ID:Setrino,项目名称:collabtive,代码行数:31,代码来源:managemessage.php


注:本文中的message::getProjectMessages方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。