Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
*/
public function __construct($parent, $db_path)
{
*/
public function __construct($parent, $db_path)
{
- $this->parent = $parent;
+ global $phpfspot;
+
+ $this->parent = $phpfspot;
$this->db_path = $db_path;
/* We are starting disconnected */
$this->db_path = $db_path;
/* We are starting disconnected */
- var $db;
- var $parent;
+ private $db;
+ private $parent;
/**
* PHPFSPOT_IMG class constructor
/**
* PHPFSPOT_IMG class constructor
* the client - in the specified width. it also try's
* to create on-the-fly missing thumbnails via PHPFSPOT
* gen_thumbs function.
* the client - in the specified width. it also try's
* to create on-the-fly missing thumbnails via PHPFSPOT
* gen_thumbs function.
+ * @param integer $idx
+ * @param integer $width
*/
public function show($idx, $width = 0)
{
*/
public function show($idx, $width = 0)
{
if(isset($_GET['idx']) && (is_numeric($_GET['idx']) || $_GET['idx'] == 'rand')) {
if(isset($_GET['idx']) && (is_numeric($_GET['idx']) || $_GET['idx'] == 'rand')) {
*
***************************************************************************/
*
***************************************************************************/
+/**
+ * PHPFSPOT_TMPL class
+ *
+ * Extends Smarty base class with some additional functions
+ * @package phpfspot
+ */
class PHPFSPOT_TMPL extends Smarty {
class PHPFSPOT_TMPL extends Smarty {
+ /**
+ * class constructor
+ */
public function __construct()
{
global $phpfspot;
public function __construct()
{
global $phpfspot;
+ /**
+ * show template
+ *
+ * outputs the requested template
+ * @param string $template
+ */
public function show($template)
{
$this->display($template);
} // show()
public function show($template)
{
$this->display($template);
} // show()