<?php
/* Smarty version 5.4.3, created on 2025-03-04 16:48:41
  from 'file:table_obj.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.4.3',
  'unifunc' => 'content_67c6be693b5ec8_73052517',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'a8a637df5678fd5fae25b1a7ff9eea4a713234b5' => 
    array (
      0 => 'table_obj.tpl',
      1 => 1741078117,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_67c6be693b5ec8_73052517 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'D:\\code\\other\\php-table2class\\TPL';
$_smarty_tpl->assign('datetime', $_smarty_tpl->getValue('file')->GetFileCreateTime(), false, NULL);
$_smarty_tpl->assign('namespace', $_smarty_tpl->getValue('file')->GetNamespace(), false, NULL);
$_smarty_tpl->assign('classes', $_smarty_tpl->getValue('file')->GetClasses(), false, NULL);
$_smarty_tpl->assign('uses', $_smarty_tpl->getValue('file')->GetUses(), false, NULL);
echo '<?php'; ?>

/**
 * Created by FFB.
 * Company: Shenzhen Zhixun Information Tec. Nanchang Com.
 * Copyright: ShenzhenZhixun
 * Email: eastbus@126.com
 * User: FFB
 * Date: <?php echo $_smarty_tpl->getValue('datetime');?>

 * 文件不允许修改，自动生成
 */

namespace <?php echo $_smarty_tpl->getValue('namespace');?>
;

<?php
$__section_index_0_loop = (is_array(@$_loop=$_smarty_tpl->getValue('uses')) ? count($_loop) : max(0, (int) $_loop));
$__section_index_0_total = $__section_index_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_index'] = new \Smarty\Variable(array());
if ($__section_index_0_total !== 0) {
for ($__section_index_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_index']->value['index'] = 0; $__section_index_0_iteration <= $__section_index_0_total; $__section_index_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_index']->value['index']++){
ob_start();
echo $_smarty_tpl->getValue('uses')[($_smarty_tpl->getValue('__smarty_section_index')['index'] ?? null)];
$_prefixVariable1 = ob_get_clean();
echo $_prefixVariable1;?>

<?php
}
}
?>

<?php
$__section_index_0_loop = (is_array(@$_loop=$_smarty_tpl->getValue('classes')) ? count($_loop) : max(0, (int) $_loop));
$__section_index_0_total = $__section_index_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_index'] = new \Smarty\Variable(array());
if ($__section_index_0_total !== 0) {
for ($__section_index_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_index']->value['index'] = 0; $__section_index_0_iteration <= $__section_index_0_total; $__section_index_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_index']->value['index']++){
$_smarty_tpl->assign('className', $_smarty_tpl->getValue('classes')[($_smarty_tpl->getValue('__smarty_section_index')['index'] ?? null)]->GetClassName(), false, NULL);
$_smarty_tpl->assign('tableName', $_smarty_tpl->getValue('classes')[($_smarty_tpl->getValue('__smarty_section_index')['index'] ?? null)]->GetTable()->GetName(), false, NULL);
$_smarty_tpl->assign('attrs', $_smarty_tpl->getValue('classes')[($_smarty_tpl->getValue('__smarty_section_index')['index'] ?? null)]->GetAttrs(), false, NULL);?>
class <?php echo $_smarty_tpl->getValue('className');?>
  {
    public static function tableName()
    {
        return '{{<?php ob_start();
echo $_smarty_tpl->getValue('tableName');
$_prefixVariable2 = ob_get_clean();
echo $_prefixVariable2;?>
}}';
    }
    <?php
$__section_index_0_loop = (is_array(@$_loop=$_smarty_tpl->getValue('attrs')) ? count($_loop) : max(0, (int) $_loop));
$__section_index_0_total = $__section_index_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_index'] = new \Smarty\Variable(array());
if ($__section_index_0_total !== 0) {
for ($__section_index_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_index']->value['index'] = 0; $__section_index_0_iteration <= $__section_index_0_total; $__section_index_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_index']->value['index']++){
?>
    <?php $_smarty_tpl->assign('fieldName', $_smarty_tpl->getValue('attrs')[($_smarty_tpl->getValue('__smarty_section_index')['index'] ?? null)]->GetColumn()->GetName(), false, NULL);?>
    <?php $_smarty_tpl->assign('fieldComment', $_smarty_tpl->getValue('attrs')[($_smarty_tpl->getValue('__smarty_section_index')['index'] ?? null)]->GetColumn()->GetComment(), false, NULL);?>
    <?php $_smarty_tpl->assign('attrName', $_smarty_tpl->getValue('attrs')[($_smarty_tpl->getValue('__smarty_section_index')['index'] ?? null)]->GetName(), false, NULL);?>

    /**
     * ------------ 字段 <?php ob_start();
echo $_smarty_tpl->getValue('fieldName');
$_prefixVariable3 = ob_get_clean();
echo $_prefixVariable3;?>
 
     * ------------ 表字段注释: <?php ob_start();
echo $_smarty_tpl->getValue('fieldComment');
$_prefixVariable4 = ob_get_clean();
echo $_prefixVariable4;?>

     */
    public function filterBy<?php ob_start();
echo $_smarty_tpl->getValue('attrName');
$_prefixVariable5 = ob_get_clean();
echo $_prefixVariable5;?>
($val): self
    {
        $this->filterByColumn("<?php ob_start();
echo $_smarty_tpl->getValue('fieldName');
$_prefixVariable6 = ob_get_clean();
echo $_prefixVariable6;?>
", $val);
        return $this;
    }

    public function set<?php ob_start();
echo $_smarty_tpl->getValue('attrName');
$_prefixVariable7 = ob_get_clean();
echo $_prefixVariable7;?>
($val): self
    {
        $this->setAttr("<?php ob_start();
echo $_smarty_tpl->getValue('fieldName');
$_prefixVariable8 = ob_get_clean();
echo $_prefixVariable8;?>
", $val);
        return $this;
    }

    public function get<?php ob_start();
echo $_smarty_tpl->getValue('attrName');
$_prefixVariable9 = ob_get_clean();
echo $_prefixVariable9;?>
()
    {
        return $this-><?php ob_start();
echo $_smarty_tpl->getValue('fieldName');
$_prefixVariable10 = ob_get_clean();
echo $_prefixVariable10;?>
 ?? null;
    }
    // ---------------------------------------------
    <?php
}
}
?>

}
<?php
}
}
}
}
