本文整理汇总了PHP中PoTable::findByDESC方法的典型用法代码示例。如果您正苦于以下问题:PHP PoTable::findByDESC方法的具体用法?PHP PoTable::findByDESC怎么用?PHP PoTable::findByDESC使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PoTable
的用法示例。
在下文中一共展示了PoTable::findByDESC方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Paging
<div class="dt-sc-margin100"></div>
<!-- Container starts-->
<div class="container">
<!-- Primary Starts -->
<section id="primary" class="content-full-width">
<!-- **portfolio-container - Starts** -->
<div class="portfolio-container">
<?php
$p = new Paging();
$batas = 8;
$posisi = $p->cariPosisi($batas);
$tablealb = new PoTable('valbum');
$dataalbs = $tablealb->findAllLimit(id_album, "DESC", "{$posisi},{$batas}");
foreach ($dataalbs as $dataalb) {
$tablevid = new PoTable('video');
$datavids = $tablevid->findByDESC(id_album, $dataalb->id_album, id_video);
$datavid = $datavids->current();
?>
<div class="portfolio dt-sc-one-third column with-space">
<!-- **portfolio-thumb - Starts** -->
<div class="portfolio-thumb">
<img src="<?php
echo $website_url;
?>
/po-content/po-upload/medium/medium_<?php
echo $datavid->picture;
?>
" alt="<?php
echo $dataalb->title;
?>
" />
示例2: PoTable
$changefreq = $val->validasi($_POST['changefreq'], 'xss');
$priority = $val->validasi($_POST['priority'], 'xss');
$tableset = new PoTable('setting');
$currentSet = $tableset->findBy(id_setting, '1');
$currentSet = $currentSet->current();
$website_url = $currentSet->website_url;
$sitemap = new Sitemap($website_url);
$sitemap->setPath('../../../');
$sitemap->addItem('/', $priority, $changefreq, $tgl_sekarang);
$tablepages = new PoTable('pages');
$datapagess = $tablepages->findByDESC('active', 'Y', 'id_pages');
foreach ($datapagess as $datapages) {
$sitemap->addItem('/pages/' . $datapages->seotitle, $priority, $changefreq, $datapages->date);
}
$tablecat = new PoTable('category');
$datacats = $tablecat->findByDESC('active', 'Y', 'id_category');
foreach ($datacats as $datacat) {
$sitemap->addItem('/category/' . $datacat->seotitle, $priority, $changefreq, $tgl_sekarang);
}
$tablepost = new PoTable('post');
$dataposts = $tablepost->findByDESC('active', 'Y', 'id_post');
foreach ($dataposts as $dataposts) {
$sitemap->addItem('/detailpost/' . $dataposts->seotitle, $priority, $changefreq, $dataposts->date);
}
$sitemap->createSitemapIndex($website_url, 'Today');
header('location:../../../sitemap.xml');
} else {
header('location:../../404.php');
}
}
}
示例3: Paging
<div class="dt-sc-margin100"></div>
<!-- Container starts-->
<div class="container">
<!-- Primary Starts -->
<section id="primary" class="content-full-width">
<!-- **portfolio-container - Starts** -->
<div class="portfolio-container">
<?php
$p = new Paging();
$batas = 8;
$posisi = $p->cariPosisi($batas);
$tablealb = new PoTable('album');
$dataalbs = $tablealb->findAllLimit(id_album, "DESC", "{$posisi},{$batas}");
foreach ($dataalbs as $dataalb) {
$tablegal = new PoTable('gallery');
$datagals = $tablegal->findByDESC(id_album, $dataalb->id_album, id_gallery);
$datagal = $datagals->current();
?>
<div class="portfolio dt-sc-one-third column with-space">
<!-- **portfolio-thumb - Starts** -->
<div class="portfolio-thumb">
<img src="<?php
echo $website_url;
?>
/po-content/po-upload/medium/medium_<?php
echo $datagal->picture;
?>
" alt="<?php
echo $dataalb->title;
?>
" />