API16

API16:JTableViewlevel/check

From Joomla! Documentation

Revision as of 22:43, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Method to check the current record to save <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Method to check the current record to save

[Edit Descripton]

Template:Description:JTableViewlevel/check

Syntax

check()


Returns

boolean True on success

Defined in

libraries/joomla/database/table/viewlevel.php

Importing

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

Source Body

function check()
{
        // Validate the title.
        if ((trim($this->title)) == '')
        {
                $this->setError(JText::_('Viewlevel must have a title'));
                return false;
        }

        return true;
}

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

Examples

<CodeExamplesForm />