From c128c0fc71ecefe945b68d61e99bf4f246f402da Mon Sep 17 00:00:00 2001 From: markjcrane Date: Wed, 5 Aug 2015 17:02:34 -0500 Subject: [PATCH] A few minor adjustments to the new class. --- resources/classes/destinations.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/classes/destinations.php b/resources/classes/destinations.php index fe83e981e3..b0d8cd51bd 100644 --- a/resources/classes/destinations.php +++ b/resources/classes/destinations.php @@ -25,10 +25,10 @@ class destinations { } /** - * Get a specific item from the cache - * @var string $language_code examples: en-us, es-cl, fr-fr, pt-pt + * Get the destination array + * @var null */ - public function array() { + public function get_array() { //get the array from the app_config.php files $config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php"); @@ -105,8 +105,9 @@ class destinations { * @var string $destination_value - current value */ public function select($destination_type, $destination_name, $destination_value) { + //get the array - $destinations = $this->array(); + $destinations = $this->get_array(); //remove special characters from the name $destination_id = str_replace("]", "", $destination_name); @@ -208,7 +209,7 @@ class destinations { return $response; } //$obj = new destinations; - //echo $obj->select('dialplan', 'example' 'value'); + //echo $obj->select('dialplan', 'example', 'value'); }