Actions

API16

JTableExtension/find

From Joomla! Documentation

< API16:JTableExtension
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.

[Edit Descripton]

Description:JTableExtension/find

Contents

Syntax

find($options=array())
Parameter Name Default Value Description
$options array()

Defined in

libraries/joomla/database/table/extension.php

Importing

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

Source Body

function find($options=array())
{
        $dbo =& JFactory::getDBO();
        $where = Array();
        foreach($options as $col=>$val) {
                $where[] = $col .' = '. $dbo->Quote($val);
        }
        $query = 'SELECT extension_id FROM #__extensions WHERE '. implode(' AND ', $where);
        $dbo->setQuery($query);
        return $dbo->loadResult();
}

[Edit See Also] SeeAlso:JTableExtension/find

Examples

<CodeExamplesForm />