本文整理汇总了PHP中action::display方法的典型用法代码示例。如果您正苦于以下问题:PHP action::display方法的具体用法?PHP action::display怎么用?PHP action::display使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类action
的用法示例。
在下文中一共展示了action::display方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display()
{
if ($this->jump == true) {
$say = '<p>
<strong>The ball was delivered ' . $this->arm . ' handed by ' . $this->name . ' with great skill!</strong>
</p>';
} else {
if ($this->jump == false) {
$say = '<p>
<strong>The ball was delivered ' . $this->arm . ' handed by ' . $this->name . ' with little skill!</strong>
</p>';
}
}
return $say . '
<p>
Skill One ' . $this->speed . ' / ' . $this->skill1 . '
</p>
<p>
Skill Two ' . $this->jump . ' / ' . $this->skill2 . '
</p>';
}
}
#############################
#############################
##USAGE Example
#############################
#############################
$bowler = new action();
$bowler->set('Steven Finn', 'r', rand(0, 100), rand(0, 100));
echo $bowler->display();
示例2: assoc_links
function assoc_links($id)
{
$tempArray = thesaurus::get_assoc($id);
echo "<form method='get' action='index.php' name='vb'>";
echo "<fieldset>";
echo "<legend>Verwandte Begriffe</legend>";
$x = 0;
$listArray = array();
if ($tempArray) {
foreach ($tempArray as $entry) {
$listArray[$x++] = thesaurus::get_descriptor($entry);
}
}
echo_selection($listArray, "id", "", 3, "assoc-field");
// display action line
action::display($id, 3);
echo "</fieldset>";
echo "</form>";
}