| author | ymh <ymh.work@gmail.com> |
| Thu, 27 Oct 2011 21:21:11 +0200 | |
| changeset 18 | 6f16b9fd6a17 |
| parent 17 | 81962874e172 |
| child 20 | 985f1992895d |
| permissions | -rwxr-xr-x |
| 2 | 1 |
<?php |
2 |
/* |
|
3 |
* This file is part of the WikiTagBundle package. |
|
4 |
* |
|
5 |
* (c) IRI <http://www.iri.centrepompidou.fr/> |
|
6 |
* |
|
7 |
* For the full copyright and license information, please view the LICENSE |
|
8 |
* file that was distributed with this source code. |
|
9 |
*/ |
|
10 |
||
11 |
namespace IRI\Bundle\WikiTagBundle\Model; |
|
12 |
||
|
17
81962874e172
First implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
3
diff
changeset
|
13 |
abstract class Document implements DocumentInterface { |
| 2 | 14 |
|
15 |
/** |
|
16 |
* @var integer $id |
|
17 |
*/ |
|
18 |
protected $id; |
|
19 |
||
20 |
||
21 |
/** |
|
22 |
* @var boolean $manualOrder |
|
23 |
*/ |
|
| 3 | 24 |
protected $manualOrder = false; |
25 |
||
26 |
/** |
|
27 |
* @var string $externalId |
|
28 |
*/ |
|
29 |
protected $externalId; |
|
| 2 | 30 |
|
31 |
||
32 |
/** |
|
33 |
* Get id |
|
34 |
* |
|
35 |
* @return integer |
|
36 |
*/ |
|
37 |
public function getId() |
|
38 |
{ |
|
39 |
return $this->id; |
|
40 |
} |
|
41 |
||
42 |
||
43 |
/** |
|
44 |
* Set manualOrder |
|
45 |
* |
|
46 |
* @param boolean $manualOrder |
|
47 |
*/ |
|
48 |
function setManualOrder($manualOrder) |
|
49 |
{ |
|
50 |
$this->manualOrder = $manualOrder; |
|
51 |
} |
|
52 |
||
53 |
/** |
|
54 |
* Get manualOrder |
|
55 |
* |
|
56 |
* @return boolean |
|
57 |
*/ |
|
58 |
function getManualOrder() |
|
59 |
{ |
|
60 |
return $this->manualOrder; |
|
61 |
} |
|
62 |
||
| 3 | 63 |
/** |
64 |
* TODO: (non-PHPdoc) |
|
65 |
* @see IRI\Bundle\WikiTagBundle\Model.BaseDocumentInterface::setExternalId() |
|
66 |
*/ |
|
67 |
function setExternalId($externalId) |
|
68 |
{ |
|
69 |
$this->externalId = $externalId; |
|
70 |
} |
|
71 |
||
72 |
/** |
|
73 |
* TODO: (non-PHPdoc) |
|
74 |
* @see IRI\Bundle\WikiTagBundle\Model.BaseDocumentInterface::getExternalId() |
|
75 |
*/ |
|
76 |
function getExternalId() |
|
77 |
{ |
|
78 |
return $this->externalId; |
|
79 |
} |
|
| 2 | 80 |
|
81 |
} |