• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getDefVal函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getDefVal函数的典型用法代码示例。如果您正苦于以下问题:PHP getDefVal函数的具体用法?PHP getDefVal怎么用?PHP getDefVal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getDefVal函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->first_name = new TableColumn('varchar', '30', true, '', 'MUL');
     $this->last_name = new TableColumn('varchar', '30', true, '', '');
     $this->dob = new TableColumn('date', '0', false, '', '');
     $this->gender = new TableColumn('enum', '0', false, '', '', array('Male', 'Female'));
     $this->religion = new TableColumn('varchar', '30', false, '', '');
     $this->phone = new TableColumn('varchar', '11', true, '', '');
     $this->cnic = new TableColumn('varchar', '13', false, '', '');
     $this->city = new TableColumn('varchar', '25', false, '', '');
     $this->tehsil = new TableColumn('varchar', '25', false, '', '');
     $this->district = new TableColumn('varchar', '25', false, '', '');
     $this->address = new TableColumn('text', '0', false, '', '');
     $this->father_id = new TableColumn('int', '11', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'persons';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:27,代码来源:PersonAuto.php


示例2: __construct

 function __construct()
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->person_id = new TableColumn('int', '11', true, '', '');
     $this->guardian_id = new TableColumn('int', '11', true, '', '');
     $this->class_id = new TableColumn('int', '11', true, '', '');
     $this->section = new TableColumn('int', '11', false, '', '');
     $this->roll_num = new TableColumn('int', '11', true, '', '');
     $this->subj_combination = new TableColumn('int', '11', true, '', '');
     $this->status = new TableColumn('enum', '0', true, '', '', array('enrolled', 'expelled', 'left'));
     $this->annual_dues = new TableColumn('int', '11', true, '', '');
     $this->start_date = new TableColumn('date', '0', true, '', '');
     $this->end_date = new TableColumn('date', '0', true, '', '');
     $this->admission_date = new TableColumn('date', '0', true, '', '');
     $this->last_date_for_fee_submission = new TableColumn('int', '2', true, '', '');
     $this->comments = new TableColumn('text', '0', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($def = getDefVal($field)) {
             $this->{$field}->defValue = $def;
         }
         $this->{$field}->name = $field;
         $this->{$field}->table = 'Student';
     }
 }
开发者ID:nveeed,项目名称:ems,代码行数:25,代码来源:StudentColumnsInfoAuto.php


