本文整理匯總了PHP中Author::GetAuthors方法的典型用法代碼示例。如果您正苦於以下問題:PHP Author::GetAuthors方法的具體用法?PHP Author::GetAuthors怎麽用?PHP Author::GetAuthors使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Author
的用法示例。
在下文中一共展示了Author::GetAuthors方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
echo $translator->trans('Author');
?>
</th>
<th><?php
echo $translator->trans('Type');
?>
</th>
<th><?php
echo $translator->trans('Delete');
?>
</th>
</tr>
</thead>
<tbody>
<?php
$authors = Author::GetAuthors();
$i = 0;
foreach ($authors as $author) {
?>
<tr onclick="getRow(<?php
echo $author->getId();
?>
)"
onmouseover="setPointer(this, 0, 'over');" onmouseout="setPointer(this, 0, 'out');" style="cursor:pointer">
<td><?php
echo $author->getName();
?>
</td>
<td><?php
echo l_getType($author->getTypeWithNames());
?>
示例2: putGS
</label></dt>
<dd><input id="filter_to" type="text" name="publish_date_to"
class="date" /></dd>
</dl>
<dl>
<dt><label for="filter_author"><?php
putGS('Author');
?>
</label></dt>
<dd><select name="author">
<option value=""><?php
putGS('All');
?>
</option>
<?php
foreach (Author::GetAuthors() as $author) {
?>
<option value="<?php
echo htmlspecialchars($author->getName());
?>
"><?php
echo htmlspecialchars($author->getName());
?>
</option>
<?php
}
?>
</select></dd>
</dl>
<dl>
<dt><label for="filter_creator"><?php
示例3: getAuthors
public function getAuthors()
{
$authors = \Author::GetAuthors();
return count($authors);
}