JTableMenu/check
From Joomla! Documentation
< API16:JTableMenu
The "API16" 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
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]
public function check()
{
if (empty($this->alias)) {
$this->alias = $this->title;
}
$this->alias = JApplication::stringURLSafe($this->alias);
if (trim(str_replace('-','',$this->alias)) == '') {
$this->alias = JFactory::getDate()->toFormat("%Y-%m-%d-%H-%M-%S");
}
return true;
}
Examples[edit]
Code Examples[edit]