| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: module.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla.Framework 5 * @subpackage Table 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 within the rest of the framework 16 defined('JPATH_BASE') or die(); 17 18 /** 19 * Module table 20 * 21 * @package Joomla.Framework 22 * @subpackage Table 23 * @since 1.0 24 */ 25 class JTableModule extends JTable 26 { 27 /** @var int Primary key */ 28 var $id = null; 29 /** @var string */ 30 var $title = null; 31 /** @var string */ 32 var $showtitle = null; 33 /** @var int */ 34 var $content = null; 35 /** @var int */ 36 var $ordering = null; 37 /** @var string */ 38 var $position = null; 39 /** @var boolean */ 40 var $checked_out = 0; 41 /** @var time */ 42 var $checked_out_time = 0; 43 /** @var boolean */ 44 var $published = null; 45 /** @var string */ 46 var $module = null; 47 /** @var int */ 48 var $numnews = null; 49 /** @var int */ 50 var $access = null; 51 /** @var string */ 52 var $params = null; 53 /** @var string */ 54 var $iscore = null; 55 /** @var string */ 56 var $client_id = null; 57 /** @var string */ 58 var $control = null; 59 60 /** 61 * Contructore 62 * 63 * @access protected 64 * @param database A database connector object 65 */ 66 function __construct( &$db ) { 67 parent::__construct( '#__modules', 'id', $db ); 68 } 69 70 /** 71 * Overloaded check function 72 * 73 * @access public 74 * @return boolean True if the object is ok 75 * @see JTable:bind 76 */ 77 function check() 78 { 79 // check for valid name 80 if (trim( $this->title ) == '') { 81 $this->setError(JText::sprintf( 'must contain a title', JText::_( 'Module') )); 82 return false; 83 } 84 85 return true; 86 } 87 88 /** 89 * Overloaded bind function 90 * 91 * @access public 92 * @param array $hash named array 93 * @return null|string null is operation was satisfactory, otherwise returns an error 94 * @see JTable:bind 95 * @since 1.5 96 */ 97 function bind($array, $ignore = '') 98 { 99 if (is_array( $array['params'] )) 100 { 101 $registry = new JRegistry(); 102 $registry->loadArray($array['params']); 103 $array['params'] = $registry->toString(); 104 } 105 106 if (isset( $array['control'] ) && is_array( $array['control'] )) 107 { 108 $registry = new JRegistry(); 109 $registry->loadArray($array['control']); 110 $array['control'] = $registry->toString(); 111 } 112 113 return parent::bind($array, $ignore); 114 } 115 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |