MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
persistentobject.class
Ir para a documentação deste ficheiro.
1
<?php
2
3
class
PersistentObject
4
{
5
private
$isPersistent;
6
private
$isProxy;
7
private
$timeStamp;
8
private
$manager;
9
private
$factory;
10
11
function
__construct
()
12
{
13
$miolo =
MIOLO::getInstance
();
14
$this->factory = $miolo->persistence;
15
$this->manager = $this->factory->getPersistentManager();
16
}
17
18
function
getClassMap
()
19
{
20
return
$this->factory->getClassMap($this);
21
}
22
23
function
setPersistent
($value)
24
{
25
$this->
isPersistent
= $value;
26
}
27
28
function
isPersistent
()
29
{
30
return
$this->isPersistent;
31
}
32
33
function
setProxy
($value)
34
{
35
$this->
isProxy
= $value;
36
}
37
38
function
isProxy
()
39
{
40
return
$this->isProxy;
41
}
42
43
function
retrieve
()
44
{
45
$this->manager->retrieveObject($this);
46
}
47
48
function
retrieveFromQuery
(
MQuery
$query)
49
{
50
$this->manager->retrieveObjectFromQuery($this, $query);
51
}
52
53
function
retrieveFromCriteria
(
PersistentCriteria
$criteria, $parameters=NULL)
54
{
55
$this->manager->retrieveObjectFromCriteria($this, $criteria, $parameters);
56
}
57
58
function
retrieveAssociation
($target, $orderAttributes =
null
, $distinct =
false
)
59
{
60
$this->manager->retrieveAssociation($this, $target, $distinct);
61
}
62
63
function
retrieveAssociationAsCursor
($target, $orderAttributes =
null
)
64
{
65
$this->manager->retrieveAssociationAsCursor($this, $target);
66
}
67
68
function
retrieveAsProxy
()
69
{
70
$this->manager->retrieveObjectAsProxy($this);
71
}
72
73
function
getCriteria
()
74
{
75
return
$this->manager->getRetrieveCriteria($this);
76
}
77
78
function
getDeleteCriteria
()
79
{
80
return
$this->manager->getDeleteCriteria($this);
81
}
82
83
function
update
()
84
{
85
$this->manager->saveObjectRaw($this);
86
}
87
88
function
save
()
89
{
90
$this->manager->saveObject($this);
91
}
92
93
function
saveAssociation
($target)
94
{
95
$this->manager->saveAssociation($this, $target);
96
}
97
98
function
delete
()
99
{
100
$this->manager->deleteObject($this);
101
}
102
103
function
deleteAssociation
($target, $object)
104
{
105
$this->manager->deleteAssociation($this, $target, $object);
106
}
107
}
108
?>
MIOLO\getInstance
static getInstance()
Definição
miolo.class:134
MQuery
Definição
mquery.class:3
PersistentCriteria
Definição
persistentcriteria.class:57
PersistentObject
Definição
persistentobject.class:4
PersistentObject\__construct
__construct()
Definição
persistentobject.class:11
PersistentObject\retrieveAssociation
retrieveAssociation($target, $orderAttributes=null, $distinct=false)
Definição
persistentobject.class:58
PersistentObject\retrieveFromQuery
retrieveFromQuery(MQuery $query)
Definição
persistentobject.class:48
PersistentObject\getCriteria
getCriteria()
Definição
persistentobject.class:73
PersistentObject\saveAssociation
saveAssociation($target)
Definição
persistentobject.class:93
PersistentObject\isPersistent
isPersistent()
Definição
persistentobject.class:28
PersistentObject\retrieveAssociationAsCursor
retrieveAssociationAsCursor($target, $orderAttributes=null)
Definição
persistentobject.class:63
PersistentObject\deleteAssociation
deleteAssociation($target, $object)
Definição
persistentobject.class:103
PersistentObject\getClassMap
getClassMap()
Definição
persistentobject.class:18
PersistentObject\getDeleteCriteria
getDeleteCriteria()
Definição
persistentobject.class:78
PersistentObject\retrieveFromCriteria
retrieveFromCriteria(PersistentCriteria $criteria, $parameters=NULL)
Definição
persistentobject.class:53
PersistentObject\update
update()
Definição
persistentobject.class:83
PersistentObject\setPersistent
setPersistent($value)
Definição
persistentobject.class:23
PersistentObject\isProxy
isProxy()
Definição
persistentobject.class:38
PersistentObject\retrieveAsProxy
retrieveAsProxy()
Definição
persistentobject.class:68
PersistentObject\retrieve
retrieve()
Definição
persistentobject.class:43
PersistentObject\setProxy
setProxy($value)
Definição
persistentobject.class:33
PersistentObject\save
save()
Definição
persistentobject.class:88
classes
persistence
persistentobject.class
Gerado por
1.10.0