forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/cloud' of https://github.com/ezimuel/zf2 into f…
…eature/cloud-migration
- Loading branch information
Showing
73 changed files
with
3,772 additions
and
716 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend_Cloud | ||
* @package Zend\Cloud | ||
* @subpackage DocumentService | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
|
@@ -75,15 +75,15 @@ public function listCollections($options = null); | |
* | ||
* @param string $collectionName | ||
* @param null|array $options | ||
* @return Zend_Cloud_DocumentService_DocumentSet | ||
* @return Zend\Cloud\DocumentService\DocumentSet | ||
*/ | ||
public function listDocuments($collectionName, array $options = null); | ||
|
||
/** | ||
* Insert document | ||
* | ||
* @param string $collectionName Collection name | ||
* @param Zend_Cloud_DocumentService_Document $document Document to insert | ||
* @param Zend\Cloud\DocumentService\Document $document Document to insert | ||
* @param array $options | ||
* @return boolean | ||
*/ | ||
|
@@ -94,7 +94,7 @@ public function insertDocument($collectionName, $document, $options = null); | |
* The new document replaces the existing document with the same ID. | ||
* | ||
* @param string $collectionName Collection name | ||
* @param Zend_Cloud_DocumentService_Document $document | ||
* @param Zend\Cloud\DocumentService\Document $document | ||
* @param array $options | ||
*/ | ||
public function replaceDocument($collectionName, $document, $options = null); | ||
|
@@ -105,9 +105,9 @@ public function replaceDocument($collectionName, $document, $options = null); | |
* Fields not specified in the set will be left as-is. | ||
* | ||
* @param string $collectionName | ||
* @param mixed|Zend_Cloud_DocumentService_Document $documentID Document ID, adapter-dependent, or document containing updates | ||
* @param array|Zend_Cloud_DocumentService_Document $fieldset Set of fields to update | ||
* @param array $options | ||
* @param mixed|Zend\Cloud\DocumentService\Document $documentID Document ID, adapter-dependent, or document containing updates | ||
* @param array|Zend\Cloud\DocumentService\Document $fieldset Set of fields to update | ||
* @param array $options | ||
* @return boolean | ||
*/ | ||
public function updateDocument($collectionName, $documentID, $fieldset = null, $options = null); | ||
|
@@ -130,7 +130,7 @@ public function deleteDocument($collectionName, $documentID, $options = null); | |
* @param string $collectionName Collection name | ||
* @param mixed $documentID Document ID, adapter-dependent | ||
* @param array $options | ||
* @return Zend_Cloud_DocumentService_Document | ||
* @return Zend\Cloud\DocumentService\Document | ||
*/ | ||
public function fetchDocument($collectionName, $documentID, $options = null); | ||
|
||
|
@@ -149,7 +149,7 @@ public function query($collectionName, $query, $options = null); | |
* Create query statement | ||
* | ||
* @param string $fields | ||
* @return Zend_Cloud_DocumentService_Query | ||
* @return Zend\Cloud\DocumentService\Query | ||
*/ | ||
public function select($fields = null); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,8 @@ | |
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend_Cloud | ||
* @subpackage DocumentService | ||
* @package Zend\Cloud\DocumentService | ||
* @subpackage Adapter | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
@@ -22,14 +22,10 @@ | |
*/ | ||
namespace Zend\Cloud\DocumentService\Adapter; | ||
|
||
use Zend\Cloud\DocumentService\Adapter; | ||
|
||
/* | ||
require_once 'Zend/Cloud/DocumentService/Adapter.php'; | ||
require_once 'Zend/Cloud/DocumentService/Document.php'; | ||
require_once 'Zend/Cloud/DocumentService/DocumentSet.php'; | ||
require_once 'Zend/Cloud/DocumentService/Query.php'; | ||
*/ | ||
use Zend\Cloud\DocumentService\Adapter, | ||
Zend\Cloud\DocumentService\Document, | ||
Zend\Cloud\DocumentService\DocumentSet, | ||
Zend\Cloud\DocumentService\Query; | ||
|
||
/** | ||
* Abstract document service adapter | ||
|
@@ -40,13 +36,12 @@ | |
* - query class objects | ||
* | ||
* @category Zend | ||
* @package Zend_Cloud | ||
* @subpackage DocumentService | ||
* @package Zend\Cloud\DocumentService | ||
* @subpackage Adapter | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
abstract class AbstractAdapter | ||
implements Adapter | ||
abstract class AbstractAdapter implements Adapter | ||
{ | ||
const DOCUMENT_CLASS = 'document_class'; | ||
const DOCUMENTSET_CLASS = 'documentset_class'; | ||
|
@@ -75,7 +70,7 @@ abstract class AbstractAdapter | |
* Set the class for document objects | ||
* | ||
* @param string $class | ||
* @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter | ||
* @return Zend\Cloud\DocumentService\Adapter\AbstractAdapter | ||
*/ | ||
public function setDocumentClass($class) | ||
{ | ||
|
@@ -97,7 +92,7 @@ public function getDocumentClass() | |
* Set the class for document set objects | ||
* | ||
* @param string $class | ||
* @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter | ||
* @return Zend\Cloud\DocumentService\Adapter\AbstractAdapter | ||
*/ | ||
public function setDocumentSetClass($class) | ||
{ | ||
|
@@ -119,7 +114,7 @@ public function getDocumentSetClass() | |
* Set the query class for query objects | ||
* | ||
* @param string $class | ||
* @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter | ||
* @return Zend\Cloud\DocumentService\Adapter\AbstractAdapter | ||
*/ | ||
public function setQueryClass($class) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Exception | ||
* | ||
* @category Zend | ||
* @package Zend\Cloud\DocumentService | ||
* @subpackage Adapter | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
/** | ||
* @namespace | ||
*/ | ||
namespace Zend\Cloud\DocumentService\Adapter; | ||
|
||
interface Exception | ||
{} |
31 changes: 31 additions & 0 deletions
31
library/Zend/Cloud/DocumentService/Adapter/Exception/InvalidArgumentException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* Zend Framework | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://framework.zend.com/license/new-bsd | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend\Cloud\DocumentService\Adapter | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
/** | ||
* namespace | ||
*/ | ||
namespace Zend\Cloud\DocumentService\Adapter\Exception; | ||
|
||
class InvalidArgumentException | ||
extends \InvalidArgumentException | ||
implements \Zend\Cloud\DocumentService\Adapter\Exception | ||
{ | ||
|
||
} |
37 changes: 37 additions & 0 deletions
37
library/Zend/Cloud/DocumentService/Adapter/Exception/OperationNotAvailableException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* Zend Framework | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://framework.zend.com/license/new-bsd | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend\Cloud\DocumentService\Adapter | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
/** | ||
* namespace | ||
*/ | ||
namespace Zend\Cloud\DocumentService\Adapter\Exception; | ||
|
||
/** | ||
* @category Zend | ||
* @package Zend\Cloud\DocumentService\Adapter | ||
* @subpackage Exception | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
class OperationNotAvailableException | ||
extends \Exception | ||
implements \Zend\Cloud\DocumentService\Adapter\Exception | ||
{} | ||
|
37 changes: 37 additions & 0 deletions
37
library/Zend/Cloud/DocumentService/Adapter/Exception/RuntimeException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* Zend Framework | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://framework.zend.com/license/new-bsd | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend\Cloud\DocumentService | ||
* @subpackage Adapter | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
/** | ||
* @namespace | ||
*/ | ||
namespace Zend\Cloud\DocumentService\Adapter\Exception; | ||
|
||
use Zend\Cloud\DocumentService\Adapter\Exception; | ||
|
||
/** | ||
* @package Zend\Cloud\DocumentService\Adapter | ||
* @subpackage Exception | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
class RuntimeException extends \RuntimeException implements Exception | ||
{ | ||
} |
Oops, something went wrong.