本文整理匯總了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;
}
示例2: expected_time
/**
*
*/
public function expected_time()
{
return portfolio_expected_time_db(count($this->messages));
}
示例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;
}
示例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));
}
}
示例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;
}
示例6: expected_time
public function expected_time()
{
if ($this->exporttype == 'single') {
return PORTFOLIO_TIME_LOW;
}
return portfolio_expected_time_db(count($this->exportdata));
}