mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-04 07:12:48 -04:00
Formatting
- Convert indents to tabs - Remove unnecessary else statement - Correct PHPDoc formatting
This commit is contained in:
@@ -10,6 +10,16 @@ use CodeIgniter\Model;
|
||||
*/
|
||||
class Module extends Model
|
||||
{
|
||||
protected $table = 'modules';
|
||||
protected $primaryKey = 'module_id';
|
||||
protected $useAutoIncrement = false;
|
||||
protected $useSoftDeletes = false;
|
||||
protected $allowedFields = [
|
||||
'name_lang_key',
|
||||
'desc_lang_key',
|
||||
'sort'
|
||||
];
|
||||
|
||||
public function get_module_name(string $module_id): string
|
||||
{
|
||||
$builder = $this->db->table('modules');
|
||||
@@ -128,4 +138,4 @@ class Module extends Model
|
||||
|
||||
return $builder->get()->getRow()->sort;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user