MIOLO20
Toggle main menu visibility
Página principal
Estruturas de dados
Estruturas de dados
Hierarquia de classes
Campos de dados
Tudo
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Funções
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variáveis
$
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Ficheiros
Lista de ficheiros
Globais
Tudo
$
_
a
c
d
e
f
g
i
l
m
o
p
r
s
u
Funções
Variáveis
$
_
c
e
f
l
m
o
p
s
Exemplos
•
Tudo
Estruturas de dados
Namespaces
Ficheiros
Funções
Variáveis
Carregando...
Procurando...
Nenhuma entrada encontrada
attributemap.class
Ir para a documentação deste ficheiro.
1
<?php
2
3
class
AttributeMap
4
{
5
private
$columnMap = NULL;
6
private
$name;
7
private
$proxy;
8
private
$reference;
9
private
$index = NULL;
10
11
public
function
__construct
($name)
12
{
13
$this->name = $name;
14
$this->columnMap = NULL;
15
}
11
public
function
__construct
($name) {
…
}
16
17
public
function
setName
($name)
18
{
19
$this->name = $name;
20
}
17
public
function
setName
($name) {
…
}
21
22
public
function
getName
()
23
{
24
return
$this->name;
25
}
22
public
function
getName
() {
…
}
26
27
public
function
setIndex
($index)
28
{
29
$this->index = $index;
30
}
27
public
function
setIndex
($index) {
…
}
31
32
public
function
setValue
($object, $value)
33
{
34
if
(($pos = strpos($this->name,
'.'
)) !== FALSE)
35
{
36
$nested = substr($this->name,0,$pos);
37
if
(is_null($object->{$nested}))
38
{
39
$attribute = substr($this->name,$pos+1);
40
$classMap = $object->getClassMap();
41
$aMap = $classMap->getAssociationMap($nested);
42
$cm = $aMap->getForClass();
43
$nestedObject = $cm->getObject();
44
$object->{$nested} = $nestedObject;
45
}
46
else
47
{
48
$nestedObject = $object->{$nested};
49
}
50
$nestedObject->{$attribute} = $value;
51
}
52
elseif ($this->index)
53
{
54
$object->{$this->name}{$this->index} = $value;
55
}
56
else
57
{
58
$object->{$this->name} = $value;
59
}
60
}
32
public
function
setValue
($object, $value) {
…
}
61
62
public
function
getValue
($object)
63
{
64
if
($this->index)
65
{
66
$value = $object->{$this->name}{$this->index};
67
}
68
else
69
{
70
$value = $object->{$this->name};
71
}
72
return
$value;
73
}
62
public
function
getValue
($object) {
…
}
74
75
public
function
setProxy
($value=NULL)
76
{
77
if
($value === NULL) $value =
false
;
78
$this->proxy = ($value ==
'true'
);
79
}
75
public
function
setProxy
($value=NULL) {
…
}
80
81
public
function
isProxy
()
82
{
83
return
$this->proxy;
84
}
81
public
function
isProxy
() {
…
}
85
86
public
function
setColumnMap
(&$columnMap)
87
{
88
$this->columnMap = $columnMap;
89
}
86
public
function
setColumnMap
(&$columnMap) {
…
}
90
91
public
function
setReference
(&$attributeMap)
92
{
93
$this->reference = $attributeMap;
94
}
91
public
function
setReference
(&$attributeMap) {
…
}
95
96
public
function
getReference
()
97
{
98
return
$this->reference;
99
}
96
public
function
getReference
() {
…
}
100
101
public
function
getColumnMap
()
102
{
103
return
$this->columnMap;
104
}
101
public
function
getColumnMap
() {
…
}
105
}
3
class
AttributeMap
{
…
};
106
?>
AttributeMap
Definição
attributemap.class:4
AttributeMap\getReference
getReference()
Definição
attributemap.class:96
AttributeMap\setProxy
setProxy($value=NULL)
Definição
attributemap.class:75
AttributeMap\setName
setName($name)
Definição
attributemap.class:17
AttributeMap\setReference
setReference(&$attributeMap)
Definição
attributemap.class:91
AttributeMap\getName
getName()
Definição
attributemap.class:22
AttributeMap\__construct
__construct($name)
Definição
attributemap.class:11
AttributeMap\setColumnMap
setColumnMap(&$columnMap)
Definição
attributemap.class:86
AttributeMap\getValue
getValue($object)
Definição
attributemap.class:62
AttributeMap\isProxy
isProxy()
Definição
attributemap.class:81
AttributeMap\getColumnMap
getColumnMap()
Definição
attributemap.class:101
AttributeMap\setIndex
setIndex($index)
Definição
attributemap.class:27
AttributeMap\setValue
setValue($object, $value)
Definição
attributemap.class:32
classes
persistence
map
attributemap.class
Gerado por
1.10.0