当前位置: 首页>>代码示例>>PHP>>正文


PHP ResultSet::getFloat方法代码示例

本文整理汇总了PHP中ResultSet::getFloat方法的典型用法代码示例。如果您正苦于以下问题:PHP ResultSet::getFloat方法的具体用法?PHP ResultSet::getFloat怎么用?PHP ResultSet::getFloat使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ResultSet的用法示例。


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

示例1: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->name = $rs->getString($startcol + 1);
         $this->min_value = $rs->getFloat($startcol + 2);
         $this->max_value = $rs->getFloat($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating GraduationGrading object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:14,代码来源:BaseGraduationGrading.php

示例2: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->coolness = $rs->getFloat($startcol + 1);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 2;
     } catch (Exception $e) {
         throw new PropelException("Error populating FakeForum object", $e);
     }
 }
开发者ID:rande,项目名称:sfSolrPlugin,代码行数:12,代码来源:BaseFakeForum.php

示例3: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->cat_category_id = $rs->getInt($startcol + 0);
         $this->published_year = $rs->getFloat($startcol + 1);
         $this->total_catalog = $rs->getString($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating VMaterialCatalog object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:13,代码来源:BaseVMaterialCatalog.php

示例4: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->subject_grading_id = $rs->getInt($startcol + 1);
         $this->kkm = $rs->getFloat($startcol + 2);
         $this->detail = $rs->getString($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating SubjectCompetency object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:14,代码来源:BaseSubjectCompetency.php

示例5: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->cur13_term_id = $rs->getInt($startcol + 1);
         $this->grade_spec_id = $rs->getInt($startcol + 2);
         $this->bobot = $rs->getFloat($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating Cur13TermSpec object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:14,代码来源:BaseCur13TermSpec.php

示例6: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->grade = $rs->getFloat($startcol + 1);
         $this->test_applicant_id = $rs->getInt($startcol + 2);
         $this->test_subject_id = $rs->getInt($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating TestScore object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:14,代码来源:BaseTestScore.php

示例7: hydrate

 /**
  * Hydrates (populates) the object variables with values from the database resultset.
  *
  * An offset (1-based "start column") is specified so that objects can be hydrated
  * with a subset of the columns in the resultset rows.  This is needed, for example,
  * for results of JOIN queries where the resultset row includes columns from two or
  * more tables.
  *
  * @param      ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
  * @param      int $startcol 1-based offset column which indicates which restultset column to start with.
  * @return     int next starting column
  * @throws     PropelException  - Any caught Exception will be rewrapped as a PropelException.
  */
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->usr_uid = $rs->getString($startcol + 0);
         $this->usr_username = $rs->getString($startcol + 1);
         $this->usr_password = $rs->getString($startcol + 2);
         $this->usr_firstname = $rs->getString($startcol + 3);
         $this->usr_lastname = $rs->getString($startcol + 4);
         $this->usr_email = $rs->getString($startcol + 5);
         $this->usr_due_date = $rs->getDate($startcol + 6, null);
         $this->usr_create_date = $rs->getTimestamp($startcol + 7, null);
         $this->usr_update_date = $rs->getTimestamp($startcol + 8, null);
         $this->usr_status = $rs->getString($startcol + 9);
         $this->usr_country = $rs->getString($startcol + 10);
         $this->usr_city = $rs->getString($startcol + 11);
         $this->usr_location = $rs->getString($startcol + 12);
         $this->usr_address = $rs->getString($startcol + 13);
         $this->usr_phone = $rs->getString($startcol + 14);
         $this->usr_fax = $rs->getString($startcol + 15);
         $this->usr_cellular = $rs->getString($startcol + 16);
         $this->usr_zip_code = $rs->getString($startcol + 17);
         $this->dep_uid = $rs->getString($startcol + 18);
         $this->usr_position = $rs->getString($startcol + 19);
         $this->usr_resume = $rs->getString($startcol + 20);
         $this->usr_birthday = $rs->getDate($startcol + 21, null);
         $this->usr_role = $rs->getString($startcol + 22);
         $this->usr_reports_to = $rs->getString($startcol + 23);
         $this->usr_replaced_by = $rs->getString($startcol + 24);
         $this->usr_ux = $rs->getString($startcol + 25);
         $this->usr_total_inbox = $rs->getInt($startcol + 26);
         $this->usr_total_draft = $rs->getInt($startcol + 27);
         $this->usr_total_cancelled = $rs->getInt($startcol + 28);
         $this->usr_total_participated = $rs->getInt($startcol + 29);
         $this->usr_total_paused = $rs->getInt($startcol + 30);
         $this->usr_total_completed = $rs->getInt($startcol + 31);
         $this->usr_total_unassigned = $rs->getInt($startcol + 32);
         $this->usr_cost_by_hour = $rs->getFloat($startcol + 33);
         $this->usr_unit_cost = $rs->getString($startcol + 34);
         $this->usr_pmdrive_folder_uid = $rs->getString($startcol + 35);
         $this->usr_bookmark_start_cases = $rs->getString($startcol + 36);
         $this->usr_time_zone = $rs->getString($startcol + 37);
         $this->usr_default_lang = $rs->getString($startcol + 38);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 39;
         // 39 = UsersPeer::NUM_COLUMNS - UsersPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating Users object", $e);
     }
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:64,代码来源:BaseUsers.php

示例8: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->code = $rs->getInt($startcol + 1);
         $this->biaya = $rs->getFloat($startcol + 2);
         $this->prog_studi = $rs->getString($startcol + 3);
         $this->waktu = $rs->getTimestamp($startcol + 4, null);
         $this->jumlah = $rs->getInt($startcol + 5);
         $this->status = $rs->getString($startcol + 6);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 7;
     } catch (Exception $e) {
         throw new PropelException("Error populating ExpenditureJournal object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:17,代码来源:BaseExpenditureJournal.php

示例9: hydrate

    /**
     * Hydrates (populates) the object variables with values from the database resultset.
     *
     * An offset (1-based "start column") is specified so that objects can be hydrated
     * with a subset of the columns in the resultset rows.  This is needed, for example,
     * for results of JOIN queries where the resultset row includes columns from two or
     * more tables.
     *
     * @param      ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
     * @param      int $startcol 1-based offset column which indicates which restultset column to start with.
     * @return     int next starting column
     * @throws     PropelException  - Any caught Exception will be rewrapped as a PropelException.
     */
    public function hydrate(ResultSet $rs, $startcol = 1)
    {
        try {

            $this->app_uid = $rs->getString($startcol + 0);

            $this->app_number = $rs->getInt($startcol + 1);

            $this->app_parent = $rs->getString($startcol + 2);

            $this->app_status = $rs->getString($startcol + 3);

            $this->pro_uid = $rs->getString($startcol + 4);

            $this->app_proc_status = $rs->getString($startcol + 5);

            $this->app_proc_code = $rs->getString($startcol + 6);

            $this->app_parallel = $rs->getString($startcol + 7);

            $this->app_init_user = $rs->getString($startcol + 8);

            $this->app_cur_user = $rs->getString($startcol + 9);

            $this->app_create_date = $rs->getTimestamp($startcol + 10, null);

            $this->app_init_date = $rs->getTimestamp($startcol + 11, null);

            $this->app_finish_date = $rs->getTimestamp($startcol + 12, null);

            $this->app_update_date = $rs->getTimestamp($startcol + 13, null);

            $this->app_data = $rs->getString($startcol + 14);

            $this->app_pin = $rs->getString($startcol + 15);

            $this->app_duration = $rs->getFloat($startcol + 16);

            $this->app_delay_duration = $rs->getFloat($startcol + 17);

            $this->resetModified();

            $this->setNew(false);

            // FIXME - using NUM_COLUMNS may be clearer.
            return $startcol + 18; // 18 = ApplicationPeer::NUM_COLUMNS - ApplicationPeer::NUM_LAZY_LOAD_COLUMNS).

        } catch (Exception $e) {
            throw new PropelException("Error populating Application object", $e);
        }
    }
开发者ID:rrsc,项目名称:processmaker,代码行数:64,代码来源:BaseApplication.php

示例10: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->subject_accal_id = $rs->getInt($startcol + 1);
         $this->subject_curr_id = $rs->getInt($startcol + 2);
         $this->grade_component_id = $rs->getInt($startcol + 3);
         $this->percentage = $rs->getInt($startcol + 4);
         $this->kkm = $rs->getFloat($startcol + 5);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 6;
     } catch (Exception $e) {
         throw new PropelException("Error populating SubjectGrading object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:16,代码来源:BaseSubjectGrading.php

示例11: hydrate

 /**
  * Hydrates (populates) the object variables with values from the database resultset.
  *
  * An offset (1-based "start column") is specified so that objects can be hydrated
  * with a subset of the columns in the resultset rows.  This is needed, for example,
  * for results of JOIN queries where the resultset row includes columns from two or
  * more tables.
  *
  * @param      ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
  * @param      int $startcol 1-based offset column which indicates which restultset column to start with.
  * @return     int next starting column
  * @throws     PropelException  - Any caught Exception will be rewrapped as a PropelException.
  */
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->app_uid = $rs->getString($startcol + 0);
         $this->del_index = $rs->getInt($startcol + 1);
         $this->app_number = $rs->getInt($startcol + 2);
         $this->app_status = $rs->getString($startcol + 3);
         $this->usr_uid = $rs->getString($startcol + 4);
         $this->previous_usr_uid = $rs->getString($startcol + 5);
         $this->tas_uid = $rs->getString($startcol + 6);
         $this->pro_uid = $rs->getString($startcol + 7);
         $this->del_delegate_date = $rs->getTimestamp($startcol + 8, null);
         $this->del_init_date = $rs->getTimestamp($startcol + 9, null);
         $this->del_task_due_date = $rs->getTimestamp($startcol + 10, null);
         $this->del_finish_date = $rs->getTimestamp($startcol + 11, null);
         $this->del_thread_status = $rs->getString($startcol + 12);
         $this->app_thread_status = $rs->getString($startcol + 13);
         $this->app_title = $rs->getString($startcol + 14);
         $this->app_pro_title = $rs->getString($startcol + 15);
         $this->app_tas_title = $rs->getString($startcol + 16);
         $this->app_current_user = $rs->getString($startcol + 17);
         $this->app_del_previous_user = $rs->getString($startcol + 18);
         $this->del_priority = $rs->getString($startcol + 19);
         $this->del_duration = $rs->getFloat($startcol + 20);
         $this->del_queue_duration = $rs->getFloat($startcol + 21);
         $this->del_delay_duration = $rs->getFloat($startcol + 22);
         $this->del_started = $rs->getInt($startcol + 23);
         $this->del_finished = $rs->getInt($startcol + 24);
         $this->del_delayed = $rs->getInt($startcol + 25);
         $this->app_create_date = $rs->getTimestamp($startcol + 26, null);
         $this->app_finish_date = $rs->getTimestamp($startcol + 27, null);
         $this->app_update_date = $rs->getTimestamp($startcol + 28, null);
         $this->app_overdue_percentage = $rs->getFloat($startcol + 29);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 30;
         // 30 = AppCacheViewPeer::NUM_COLUMNS - AppCacheViewPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating AppCacheView object", $e);
     }
 }
开发者ID:nshong,项目名称:processmaker,代码行数:55,代码来源:BaseAppCacheView.php

示例12: hydrate

 /**
  * Hydrates (populates) the object variables with values from the database resultset.
  *
  * An offset (1-based "start column") is specified so that objects can be hydrated
  * with a subset of the columns in the resultset rows.  This is needed, for example,
  * for results of JOIN queries where the resultset row includes columns from two or
  * more tables.
  *
  * @param      ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
  * @param      int $startcol 1-based offset column which indicates which restultset column to start with.
  * @return     int next starting column
  * @throws     PropelException  - Any caught Exception will be rewrapped as a PropelException.
  */
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->addon_id = $rs->getString($startcol + 0);
         $this->store_id = $rs->getString($startcol + 1);
         $this->addon_name = $rs->getString($startcol + 2);
         $this->addon_nick = $rs->getString($startcol + 3);
         $this->addon_download_filename = $rs->getString($startcol + 4);
         $this->addon_description = $rs->getString($startcol + 5);
         $this->addon_state = $rs->getString($startcol + 6);
         $this->addon_state_changed = $rs->getTimestamp($startcol + 7, null);
         $this->addon_status = $rs->getString($startcol + 8);
         $this->addon_version = $rs->getString($startcol + 9);
         $this->addon_type = $rs->getString($startcol + 10);
         $this->addon_publisher = $rs->getString($startcol + 11);
         $this->addon_release_date = $rs->getTimestamp($startcol + 12, null);
         $this->addon_release_type = $rs->getString($startcol + 13);
         $this->addon_release_notes = $rs->getString($startcol + 14);
         $this->addon_download_url = $rs->getString($startcol + 15);
         $this->addon_download_progress = $rs->getFloat($startcol + 16);
         $this->addon_download_md5 = $rs->getString($startcol + 17);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 18;
         // 18 = AddonsManagerPeer::NUM_COLUMNS - AddonsManagerPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating AddonsManager object", $e);
     }
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:43,代码来源:BaseAddonsManager.php

示例13: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->code = $rs->getString($startcol + 1);
         $this->name = $rs->getString($startcol + 2);
         $this->description = $rs->getString($startcol + 3);
         $this->department_id = $rs->getInt($startcol + 4);
         $this->limit = $rs->getFloat($startcol + 5);
         $this->parent = $rs->getInt($startcol + 6);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 7;
     } catch (Exception $e) {
         throw new PropelException("Error populating BudgetChart object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:17,代码来源:BaseBudgetChart.php

示例14: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->code = $rs->getString($startcol + 1);
         $this->cat_language_id = $rs->getInt($startcol + 2);
         $this->cat_category_id = $rs->getInt($startcol + 3);
         $this->cat_subject_id = $rs->getInt($startcol + 4);
         $this->title = $rs->getString($startcol + 5);
         $this->subtitle = $rs->getString($startcol + 6);
         $this->publisher_id = $rs->getInt($startcol + 7);
         $this->published_year = $rs->getFloat($startcol + 8);
         $this->published_location = $rs->getString($startcol + 9);
         $this->isbn = $rs->getString($startcol + 10);
         $this->student_no = $rs->getString($startcol + 11);
         $this->student_name = $rs->getString($startcol + 12);
         $this->student_major = $rs->getString($startcol + 13);
         $this->student_tutor = $rs->getString($startcol + 14);
         $this->version = $rs->getString($startcol + 15);
         $this->edition = $rs->getFloat($startcol + 16);
         $this->print_no = $rs->getFloat($startcol + 17);
         $this->part = $rs->getFloat($startcol + 18);
         $this->volume = $rs->getFloat($startcol + 19);
         $this->month = $rs->getFloat($startcol + 20);
         $this->year = $rs->getFloat($startcol + 21);
         $this->no = $rs->getFloat($startcol + 22);
         $this->bonus = $rs->getString($startcol + 23);
         $this->pages = $rs->getFloat($startcol + 24);
         $this->height = $rs->getFloat($startcol + 25);
         $this->synopsis = $rs->getString($startcol + 26);
         $this->abstracts = $rs->getString($startcol + 27);
         $this->search_keywords = $rs->getString($startcol + 28);
         $this->created_at = $rs->getTimestamp($startcol + 29, null);
         $this->updated_at = $rs->getTimestamp($startcol + 30, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 31;
     } catch (Exception $e) {
         throw new PropelException("Error populating Catalog object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:41,代码来源:BaseCatalog.php

示例15: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->ng_test_appl_sched_id = $rs->getInt($startcol + 1);
         $this->ng_test_subject_id = $rs->getInt($startcol + 2);
         $this->grade = $rs->getFloat($startcol + 3);
         $this->marks = $rs->getString($startcol + 4);
         $this->created = $rs->getTimestamp($startcol + 5, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 6;
     } catch (Exception $e) {
         throw new PropelException("Error populating NgTestApplScore object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:16,代码来源:BaseNgTestApplScore.php


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