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


PHP portfolio_expected_time_db函数代码示例

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


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

示例1: expected_time

 /**
  * How long we think the export will take.
  *
  * @return one of PORTFOLIO_TIME_XX constants.
  */
 public function expected_time()
 {
     // By number of exported entries.
     if (!empty($this->eids)) {
         $dbtime = portfolio_expected_time_db(count(explode(',', $this->eids)));
     } else {
         if (!empty($this->ecount)) {
             $dbtime = portfolio_expected_time_db($this->ecount);
         } else {
             $dbtime = PORTFOLIO_TIME_HIGH;
         }
     }
     // Only if export includes embedded files but this is in config and not
     // yet accessible here ....
     $filetime = PORTFOLIO_TIME_HIGH;
     return $filetime > $dbtime ? $filetime : $dbtime;
 }
开发者ID:parksandwildlife,项目名称:learning,代码行数:22,代码来源:locallib.php

示例2: expected_time

 /**
  *
  */
 public function expected_time()
 {
     return portfolio_expected_time_db(count($this->messages));
 }
开发者ID:ajv,项目名称:Offline-Caching,代码行数:7,代码来源:lib.php

示例3: expected_time

 /**
  * how long might we expect this export to take
  *
  * @return constant one of PORTFOLIO_TIME_XX
  */
 public function expected_time()
 {
     $filetime = portfolio_expected_time_file($this->multifiles);
     $dbtime = portfolio_expected_time_db(count($this->exportdata['entries']));
     return $filetime > $dbtime ? $filetime : $dbtime;
 }
开发者ID:esyacelga,项目名称:sisadmaca,代码行数:11,代码来源:locallib.php

示例4: expected_time

 /**
  * How long we think the export will take
  * Single entry is probably not too long.
  * But we check for filesizes
  * Else base it on the number of records
  *
  * @return one of PORTFOLIO_TIME_XX constants
  */
 public function expected_time()
 {
     if ($this->recordid) {
         return $this->expected_time_file();
     } else {
         return portfolio_expected_time_db(count($this->records));
     }
 }
开发者ID:tyleung,项目名称:CMPUT401MoodleExams,代码行数:16,代码来源:locallib.php

示例5: expected_time

 function expected_time()
 {
     $filetime = $this->expected_time_file();
     if ($this->posts) {
         $posttime = portfolio_expected_time_db(count($this->posts));
         if ($filetime < $posttime) {
             return $posttime;
         }
     }
     return $filetime;
 }
开发者ID:nmicha,项目名称:moodle,代码行数:11,代码来源:locallib.php

示例6: expected_time

 public function expected_time()
 {
     if ($this->exporttype == 'single') {
         return PORTFOLIO_TIME_LOW;
     }
     return portfolio_expected_time_db(count($this->exportdata));
 }
开发者ID:nicolasconnault,项目名称:moodle2.0,代码行数:7,代码来源:lib.php


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