示例3: __construct

 function __construct($id = null)
 {
     $this->user_roles_id = new TableColumn('int', '11', true, '', '');
     $this->pages_id = new TableColumn('int', '11', true, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'user_roles__pages';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:16,代码来源:User_roles__pagAuto.php


示例4: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->title = new TableColumn('varchar', '30', true, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'exams';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:16,代码来源:ExamAuto.php


示例5: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->config_classes_id = new TableColumn('int', '11', true, '', '');
     $this->subject_combinations_id = new TableColumn('int', '11', true, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'config_classes__subject_combinations';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:17,代码来源:Config_classes__subject_combinationAuto.php


示例6: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->employee_id = new TableColumn('int', '11', true, '', '');
     $this->date = new TableColumn('date', '0', true, '', '');
     $this->status = new TableColumn('enum', '0', true, '', '', array('Present', 'Absent', 'Leave'));
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'emplyee_attendance_records';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:18,代码来源:Emplyee_attendance_recordAuto.php


示例7: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->class_attendance_record_id = new TableColumn('int', '11', true, '', '');
     $this->student_id = new TableColumn('int', '11', true, '', '');
     $this->lectures_attended = new TableColumn('int', '1', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'student_attendance_records';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:18,代码来源:Student_attendance_recordAuto.php


示例8: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->action = new TableColumn('text', '0', true, '', '');
     $this->user_id = new TableColumn('int', '11', true, '', '');
     $this->time = new TableColumn('timestamp', '0', false, 'CURRENT_TIMESTAMP', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'log_messages';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:18,代码来源:Log_messagAuto.php


示例9: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->advance_record_id = new TableColumn('int', '11', true, '', '');
     $this->date = new TableColumn('date', '0', true, '', '');
     $this->amount = new TableColumn('int', '11', true, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'advance_return_records';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:18,代码来源:Advance_return_recordAuto.php


示例10: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->category = new TableColumn('varchar', '40', true, '', '');
     $this->depreciation = new TableColumn('int', '11', true, '', '');
     $this->depreciation_schedule = new TableColumn('int', '11', true, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'config_asset_categories';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:18,代码来源:Config_asset_categoryAuto.php


示例11: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->key_name = new TableColumn('varchar', '100', true, '', '');
     $this->value = new TableColumn('text', '0', true, '', '');
     $this->comments = new TableColumn('text', '0', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'default_values';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:18,代码来源:Default_valuAuto.php


示例12: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->loan_id = new TableColumn('int', '11', true, '', '');
     $this->interest_rate = new TableColumn('int', '11', true, '', '');
     $this->repayment_schedule = new TableColumn('int', '11', true, '', '');
     $this->comments = new TableColumn('text', '0', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'loan_interest_rates';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:19,代码来源:Loan_interest_ratAuto.php


示例13: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->test_id = new TableColumn('int', '11', true, '', '');
     $this->student_id = new TableColumn('int', '11', true, '', '');
     $this->obtained_marks = new TableColumn('varchar', '3', false, '0', '');
     $this->comments = new TableColumn('text', '0', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'test_records';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:19,代码来源:Test_recordAuto.php


示例14: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->config_class_id = new TableColumn('int', '11', true, '', '');
     $this->month = new TableColumn('int', '2', true, '', '');
     $this->fee_category_id = new TableColumn('int', '11', true, '', '');
     $this->amount = new TableColumn('int', '6', true, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'default_installments';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:19,代码来源:Default_installmentAuto.php


示例15: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->fee_voucher_id = new TableColumn('int', '11', true, '', '');
     $this->fee_category_id = new TableColumn('int', '11', true, '', '');
     $this->amount = new TableColumn('int', '11', true, '', '');
     $this->comments = new TableColumn('text', '0', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'fee_voucher_datails';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:19,代码来源:Fee_voucher_datailAuto.php


示例16: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->person_id = new TableColumn('int', '11', true, '', '');
     $this->profession = new TableColumn('varchar', '30', true, '', '');
     $this->monthly_income = new TableColumn('int', '11', true, '', '');
     $this->num_of_family_members = new TableColumn('int', '11', false, '', '');
     $this->num_of_children = new TableColumn('int', '11', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'guardians';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:20,代码来源:GuardianAuto.php


示例17: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->title = new TableColumn('varchar', '60', true, '', '');
     $this->url = new TableColumn('text', '0', true, '', '');
     $this->parent_id = new TableColumn('int', '11', false, '', '');
     $this->position = new TableColumn('int', '11', false, '', '');
     $this->show_in_nav = new TableColumn('enum', '0', true, '', '', array('Yes', 'No'));
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'pages';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:20,代码来源:PagAuto.php


示例18: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->person_id = new TableColumn('int', '11', true, '', '');
     $this->amount = new TableColumn('int', '11', true, '', '');
     $this->expected_return_date = new TableColumn('date', '0', true, '', '');
     $this->to_from = new TableColumn('enum', '0', true, '', '', array('to', 'from'));
     $this->comments = new TableColumn('text', '0', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'loan_records';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:20,代码来源:Loan_recordAuto.php


示例19: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->text = new TableColumn('text', '0', true, '', '');
     $this->date = new TableColumn('date', '0', true, '', '');
     $this->user_id = new TableColumn('int', '11', true, '', '');
     $this->status = new TableColumn('enum', '0', true, '', '', array('read', 'unread'));
     $this->user_id_for = new TableColumn('int', '11', true, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'reminders';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:20,代码来源:ReminderAuto.php


示例20: __construct

 function __construct($id = null)
 {
     $this->id = new TableColumn('int', '11', true, '', 'PRI');
     $this->employee_id = new TableColumn('int', '11', true, '', '');
     $this->month = new TableColumn('int', '2', true, '', '');
     $this->year = new TableColumn('int', '4', true, '', '');
     $this->amount = new TableColumn('int', '11', true, '', '');
     $this->date = new TableColumn('date', '0', true, '', '');
     $this->comments = new TableColumn('text', '0', false, '', '');
     // get default value
     foreach ($this as $field => $info) {
         if ($info instanceof TableColumn) {
             if ($def = getDefVal($field)) {
                 $this->{$field}->defValue = $def;
             }
             $this->{$field}->name = $field;
             $this->{$field}->table = 'pays_records';
         }
     }
     parent::__construct($id);
 }
开发者ID:nveeed,项目名称:ems,代码行数:21,代码来源:Pays_recordAuto.php



注:本文中的getDefVal函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getDefault函数代码示例发布时间:2022-05-15
下一篇:
PHP getDef函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap