本文整理汇总了PHP中Images::FindAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Images::FindAll方法的具体用法?PHP Images::FindAll怎么用?PHP Images::FindAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Images
的用法示例。
在下文中一共展示了Images::FindAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FindLastPage
function FindLastPage($perpage)
{
// Get the total number of posts
$allimages = Images::FindAll();
$rows = count($allimages);
// Find the page number of the last page
return ceil($rows / $perpage);
}
示例2: snippetPath
<a href="#hide_all" class="openclose droplink">Close</a>
</p>
<?php
if (in_array(getRequestVarAtIndex(1), $pages)) {
echo "\t<div id=\"areachild\" class=\"dropslide\"";
if (getRequestVarAtIndex(1) == "add_page") {
echo ">\n";
} else {
echo " style=\"display: none;\">\n";
}
SUB_PAGES ? require_once snippetPath("admin-area_child") : (require_once snippetPath("admin-area"));
echo "\t</div>\n";
}
$documents = Documents::FindAll();
require_once snippetPath("admin-insertDoc");
$images = Images::FindAll();
require_once snippetPath("admin-insertImage");
if (GALLERY_INSTALL && !in_array(getRequestVarAtIndex(1), $portfolio)) {
$galleries = Galleries::FindAll("DESC");
require_once snippetPath("admin-insertGallery");
}
if (PORTFOLIO_INSTALL && (ITEM_GALLERY_INSERT && !in_array(getRequestVarAtIndex(1), $portfolio))) {
//$galleries = Galleries::FindAll();
require_once snippetPath("admin-insertItemGallery");
}
if (VIDEO_INSTALL) {
require_once snippetPath("admin-insertVideo");
}
if (TESTIMONIAL_INSTALL) {
require_once snippetPath("admin-insertTestimonial");
}