web/lib/Zend/Cloud/DocumentService/Adapter/AbstractAdapter.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    11  * to license@zend.com so we can send you a copy immediately.
    11  * to license@zend.com so we can send you a copy immediately.
    12  *
    12  *
    13  * @category   Zend
    13  * @category   Zend
    14  * @package    Zend_Cloud
    14  * @package    Zend_Cloud
    15  * @subpackage DocumentService
    15  * @subpackage DocumentService
    16  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    16  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    17  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  */
    18  */
    19 
    19 
    20 require_once 'Zend/Cloud/DocumentService/Adapter.php';
    20 require_once 'Zend/Cloud/DocumentService/Adapter.php';
    21 require_once 'Zend/Cloud/DocumentService/Document.php';
    21 require_once 'Zend/Cloud/DocumentService/Document.php';
    31  * - query class objects
    31  * - query class objects
    32  *
    32  *
    33  * @category   Zend
    33  * @category   Zend
    34  * @package    Zend_Cloud
    34  * @package    Zend_Cloud
    35  * @subpackage DocumentService
    35  * @subpackage DocumentService
    36  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    36  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    37  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    37  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    38  */
    38  */
    39 abstract class Zend_Cloud_DocumentService_Adapter_AbstractAdapter 
    39 abstract class Zend_Cloud_DocumentService_Adapter_AbstractAdapter
    40     implements Zend_Cloud_DocumentService_Adapter
    40     implements Zend_Cloud_DocumentService_Adapter
    41 {
    41 {
    42     const DOCUMENT_CLASS    = 'document_class';
    42     const DOCUMENT_CLASS    = 'document_class';
    43     const DOCUMENTSET_CLASS = 'documentset_class';
    43     const DOCUMENTSET_CLASS = 'documentset_class';
    44     const QUERY_CLASS       = 'query_class';
    44     const QUERY_CLASS       = 'query_class';
    55      */
    55      */
    56     protected $_documentSetClass = 'Zend_Cloud_DocumentService_DocumentSet';
    56     protected $_documentSetClass = 'Zend_Cloud_DocumentService_DocumentSet';
    57 
    57 
    58     /**
    58     /**
    59      * Class to utilize for new query objects
    59      * Class to utilize for new query objects
    60      * 
    60      *
    61      * @var string
    61      * @var string
    62      */
    62      */
    63     protected $_queryClass = 'Zend_Cloud_DocumentService_Query';
    63     protected $_queryClass = 'Zend_Cloud_DocumentService_Query';
    64 
    64 
    65     /**
    65     /**
    66      * Set the class for document objects
    66      * Set the class for document objects
    67      * 
    67      *
    68      * @param  string $class 
    68      * @param  string $class
    69      * @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter
    69      * @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter
    70      */
    70      */
    71     public function setDocumentClass($class)
    71     public function setDocumentClass($class)
    72     {
    72     {
    73         $this->_documentClass = (string) $class;
    73         $this->_documentClass = (string) $class;
    74         return $this;
    74         return $this;
    75     }
    75     }
    76 
    76 
    77     /**
    77     /**
    78      * Get the class for document objects
    78      * Get the class for document objects
    79      * 
    79      *
    80      * @return string
    80      * @return string
    81      */
    81      */
    82     public function getDocumentClass()
    82     public function getDocumentClass()
    83     {
    83     {
    84         return $this->_documentClass;
    84         return $this->_documentClass;
    85     }
    85     }
    86 
    86 
    87     /**
    87     /**
    88      * Set the class for document set objects
    88      * Set the class for document set objects
    89      * 
    89      *
    90      * @param  string $class 
    90      * @param  string $class
    91      * @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter
    91      * @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter
    92      */
    92      */
    93     public function setDocumentSetClass($class)
    93     public function setDocumentSetClass($class)
    94     {
    94     {
    95         $this->_documentSetClass = (string) $class;
    95         $this->_documentSetClass = (string) $class;
    96         return $this;
    96         return $this;
    97     }
    97     }
    98 
    98 
    99     /**
    99     /**
   100      * Get the class for document set objects
   100      * Get the class for document set objects
   101      * 
   101      *
   102      * @return string
   102      * @return string
   103      */
   103      */
   104     public function getDocumentSetClass()
   104     public function getDocumentSetClass()
   105     {
   105     {
   106         return $this->_documentSetClass;
   106         return $this->_documentSetClass;
   107     }
   107     }
   108 
   108 
   109     /**
   109     /**
   110      * Set the query class for query objects
   110      * Set the query class for query objects
   111      * 
   111      *
   112      * @param  string $class 
   112      * @param  string $class
   113      * @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter
   113      * @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter
   114      */
   114      */
   115     public function setQueryClass($class)
   115     public function setQueryClass($class)
   116     {
   116     {
   117         $this->_queryClass = (string) $class;
   117         $this->_queryClass = (string) $class;
   118         return $this;
   118         return $this;
   119     }
   119     }
   120 
   120 
   121     /**
   121     /**
   122      * Get the class for query objects
   122      * Get the class for query objects
   123      * 
   123      *
   124      * @return string
   124      * @return string
   125      */
   125      */
   126     public function getQueryClass()
   126     public function getQueryClass()
   127     {
   127     {
   128         return $this->_queryClass;
   128         return $this->_queryClass;