JTableExtension/find
From Joomla! Documentation
< API16:JTableExtension
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.
Syntax[edit]
find($options=array())
Parameter Name | Default Value | Description |
---|---|---|
$options | array() |
Defined in[edit]
libraries/joomla/database/table/extension.php
Importing[edit]
jimport( 'joomla.database.table.extension' );
Source Body[edit]
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();
}
Examples[edit]
Code Examples[edit]