Skip to content

Commit 72c886a

Browse files
Refactored namespace Zend\GData -> ZendGData
Added assets: license, readme, various test files
1 parent ed34537 commit 72c886a

File tree

477 files changed

+3064
-2704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

477 files changed

+3064
-2704
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/

LICENSE.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2005-2012, Zend Technologies USA, Inc.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of Zend Technologies USA, Inc. nor the names of its
15+
contributors may be used to endorse or promote products derived from this
16+
software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
22+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ZendGData component
2+
3+
You can install using:
4+
5+
```
6+
curl -s http://getcomposer.org/installer | php
7+
php composer.phar install
8+
```
9+
10+
At that point, follow the instructions in the documentation folder for actual
11+
usage of the component. (Documentation is forthcoming.)
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
{
22
"name": "zendframework/zend-gdata",
33
"description": "provide programmatic interface to some of Google's online services",
4+
"type": "library",
45
"license": "BSD-3-Clause",
56
"keywords": [
67
"zf2",
78
"gdata"
89
],
10+
"homepage": "http://packages.zendframework.com/",
911
"autoload": {
1012
"psr-0": {
11-
"Zend\\GData": ""
13+
"ZendGData": "library/"
1214
}
1315
},
16+
"repositories": [
17+
{
18+
"type": "composer",
19+
"url": "http://packages.zendframework.com/"
20+
}
21+
],
1422
"target-dir": "Zend/GData",
1523
"require": {
1624
"php": ">=5.3.3",

library/ZendGData/Analytics.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @package Zend_GData
99
*/
1010

11-
namespace Zend\GData;
11+
namespace ZendGData;
1212

1313
use Zend\Http\Client;
1414

@@ -50,7 +50,7 @@ public function __construct(Client $client = null, $applicationId = 'MyCompany-M
5050
public function getAccountFeed()
5151
{
5252
$uri = self::ANALYTICS_ACCOUNT_FEED_URI . '/default?prettyprint=true';
53-
return parent::getFeed($uri, 'Zend\GData\Analytics\AccountFeed');
53+
return parent::getFeed($uri, 'ZendGData\Analytics\AccountFeed');
5454
}
5555

5656
/**
@@ -66,7 +66,7 @@ public function getDataFeed($location = self::ANALYTICS_FEED_URI)
6666
} else {
6767
$uri = $location;
6868
}
69-
return parent::getFeed($uri, 'Zend\GData\Analytics\DataFeed');
69+
return parent::getFeed($uri, 'ZendGData\Analytics\DataFeed');
7070
}
7171

7272
/**

library/ZendGData/Analytics/AccountEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @package Zend_GData
99
*/
1010

11-
namespace Zend\GData\Analytics;
11+
namespace ZendGData\Analytics;
1212

1313
use Zend\GData;
1414

library/ZendGData/Analytics/AccountFeed.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @package Zend_GData
99
*/
1010

11-
namespace Zend\GData\Analytics;
11+
namespace ZendGData\Analytics;
1212

1313
use Zend\GData;
1414

@@ -24,17 +24,17 @@ class AccountFeed extends GData\Feed
2424
*
2525
* @var string
2626
*/
27-
protected $_entryClassName = 'Zend\GData\Analytics\AccountEntry';
27+
protected $_entryClassName = 'ZendGData\Analytics\AccountEntry';
2828

2929
/**
3030
* The classname for the feed.
3131
*
3232
* @var string
3333
*/
34-
protected $_feedClassName = 'Zend\GData\Analytics\AccountFeed';
34+
protected $_feedClassName = 'ZendGData\Analytics\AccountFeed';
3535

3636
/**
37-
* @see Zend\GData\Feed::__construct()
37+
* @see ZendGData\Feed::__construct()
3838
*/
3939
public function __construct($element = null)
4040
{

library/ZendGData/Analytics/DataEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @package Zend_GData
99
*/
1010

11-
namespace Zend\GData\Analytics;
11+
namespace ZendGData\Analytics;
1212

1313
use Zend\GData;
1414

library/ZendGData/Analytics/DataFeed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @package Zend_GData
99
*/
1010

11-
namespace Zend\GData\Analytics;
11+
namespace ZendGData\Analytics;
1212

1313
use Zend\GData;
1414

@@ -25,13 +25,13 @@ class DataFeed extends GData\Feed
2525
*
2626
* @var string
2727
*/
28-
protected $_entryClassName = 'Zend\GData\Analytics\DataEntry';
28+
protected $_entryClassName = 'ZendGData\Analytics\DataEntry';
2929
/**
3030
* The classname for the feed.
3131
*
3232
* @var string
3333
*/
34-
protected $_feedClassName = 'Zend\GData\Analytics\DataFeed';
34+
protected $_feedClassName = 'ZendGData\Analytics\DataFeed';
3535

3636
public function __construct($element = null)
3737
{

library/ZendGData/Analytics/DataQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @package Zend_GData
99
*/
1010

11-
namespace Zend\GData\Analytics;
11+
namespace ZendGData\Analytics;
1212

1313
use Zend\GData;
1414

0 commit comments

Comments
 (0)