Exemple #1
0
 /**
  *
  * @param CDataXMLNode $node
  * @return CBitrixCloudCDNClasses
  *
  */
 public static function fromXMLNode(CDataXMLNode $node)
 {
     $classes = new CBitrixCloudCDNClasses();
     foreach ($node->children() as $sub_node) {
         $classes->addClass(CBitrixCloudCDNClass::fromXMLNode($sub_node));
     }
     return $classes;
 }
 /**
  *
  * @param CDataXMLNode $node
  * @return CBitrixCloudMonitoringResult
  *
  */
 public static function fromXMLNode(CDataXMLNode $node)
 {
     $domains = new CBitrixCloudMonitoringResult();
     if (is_array($node->children())) {
         foreach ($node->children() as $sub_node) {
             $domains->addDomainResult(CBitrixCloudMonitoringDomainResult::fromXMLNode($sub_node));
         }
     }
     return $domains;
 }
Exemple #3
0
 /**
  *
  * @param CDataXMLNode $node
  * @return CBitrixCloudCDNServerGroups
  *
  */
 public static function fromXMLNode(CDataXMLNode $node)
 {
     $groups = new CBitrixCloudCDNServerGroups();
     foreach ($node->children() as $sub_node) {
         $groups->addGroup(CBitrixCloudCDNServerGroup::fromXMLNode($sub_node));
     }
     return $groups;
 }
Exemple #4
0
 /**
  *
  * @param CDataXMLNode $node
  * @param CBitrixCloudCDNConfig $config
  * @return CBitrixCloudCDNLocations
  *
  */
 public static function fromXMLNode(CDataXMLNode $node, CBitrixCloudCDNConfig $config)
 {
     $locations = new CBitrixCloudCDNLocations();
     foreach ($node->children() as $sub_node) {
         $locations->addLocation(CBitrixCloudCDNLocation::fromXMLNode($sub_node, $config));
     }
     return $locations;
 }