<?php
/**
* @version Beta 1.1 2008-07-29 11:50:00 $
* @package SkyBlueCanvas
* @copyright Copyright (C) 2005 - 2008 Scott Edwin Lewis. All rights reserved.
* @license GNU/GPL, see COPYING.txt
* SkyBlueCanvas is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYING.txt for copyright notices and details.
*/
class testimonials_dashboard
{
var $title = 'Testimonials';
var $link = '?mgroup=collections&mgr=';
var $mgroup = 'collections';
var $group = 'active';
var $base = 1;
var $hassubmenu = 0;
var $hasmodule = 0;
// $linktodashboard: boolean value that tells the dashboard loader
// ( mod.dashboard.php ) whether or not to link back to the section
// dashboard. Your code should determine under what circumstances
// to include the backlink so that the system does not need to have
// any knowledge of how your manager works.
//
// mod.dashboard.php will build the link and control what the link looks
// like. The system is set up this way so that the look of the controls
// is consistent for usability purposes.
var $linktodashboard = NULL;
function __construct()
{
$this->InitDashLink();
$this->link .= str_replace('_dashboard',NULL,__CLASS__);
}
function testimonials_dashboard()
{
$this->__construct();
}
function GetEvent()
{
global $Core;
$event = $Core->GetVar( $_POST, 'submit', NULL );
$event = $Core->GetVar( $_GET, 'sub', $event );
$event = str_replace( ' ', NULL, $event );
$event = strtolower( $event );
return $event;
}
function initDashLink()
{
if ( strpos($this->getEvent(),"add") !== FALSE ||
strpos($this->getEvent(),"edit") !== FALSE ||
strpos($this->getEvent(),"delete") !== FALSE ||
strpos($this->getEvent(),"save") !== FALSE ||
strpos($this->getEvent(),"cancel") !== FALSE)
{
$this->linktodashboard = 0;
}
else
{
$this->linktodashboard = 1;
}
}
}
?>