<?php
/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
+ * Copyright (C) 2003-2006 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
class Trombi extends XOrgPlugin
{
// {{{ properties
-
- var $_get_vars = Array('offset');
+
+ var $_get_vars = array('offset');
var $limit = 24;
var $admin = false;
var $showpromo = true;
// }}}
// {{{ function setNbRows()
-
+
function setNbRows($row)
{ $this->limit = $row*3; }
// }}}
// {{{ function setAdmin()
-
+
function setAdmin()
{ $this->admin = true; }
// }}}
// {{{ function hidePromo()
-
+
function hidePromo()
{ $this->showpromo = false; }
// }}}
// {{{ function show()
-
+
function show()
{
/* this point is nasty... but since show() is called from the template ...
$page->assign('trombi_admin', $this->admin);
return $page->fetch('include/trombi.tpl');
}
-
+
// }}}
}