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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
<?php
/**
* @author Wei Zhuo <weizho[at]gmail[dot]com>
* @version $Id$
* @since 3.1
*/
class FlexApp extends TTemplateControl
{
private $_parameters;
/**
* FlashVar parameter name value pairs.
*
* NOTE: parameter names must be accessed in lowercase in Flex Applications!
*
* @return TAttributeCollection
*/
public function getParameters()
{
if($this->_parameters===null)
$this->_parameters = new TAttributeCollection();
return $this->_parameters;
}
public function getFlashVars()
{
$params = array();
foreach($this->getParameters() as $name=>$value)
$params[] = $name.'='.$value;
return implode('&', $params);
}
public function getWidth()
{
return $this->getViewState('Width', '450');
}
public function setWidth($value)
{
$this->setViewState('Width', $value, '450');
}
public function getHeight()
{
return $this->getViewState('Height', '300');
}
public function setHeight($value)
{
$this->setViewState('Height', $value, '300');
}
public function getBinDirectory()
{
return $this->getViewState('Bin');
}
public function setBinDirectory($value)
{
$this->setViewState('Bin', $value);
}
public function getAppName()
{
return $this->getViewState('AppName');
}
public function setAppName($value)
{
$this->setViewState('AppName', $value);
}
public function getQuality()
{
return $this->getViewState('Quality', 'high');
}
public function setQuality($value)
{
$this->setViewState('Quality', $value, 'high');
}
public function getBgcolor()
{
return $this->getViewState('bgcolor', '#ffffff');
}
public function setBgColor($value)
{
$this->setViewState('bgcolor', $value, '#ffffff');
}
public function getAlign()
{
return $this->getViewState('align', 'middle');
}
public function setAlign($value)
{
$this->setViewState('align', $value, 'middle');
}
public function getAllowScriptAccess()
{
return $this->getViewState('allowScriptAccess', 'sameDomain');
}
public function setAllowScriptAccess($value)
{
$this->setViewState('allowScriptAccess', $value, 'sameDomain');
}
}
|