Joomla中状态变量的用法是什么?以及此代码中$model->setState
的用法是什么(代码来自Joomla&#39的mod_articles_popular模块)?
$model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' => true));
// Set application parameters in model
$app = JFactory::getApplication();
$appParams = $app->getParams();
$model->setState('params', $appParams);
// Set the filters based on the module params
$model->setState('list.start', 0);