Get the current list of active channels

@return object|bool - false for a failure, JSON object for all other results
9612
public function show()
        {
            try {

                $result = FALSE;

                if (is_null($this->pestObject))
                    throw new Exception("PEST Object not provided or is null", 503);

                $uri = "/channels";
                $result = $this->pestObject->get($uri);

                return $result;


            } catch (Pest_NotFound $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            } catch (Pest_BadRequest $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            } catch (Exception $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            }
        }
893921
public function active() {
		// Default to showing the section.
		$show = true;

		// Use the callback to determine showing the section, if it exists.
		if ( is_callable( $this->active_callback ) ) {
			$show = call_user_func( $this->active_callback, $this );
		}

		return $show;
	}
1343611
public function getActive()
    {
        if (count($this->active) < 1) {
            return null;
        }
        while (time() > current($this->active)) {
            $key = key($this->active);
            $this->expired[$key] = current($this->active);
            $this->increment($this->active);
            unset($this->active[$key]);
            if (count($this->active) < 1) {
                return null;
            }
        }
        $active = key($this->active);
        $this->increment($this->active);
        return $active;
    }
837835
public function getChannels()
    {
        return $this->apiCall('channels.list')->then(function ($response) {
            $channels = [];
            foreach ($response['channels'] as $channel) {
                $channels[] = new Channel($this, $channel);
            }
            return $channels;
        });
    }
710593
public function getChannels()
    {
        $uri = 'channels';
        $response = $this->client->getEndpoint()->get($uri);

        $channels = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $channel) {
            $channels[] = new Channel($this->client, $channel);
        }

        return $channels;
    }
900955
public function &GetActiveVATList()
    {
        if (is_null($this->oActiveVatList)) {
            $this->oActiveVatList = TdbShopVatList::GetList();
            $this->oActiveVatList->bAllowItemCache = true;
            $this->oActiveVatList->GoToStart();
        }

        return $this->oActiveVatList;
    }
395800
public function current()
    {
        if($this->folderList == null){
            $this->folderList = $this->listFolder();
        }
        return $this->folderList[$this->key];
    }
737794
public static function GetActiveCategoryPath()
    {
        static $aCategoryList;
        if (!isset($aCategoryList)) {
            $aCategoryList = null;
            $oCurrentCategory = self::getShopService()->getActiveCategory();
            if (!is_null($oCurrentCategory)) {
                $aCategoryList = array();
                do {
                    $aCategoryList[$oCurrentCategory->id] = $oCurrentCategory;
                } while ($oCurrentCategory = &$oCurrentCategory->GetParent());
                $aCategoryList = array_reverse($aCategoryList, true);
            }
        }

        return $aCategoryList;
    }
434147
protected function _getActiveModuleInfo()
    {
        if ($this->_aActiveModuleInfo === null) {
            $modulelist = oxNew(\OxidEsales\Eshop\Core\Module\ModuleList::class);
            $this->_aActiveModuleInfo = $modulelist->getActiveModuleInfo();
        }

        return $this->_aActiveModuleInfo;
    }
971682
public static function getChannels()
    {
        $app = Facade::getFacadeApplication();
        $db = $app->make(Connection::class);
        $channels = (array) $db->GetCol('select distinct channel from Logs order by channel asc');

        return $channels;
    }
596397
public function current()
    {
        $node = $this->reader->expand();
        if ($node === false) {
            return false;
        }
        $node = $this->doc->importNode($node, true);
        if ($node === false) {
            return false;
        }
        $current = simplexml_import_dom($node);
        if ($current === false) {
            return false;
        }

        if ($this->options["asArray"]) {
            return json_decode(json_encode($current), true);
        } else {
            return $current;
        }
    }
407543
def get_current_channel(self):
        """"""
        self.request(EP_GET_CURRENT_CHANNEL)
        return {} if self.last_response is None else self.last_response.get('payload')
318063
protected function GetActiveOrderRequest()
    {
        $sActiveOrderParameter = false;
        $oGlobal = TGlobal::instance();
        if ($oGlobal->UserDataExists($this->getActiveOrderParameter())) {
            $sActiveOrderParameter = $oGlobal->GetUserData($this->getActiveOrderParameter());
        }

        return $sActiveOrderParameter;
    }
1121574
public function getActiveOrganizations()
    {
        $sql = "SELECT gor_id_organization, gor_name
                    FROM gems__organizations
                    WHERE (gor_active = 1 AND
                            gor_id_organization IN (SELECT gr2o_id_organization FROM gems__respondent2org)) OR
                        gor_id_organization = ?
                    ORDER BY gor_name";

        $orgId = $this->loader->getCurrentUser()->getCurrentOrganizationId();

        return $this->_getSelectPairsCached(__FUNCTION__ . '_' . $orgId, $sql, $orgId, 'organizations', 'natsort');
    }
162944
public function broadcastOn()
    {
        $channels = $this->notification->broadcastOn();

        if (! empty($channels)) {
            return $channels;
        }

        $channel = 'private-' .$this->channelName();

        return array($channel);
    }
1128096
public function getActiveServers()
    {
        $activeServers = [];

        if (isset($this->config['servers']) && is_array($this->config['servers'])) {
            foreach ($this->config['servers'] as $server) {
                if (isset($server['active']) && isset($server['objectClass']) && $server['active']) {
                    $activeServers[] = $server['name'];
                }
            }
        }

        return $activeServers;
    }
290151
public function isActive()
    {
        if ($this->inactive()) {
            return false;
        }

        $active = $this->getActiveAttribute();

        if (is_bool($active)) {
            return $active;
        }

        if ($active instanceof \Closure) {
            return call_user_func($active);
        }

        if ($this->hasRoute()) {
            return $this->getActiveStateFromRoute();
        }

        return $this->getActiveStateFromUrl();
    }