本文整理汇总了PHP中backup_helper::get_inforef_itemnames方法的典型用法代码示例。如果您正苦于以下问题:PHP backup_helper::get_inforef_itemnames方法的具体用法?PHP backup_helper::get_inforef_itemnames怎么用?PHP backup_helper::get_inforef_itemnames使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类backup_helper
的用法示例。
在下文中一共展示了backup_helper::get_inforef_itemnames方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($restoreid)
{
$this->restoreid = $restoreid;
parent::__construct(array());
// Get itemnames handled by inforef files
$items = backup_helper::get_inforef_itemnames();
// Let's add all them as target paths for the processor
foreach ($items as $itemname) {
$pathvalue = '/inforef/' . $itemname . 'ref/' . $itemname;
$this->add_path($pathvalue);
}
}
示例2: define_execution
protected function define_execution()
{
// Items we want to include in the inforef file
$items = backup_helper::get_inforef_itemnames();
foreach ($items as $itemname) {
// Delegate to dbops
backup_structure_dbops::move_annotations_to_final($this->get_backupid(), $itemname);
}
}
示例3: define_execution
protected function define_execution()
{
// Items we want to include in the inforef file
$items = backup_helper::get_inforef_itemnames();
$progress = $this->task->get_progress();
$progress->start_progress($this->get_name(), count($items));
$done = 1;
foreach ($items as $itemname) {
// Delegate to dbops
backup_structure_dbops::move_annotations_to_final($this->get_backupid(), $itemname, $progress);
$progress->progress($done++);
}
$progress->end_progress();
}