當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。