projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Uses trig utilities whenever it is possible.
[platal.git]
/
classes
/
plset.php
diff --git
a/classes/plset.php
b/classes/plset.php
index
71bd5ee
..
40183b7
100644
(file)
--- a/
classes/plset.php
+++ b/
classes/plset.php
@@
-154,7
+154,7
@@
class PlSet
return $view;
}
return $view;
}
- public function apply($baseurl, Pl
atal
Page &$page, $view = null, $data = null)
+ public function apply($baseurl, PlPage &$page, $view = null, $data = null)
{
$view =& $this->buildView($view, $data);
if (is_null($view)) {
{
$view =& $this->buildView($view, $data);
if (is_null($view)) {
@@
-164,7
+164,7
@@
class PlSet
if (!isset($args['rechercher'])) {
$args['rechercher'] = 'Chercher';
}
if (!isset($args['rechercher'])) {
$args['rechercher'] = 'Chercher';
}
- $page->c
hangeTpl('core/
plset.tpl');
+ $page->c
oreTpl('
plset.tpl');
$page->assign('plset_base', $baseurl);
$page->assign('plset_mods', $this->mods);
$page->assign('plset_mod', $this->mod);
$page->assign('plset_base', $baseurl);
$page->assign('plset_mods', $this->mods);
$page->assign('plset_mod', $this->mod);
@@
-182,7
+182,7
@@
class PlSet
interface PlView
{
public function __construct(PlSet &$set, $data, array $params);
interface PlView
{
public function __construct(PlSet &$set, $data, array $params);
- public function apply(Pl
atal
Page &$page);
+ public function apply(PlPage &$page);
public function args();
}
public function args();
}
@@
-261,7
+261,7
@@
abstract class MultipageView implements PlView
abstract public function templateName();
abstract public function templateName();
- public function apply(Pl
atal
Page &$page)
+ public function apply(PlPage &$page)
{
$res = $this->set->get($this->fields(),
$this->joins(),
{
$res = $this->set->get($this->fields(),
$this->joins(),
@@
-291,7
+291,7
@@
abstract class MultipageView implements PlView
$page->assign_by_ref('set', $res);
$count = $this->set->count();
$this->pages = intval(ceil($count / $this->entriesPerPage));
$page->assign_by_ref('set', $res);
$count = $this->set->count();
$this->pages = intval(ceil($count / $this->entriesPerPage));
- return
'include/plview.multipage.tpl'
;
+ return
PlPage::getCoreTpl('plview.multipage.tpl')
;
}
public function args()
}
public function args()