Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
design_area_constant_button_edit_fns.inc
1
<?php
18
require_once SQ_CORE_PACKAGE_PATH.
'/designs/design_area/design_area_edit_fns.inc'
;
19
31
class
Design_Area_Constant_Button_Edit_Fns
extends
Design_Area_Edit_Fns
32
{
33
34
39
function
__construct
()
40
{
41
parent::__construct();
42
43
}
//end constructor
44
45
56
public
function
paintAssetid
(
Design_Area_Constant_Button
$asset,
Backend_Outputter
$o, $prefix)
57
{
58
if
($asset->
writeAccess
(
'attributes'
)) {
59
// if they are trying to set the type_codes, split the string
60
asset_finder($prefix.
'_assetid'
, $asset->
attr
(
'assetid'
));
61
62
}
else
if
($asset->
attr
(
'assetid'
)) {
63
$link_asset = $GLOBALS[
'SQ_SYSTEM'
]->am->getAsset($asset->
attr
(
'assetid'
));
64
if
(!is_null($link_asset)) {
65
echo get_asset_tag_line($link_asset->id);
66
}
67
68
}
// end if
69
70
return
TRUE;
71
72
}
//end paintAssetid()
73
74
85
public
function
processAssetid
(
Design_Area_Constant_Button
$asset,
Backend_Outputter
$o, $prefix)
86
{
87
if
(!isset($_POST[$prefix.
'_assetid'
][
'assetid'
])) {
88
return
FALSE;
89
}
90
91
if
($asset->
attr
(
'assetid'
) == $_POST[$prefix.
'_assetid'
][
'assetid'
]) {
92
return
FALSE;
93
}
94
95
return
$asset->
setAttrValue
(
'assetid'
, (
int
) $_POST[$prefix.
'_assetid'
][
'assetid'
]);
96
97
}
//end processAssetid()
98
99
100
}
//end class
101
?>
squiz_matrix
core
assets
designs
design_areas
design_area_constant_button
design_area_constant_button_edit_fns.inc
Generated on Tue Jan 29 2013 14:04:36 for Squiz Matrix by
1.8.3.1