[ Index ]

PHP Cross Reference of Joomla 1.5.25

title

Body

[close]

/administrator/components/com_newsfeeds/tables/ -> newsfeed.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: newsfeed.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla
   5  * @subpackage    Newsfeeds
   6  * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   7  * @license        GNU/GPL, see LICENSE.php
   8  * Joomla! is free software. This version may have been modified pursuant
   9  * to the GNU General Public License, and as distributed it includes or
  10  * is derivative of works licensed under the GNU General Public License or
  11  * other free or open source software licenses.
  12  * See COPYRIGHT.php for copyright notices and details.
  13  */
  14  
  15  // Check to ensure this file is included in Joomla!
  16  defined('_JEXEC') or die( 'Restricted access' );
  17  
  18  /**
  19  * @package        Joomla
  20  * @subpackage    Newsfeeds
  21  */
  22  class TableNewsFeed extends JTable
  23  {
  24      /** @var int Primary key */
  25      var $id                    = null;
  26      /** @var int */
  27      var $catid                = null;
  28      /** @var string */
  29      var $name                = null;
  30      /** @var string */
  31      var $alias                = null;
  32      /** @var string */
  33      var $link                = null;
  34      /** @var string */
  35      var $filename            = null;
  36      /** @var int */
  37      var $published            = null;
  38      /** @var int */
  39      var $numarticles            = null;
  40      /** @var int */
  41      var $cache_time            = null;
  42      /** @var int */
  43      var $checked_out            = 0;
  44      /** @var time */
  45      var $checked_out_time        = 0;
  46      /** @var int */
  47      var $ordering            = null;
  48      /** @var int */
  49      var $rtl                    = 0;
  50  
  51      /**
  52       * @param database A database connector object
  53       */
  54  	function __construct( &$db ) {
  55          parent::__construct( '#__newsfeeds', 'id', $db );
  56      }
  57  
  58      /**
  59       * Overloaded check function
  60       *
  61       * @access public
  62       * @return boolean
  63       * @see JTable::check
  64       * @since 1.5
  65       */
  66  	function check()
  67      {
  68          if(empty($this->alias)) {
  69              $this->alias = $this->name;
  70          }
  71          $this->alias = JFilterOutput::stringURLSafe($this->alias);
  72          if(trim(str_replace('-','',$this->alias)) == '') {
  73              $datenow =& JFactory::getDate();
  74              $this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S");
  75          }
  76  
  77          return true;
  78      }
  79  }


Generated: Mon Nov 14 16:47:20 2011 Cross-referenced by PHPXref 0.7.1