本文整理汇总了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));
}