* Adjust code style.

This commit is contained in:
tianshujie98
2020-12-28 11:07:37 +08:00
parent 1729b8ff2f
commit 78203f19b3
2 changed files with 20 additions and 19 deletions
+19 -18
View File
@@ -3,9 +3,9 @@
* The view file of datatable module of ZenTaoPMS.
*
* @copyright Copyright 2014-2014 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license business(商业软件)
* @license business(商业软件)
* @author Hao sun <sunhao@cnezsoft.com>
* @package datatable
* @package datatable
* @version $Id$
* @link http://www.zentao.net
*/
@@ -15,8 +15,8 @@ class datatableModel extends model
{
/**
* Get field list.
*
* @param string $module
*
* @param string $module
* @access public
* @return array
*/
@@ -41,7 +41,7 @@ class datatableModel extends model
$fields = $this->loadModel('workflowfield')->getList($module);
foreach($fields as $field)
{
if($field->buildin) continue;
if($field->buildin) continue;
$this->config->$module->datatable->fieldList[$field->field]['title'] = $field->name;
$this->config->$module->datatable->fieldList[$field->field]['width'] = '120';
$this->config->$module->datatable->fieldList[$field->field]['fixed'] = 'no';
@@ -119,12 +119,12 @@ class datatableModel extends model
/**
* Sort cols.
*
* @param int $a
* @param int $b
*
* @param int $a
* @param int $b
* @static
* @access public
* @return void
* @return int
*/
public static function sortCols($a, $b)
{
@@ -134,10 +134,11 @@ class datatableModel extends model
/**
* Print table head.
*
* @param object $col
* @param string $orderBy
* @param string $vars
*
* @param object $col
* @param string $orderBy
* @param string $vars
* @param bool $checkBox
* @access public
* @return void
*/
@@ -173,11 +174,11 @@ class datatableModel extends model
}
/**
* Set fixed field width
*
* @param object $setting
* @param int $minLeftWidth
* @param int $minRightWidth
* Set fixed field width
*
* @param object $setting
* @param int $minLeftWidth
* @param int $minRightWidth
* @access public
* @return array
*/