API15

JTableMenu/check

From Joomla! Documentation

< API15:JTableMenu
Revision as of 17:10, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Overloaded check function <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </s...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Overloaded check function

[Edit Descripton]

Template:Description:JTableMenu/check

Syntax[edit]

check()


Returns[edit]

boolean

Defined in[edit]

libraries/joomla/database/table/menu.php

Importing[edit]

jimport( 'joomla.database.table.menu' );

Source Body[edit]

function check()
{
        if(empty($this->alias)) {
                $this->alias = $this->name;
        }
        $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;
}

[Edit See Also] Template:SeeAlso:JTableMenu/check

Examples[edit]

<CodeExamplesForm />