Arbit - project tracking

PHPillow - PHP CouchDB connector

Browse source code

File: / src/ classes/ response/ array.php

Type
text/plain text/plain
Last Author
kore
Version
143
Line Rev. Author Source
1 44 kore <?php
2 kore /**
3 kore * phpillow CouchDB backend
4 kore *
5 kore * This file is part of phpillow.
6 kore *
7 kore * phpillow is free software; you can redistribute it and/or modify it under
8 kore * the terms of the GNU Lesser General Public License as published by the Free
9 kore * Software Foundation; version 3 of the License.
10 kore *
11 kore * phpillow is distributed in the hope that it will be useful, but WITHOUT ANY
12 kore * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 kore * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
14 kore * more details.
15 kore *
16 kore * You should have received a copy of the GNU Lesser General Public License
17 kore * along with phpillow; if not, write to the Free Software Foundation, Inc., 51
18 kore * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 kore *
20 kore * @package Core
21 96 kore * @version $Revision: 143 $
22 44 kore * @license http://www.gnu.org/licenses/lgpl-3.0.txt LGPL
23 kore */
24 kore
25 kore /**
26 kore * Array response
27 kore *
28 kore * Response class used, when CouchDB only returned an array, like for database
29 kore * lists.
30 kore *
31 143 kore * @property-read $data Array with response contents
32 kore *
33 44 kore * @package Core
34 96 kore * @version $Revision: 143 $
35 44 kore * @license http://www.gnu.org/licenses/lgpl-3.0.txt LGPL
36 kore */
37 kore class phpillowArrayResponse extends phpillowResponse
38 kore {
39 kore /**
40 kore * Construct response object from response array
41 kore *
42 97 kore * @param array $response
43 44 kore * @return void
44 kore */
45 kore public function __construct( array $response )
46 kore {
47 kore $this->properties['data'] = $response;
48 kore }
49 kore }
50 kore