$table = JTable::getInstance('mytable'); if ($table->isCheckedOut()) { echo "Table is checked out"; } else { echo "Table is not checked out"; }
$table = JTable::getInstance('mytable'); $id = 1; if ($table->isCheckedOut($id)) { echo "Row $id is checked out"; } else { echo "Row $id is not checked out"; }
$input = JFactory::getApplication()->input; $table = JTable::getInstance($input->get('view')); $id = $input->get('id'); if ($table->isCheckedOut($id)) { echo "$id is checked out in $table"; } else { echo "$id is not checked out in $table"; }The JTable class is part of the Joomla framework, which is a PHP application framework used to build content management systems and other web applications.