| Server IP : 180.180.241.3 / Your IP : 216.73.216.216 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/administrator/components/com_phocamaps/tables/ |
Upload File : |
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
class TablePhocaMapsMarker extends JTable
{
var $id = null;
var $catid = null;
var $title = null;
var $alias = null;
var $latitude = null;
var $longitude = null;
var $gpslatitude = null;
var $gpslongitude = null;
var $displaygps = null;
var $icon = null;
var $description = null;
var $contentwidth = '';
var $contentheight = '';
var $markerwindow = null;
var $published = null;
var $checked_out = null;
var $checked_out_time = null;
var $ordering = null;
var $acces = null;
var $hits = null;
var $params = null;
function __construct( &$db ) {
parent::__construct( '#__phocamaps_marker', 'id', $db );
}
function check() {
if (trim( $this->title ) == '') {
$this->setError( JText::_( 'Marker must have a title') );
return false;
}
if(empty($this->alias)) {
$this->alias = $this->title;
}
$this->alias = JFilterOutput::stringURLSafe($this->alias);
if(trim(str_replace('-','',$this->alias)) == '') {
$datenow =& JFactory::getDate();
$this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S");
}
return true;
}
}
?>