class MyModel extends JModelList { // ... protected function getListQuery() { // ... $storeId = $this->getStoreId('MyTable', array('category_id')); // ... } // ... }
use Joomla\CMS\MVC\Model\AdminModel; class MyAdminModel extends AdminModel { // ... protected function getListQuery() { // ... $storeId = $this->getStoreId('MyTable'); // ... } // ... }In this example, the getStoreId method is used to get the data store ID for a model named "MyTable". This is an example of how the getStoreId method is used in an admin model in Joomla. Library package: Joomla\CMS\MVC\Model The JModelList class is part of the Joomla\CMS\MVC\Model package in the Joomla framework.