本文整理汇总了PHP中Story::getContributions方法的典型用法代码示例。如果您正苦于以下问题:PHP Story::getContributions方法的具体用法?PHP Story::getContributions怎么用?PHP Story::getContributions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Story
的用法示例。
在下文中一共展示了Story::getContributions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Story
?>
<body>
<?php
require_once './classes/Story.php';
$storytime = new Story();
include './php/header.php';
?>
<section class="title">
<h1>One-Word-At-a-Time</h1>
<h2>Crowdsourced stories created one word at a time</h2>
<h3>Total Stories: <?php
echo $storytime->getNumStories();
?>
</h3>
<h3>Total Contributions: <?php
echo $storytime->getContributions();
?>
</h3>
</section>
<section class="content">
<ul class="list">
<li><form class="search" method="POST" action="./listStories.php?search"><input type="submit" value="Go" class="go" /><input placeholder="Search" name="search" class="list-item" /></form></li>
<li><a href="./viewStory.php?random" class="go">Go</a><a href="./viewStory.php?random" class="list-item">Random</a></li>
<li><a href="./listStories.php?top" class="go">Go</a><a href="./listStories.php?top" class="list-item">Top</a></li>
<li><a href="./listStories.php?recent" class="go">Go</a><a href="./listStories.php?recent" class="list-item">Recent</a></li>
<li><a href="./newStory.php" class="go">Go</a><a href="./newStory.php" class="list-item">New Story</a></li>
</ul>
</section>
<?php
include './php/footer.php';
?>