Support Joomla!
Main
News
Help
Forum
Extensions
Shop
Developers
Joomla! 1.5 Documentation
Home
API reference wiki
SVN repository
Packages
Select a package...
Unknown
Archive
com-tecnick-tcpdf
geshi
Joomla
Joomla-Framework
OpenID
patError
patTemplate
PEAR
phpGACL
PHPMailer
PHP_Compat
SimplePie
utf8
Yadis
Package: Joomla-Framework
Other documents
Changelog
Element index (all)
Error log
Install
Copyright
License
License
Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the
Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
. Some parts of this website may be subject to other licenses.
Source code for file /joomla/database/table/menu.php
Documentation is available at
menu.php
<?php
/**
*
@version
$Id: menu.php 9936 2008-01-13 22:44:03Z ircmaxell $
*
@package
Joomla.Framework
*
@subpackage
Table
*
@copyright
Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
*
@license
GNU/GPL, see LICENSE.php
* Joomla! 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 COPYRIGHT.php for copyright notices and details.
*/
// Check to ensure this file is within the rest of the framework
defined
(
'JPATH_BASE'
)
or
die
(
)
;
/**
* Menu table
*
*
@package
Joomla.Framework
*
@subpackage
Table
*
@since
1.0
*/
class
JTableMenu
extends
JTable
{
/**
@var
int
Primary key */
var
$id
=
null
;
/**
@var
string
*/
var
$menutype
=
null
;
/**
@var
string
*/
var
$name
=
null
;
/**
@var
string
*/
var
$alias
=
null
;
/**
@var
string
*/
var
$link
=
null
;
/**
@var
int
*/
var
$type
=
null
;
/**
@var
int
*/
var
$published
=
null
;
/**
@var
int
*/
var
$componentid
=
null
;
/**
@var
int
*/
var
$parent
=
null
;
/**
@var
int
*/
var
$sublevel
=
null
;
/**
@var
int
*/
var
$ordering
=
null
;
/**
@var
boolean
*/
var
$checked_out
=
0
;
/**
@var
datetime
*/
var
$checked_out_time
=
0
;
/**
@var
boolean
*/
var
$pollid
=
null
;
/**
@var
string
*/
var
$browserNav
=
null
;
/**
@var
int
*/
var
$access
=
null
;
/**
@var
int
*/
var
$utaccess
=
null
;
/**
@var
string
*/
var
$params
=
null
;
/**
@var
int
Pre-order tree traversal - left value */
var
$lft
=
null
;
/**
@var
int
Pre-order tree traversal - right value */
var
$rgt
=
null
;
/**
@var
int
*/
var
$home
=
null
;
/**
* Constructor
*
*
@access
protected
*
@param
database
A database connector object
*/
function
__construct
(
&
$db
)
{
parent
::
__construct
(
'#__menu'
,
'id'
,
$db
)
;
}
/**
* Overloaded check function
*
*
@access
public
*
@return
boolean
*
@see
JTable::check
*
@since
1.5
*/
function
check
(
)
{
if
(
empty
(
$this
->
alias
))
{
$this
->
alias
=
$this
->
name
;
}
$this
->
alias
=
JFilterOutput
::
stringURLSafe
(
$this
->
alias
)
;
if
(
trim
(
str_replace
(
'-'
,
''
,
$this
->
alias
))
==
''
)
{
$datenow
=
new
JDate
(
)
;
$this
->
alias
=
$datenow
->
toFormat
(
"%Y-%m-%d-%H-%M-%S"
)
;
}
return
true
;
}
/**
* Overloaded bind function
*
*
@access
public
*
@param
array
$hash
named array
*
@return
null
|
string
null is operation was satisfactory, otherwise returns an error
*
@see
JTable:bind
*
@since
1.5
*/
function
bind
(
$array
,
$ignore
=
''
)
{
if
(
is_array
(
$array
[
'params'
]
))
{
$registry
=
new
JRegistry
(
)
;
$registry
->
loadArray
(
$array
[
'params'
]
)
;
$array
[
'params'
]
=
$registry
->
toString
(
)
;
}
return
parent
::
bind
(
$array
,
$ignore
)
;
}
}
Documentation generated on Tue, 29 Jan 2008 18:48:22 +0000 by
phpDocumentor 1.3.1