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


PHP project::getAll方法代码示例

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


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

示例1: project

<?php

$p = new project();
$b = new bug();
$u = new user();
$u->getByCol("username", $argv[1]);
$user = $u->getNext();
$RIGHTS_OBJECT->getAllByPK($user['uID']);
$user_rights = $RIGHTS_OBJECT->getNext();
$p->getAll("owner", $user['uID']);
// this is goddamn awesome
$projects = $p->numrows();
$b->getByCol("package", $user["uID"]);
// this is goddamn awesome
$booboos = $b->numrows();
$critical = 0;
// doh // $b->specialSelect( "bug_status != 1" );
if (isset($user["username"])) {
    $projectList = "";
    $i = 0;
    while ($row = $p->getNext()) {
        $projectList .= "<li><a href='../project/" . $row['project_name'] . "'>" . $row['project_name'] . "</a></li>";
        $i++;
    }
    $TITLE = $user["username"] . ", one of the fantastic users on Whube";
    $CONTENT = "\n<h1>" . $user["username"] . "</h1>\nThis here be " . $user['real_name'] . ".<br />\nThere are " . $booboos . " bugs filed by " . $user['username'] . ". " . $critical . " are critical.<br />\n<br />\n" . $user_rights['admin'] . " - Admin<br />\n" . $user_rights['staff'] . " - Staff<br />\n" . $user_rights['doner'] . " - Doner<br />\n" . $user_rights['member'] . " - Member<br />\n" . $user_rights['banned'] . " - Banned<br />\n<br />\n\n" . ucwords($user['username']) . " is owner of " . $projects . " projects. These projects are: \n<ul>" . $projectList . "</ul>\n";
} else {
    $_SESSION['err'] = "User " . $argv[1] . " does not exist!";
    header("Location: {$SITE_PREFIX}" . "t/home");
    exit(0);
}
开发者ID:pedro3005,项目名称:whube,代码行数:31,代码来源:user.php

示例2: htmlentities

<?php

useScript("sorttable.js");
useScript("tablehover.js");
$Count = $PAGE_MAX_COUNT;
if (isset($argv[2])) {
    $class = htmlentities($argv[1], ENT_QUOTES);
    $id = htmlentities($argv[2], ENT_QUOTES);
}
$TITLE = "Latest {$Count} projects";
$i = 0;
$CONTENT .= "<h1>Last {$Count} projects created</h1>";
$CONTENT .= "\n<table class = 'sortable' >\n\t<tr class = 'nobg' >\n\t\t<th>Name</th> <th>Owner</th> <th>Bugs</th> <th>Private</th>\n\t</tr>\n";
$p = new project();
$p->getAll();
while ($row = $p->getNext()) {
    $i++;
}
$CONTENT .= "\n</table><br /><br />\n";
开发者ID:pedro3005,项目名称:whube,代码行数:19,代码来源:project-list.php


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