CBitrixCloudBackup::getBackupJob: Bitrix method

      
<?php 
//  CBitrixCloudBackup :: getBackupJob()
//  /dist/bitrix/modules/bitrixcloud/classes/general/backup.php:394

    
public function getBackupJob()
    {
        try
        {
            
$web_service = new CBitrixCloudBackupWebService();
            
$infoXML $web_service->actionGetBackupJob();
        }
        catch (
CBitrixCloudException $e)
        {
            return 
$e->getMessage();//."[".htmlspecialcharsEx($e->getErrorCode())."]";
        
}

        
$result = array();
        
$jobList $infoXML->SelectNodes("/control/JobList");
        if (
is_object($jobList))
        {
            
$jobEntries $jobList->elementsByName("JobEntry");
            foreach (
$jobEntries as $jobEntry)
            {
                
$info  = array();
                foreach(
$jobEntry->children() as $field)
                {
                    
$name $field->name();
                    
$value $field->textContent();
                    
$info[$name] = $value;
                }
                
$result[] = array(
                    
"URL" => $info["Url"],
                    
"TIME" => $info["Time"],
                    
"WEEK_DAYS" => explode(","$info["WeekDays"]),
                    
"STATUS" => $info["Status"],
                    
"FINISH_TIME" => $info["FinishTime"],
                );
            }
        }
        return 
$result;
    }