From 6e6d59bf0677c6b2d5b92a6abdab15a7ecaf9947 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 11 Jul 2010 19:10:36 +0200 Subject: move FEDORACLIENT_VERSION to class, so FedoraClient::VERSION --- class/FedoraClient.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'class/FedoraClient.php') diff --git a/class/FedoraClient.php b/class/FedoraClient.php index c1a10c5..f1ce8f6 100644 --- a/class/FedoraClient.php +++ b/class/FedoraClient.php @@ -35,8 +35,6 @@ * @since The begining of times. */ -define('FEDORACLIENT_VERSION', '0.1.0-dev'); - if (!function_exists('curl_version')) { die("curl extension required\n"); } @@ -44,6 +42,7 @@ require_once 'Cache/Lite.php'; abstract class FedoraClient { + const VERSION='0.1.0-dev'; protected $url; private $agent; private $debug = 0; @@ -65,7 +64,7 @@ abstract class FedoraClient if (isset($options['agent']) && !empty($options['agent'])) { $this->agent = $options['agent']; } else { - $this->agent = 'Fedora PHPClient/'.FEDORACLIENT_VERSION; + $this->agent = 'Fedora PHPClient/'.self::VERSION; } if (isset($options['debug']) && intval($options['debug'])>0) { $this->debug = intval($options['debug']); -- cgit