Components_Component_Base::_hasCi PHP Method

_hasCi() protected method

Check if the library has a CI job.
protected _hasCi ( ) : boolean
return boolean True if a CI job is defined.
    protected function _hasCi()
    {
        if ($this->getChannel() != 'pear.horde.org') {
            return false;
        }
        $client = new Horde_Http_Client(array('request.timeout' => 15));
        try {
            $response = $client->get('http://ci.horde.org/job/' . str_replace('Horde_', '', $this->getName() . '/api/json'));
        } catch (Horde_Http_Exception $e) {
            return false;
        }
        return $response->code != 404;
    }