public function get_site_names()
    {
        // Get the list of device pools
        $DEVICEPOOLS = $this->get_device_pool_names();
        $SITES = [];
        // Loop through all of the device pools
        foreach ($DEVICEPOOLS as $DP) {
            // Detect the DP_SITECODE format and put it into an array
            $REGEX = "/^DP_(\w+)/";
            if (preg_match($REGEX, $DP, $HITS)) {
                array_push($SITES, $HITS[1]);
            } else {
                //print "{$DP} did not match {$REGEX}!<br>\n";
            }
        }
        // Return our array of sites
        return $SITES;
    }
public function get_site_names()
    {
        // Get the list of device pools
        $DEVICEPOOLS = $this->get_device_pool_names();
        $SITES = [];
        // Loop through all of the device pools
        foreach ($DEVICEPOOLS as $DP) {
            // Detect the DP_SITECODE format and put it into an array
            $REGEX = "/^DP_(\w+)/";
            if (preg_match($REGEX, $DP, $HITS)) {
                array_push($SITES, $HITS[1]);
            } else {
                //print "{$DP} did not match {$REGEX}!<br>\n";
            }
        }
        // Return our array of sites
        return $SITES;
    }
public function get_site_names ( ) { // Get the list of device pools $ DEVICEPOOLS = $ this -> get_device_pool_names ( ) ; $ SITES = [ ] ; // Loop through all of the device pools foreach ( $ DEVICEPOOLS as $ DP ) { // Detect the DP_SITECODE format and put it into an array $ REGEX = "/^DP_(\w+)/" ; if ( preg_match ( $ REGEX , $ DP , $ HITS ) ) { array_push ( $ SITES , $ HITS [ 1 ] ) ; } else { //print "{$DP} did not match {$REGEX}!<br>\n"; } } // Return our array of sites return $ SITES ; }
Get an array of site names
Get an array of site names