Actions

API16

JTableMenu/check

From Joomla! Documentation

< API16:JTableMenu
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Overloaded check function

[Edit Descripton]

Description:JTableMenu/check

Syntax

check()


Returns

boolean

Defined in

libraries/joomla/database/table/menu.php

Importing

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

Source Body

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;
}

[Edit See Also] SeeAlso:JTableMenu/check

Examples

<CodeExamplesForm />