Document.php
1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php 
namespace Phalcon\Mvc\Collection {
	/**
	 * Phalcon\Mvc\Collection\Document
	 *
	 * This component allows Phalcon\Mvc\Collection to return rows without an associated entity.
	 * This objects implements the ArrayAccess interface to allow access the object as object->x or array[x].
	 */
	
	class Document implements \ArrayAccess {
		/**
		 * Checks whether an offset exists in the document
		 *
		 * @param int $index
		 * @return boolean
		 */
		public function offsetExists($index){ }
		/**
		 * Returns the value of a field using the ArrayAccess interfase
		 *
		 * @param string $index
		 * @return mixed
		 */
		public function offsetGet($index){ }
		/**
		 * Change a value using the ArrayAccess interface
		 *
		 * @param string $index
		 * @param mixed $value
		 * @param \Phalcon\Mvc\ModelInterface $value
		 */
		public function offsetSet($index, $value){ }
		/**
		 * Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface
		 *
		 * @param string $offset
		 */
		public function offsetUnset($offset){ }
		/**
		 * Reads an attribute value by its name
		 *
		 *<code>
		 *	echo $robot->readAttribute('name');
		 *</code>
		 *
		 * @param string $attribute
		 * @return mixed
		 */
		public function readAttribute($attribute){ }
		/**
		 * Writes an attribute value by its name
		 *
		 *<code>
		 *	$robot->writeAttribute('name', 'Rosey');
		 *</code>
		 *
		 * @param string $attribute
		 * @param mixed $value
		 */
		public function writeAttribute($attribute, $value){ }
	}
}