Exemple #1
0
 public function setCountry($country_code)
 {
     // Only set country if it is valid.
     if (Country::validateCountryCode($country_code)) {
         $this->country = $country_code;
     } elseif ($country_code == 'UK') {
         // Change incorrect United Kingdom 'UK' country code to 'GB'.
         $this->country = 'GB';
     } else {
         APIObject::$logger->error('Invalid country code "' . $country_code . '" passed from Edge MGMT API.');
     }
 }
                }
                ?>
            </tr>
          <?php 
            }
            ?>
        <?php 
        } else {
            ?>
          <tr>
            <td><?php 
            echo $rate_plan_detail->getOrganization()->getDescription();
            ?>
</td>
            <td><?php 
            echo Country::getCountryName($rate_plan_detail->getOrganization()->getCountry());
            ?>
</td>
            <td><?php 
            echo $rate_plan_detail->getCurrency()->getName();
            ?>
</td>
            <?php 
            if (strlen($rate_plan_detail->getRevenueType())) {
                ?>
              <td><?php 
                echo ucwords(strtolower($rate_plan_detail->getRevenueType()));
                ?>
</td>
            <?php 
            }