* Update the parameter name of the 'getFieldList' function in the datatableModel class to improve its clarity and understandability.

This commit is contained in:
chentao
2023-06-14 15:26:37 +08:00
parent 2acd3ef9d2
commit f6a824a43f
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -17,17 +17,17 @@ class datatableModel extends model
* Get field list.
*
* @param string $module
* @param string $surffix
* @param string $method
* @access public
* @return array
*/
public function getFieldList($module, $surffix = '')
public function getFieldList($module, $method = '')
{
/* Load corresponding module. */
if(!isset($this->config->$module)) $this->loadModel($module);
$config = $this->config->$module;
if(!empty($surffix)) $config = $config->$surffix;
if(!empty($method)) $config = $config->$method;
$fieldList = $config->dtable->fieldList;
/* If doesn't need product, remove 'product' field. */