Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
payment_gateway_sagepay_edit_fns.inc
1 <?php
18 require_once dirname(__FILE__).'/../../payment_gateway/payment_gateway_edit_fns.inc';
19 
30 {
31 
32 
43  function paintBodycopyInfo(&$asset, &$o, $prefix)
44  {
45  $bodycopy_asset =& $asset->getBodycopy('display_format');
46 
47  $o->openRaw();
48  echo '<div style="padding:1ex;">';
49  echo get_asset_tag_line($bodycopy_asset->id, 'contents');
50  echo '</div>';
51  $o->closeRaw();
52 
53  }//end paintBodycopyInfo()
54 
55 
66  function paintBodycopy(&$asset, &$o, $prefix)
67  {
68  $write_access = $asset->writeAccess('menu');
69 
70  $bodycopy =& $asset->getBodycopy('display_format');
71  $bodycopy_edit_fns =& $bodycopy->getEditFns();
72 
73  $o->openRaw();
74  $bodycopy_edit_fns->paintBodycopy($bodycopy, $o, $bodycopy->getPrefix());
75  $o->closeRaw();
76 
77  return $write_access;
78 
79  }//end paintBodycopy()
80 
81 
92  function processBodycopy(&$asset, &$o, $prefix)
93  {
94  if (!$asset->writeAccess('menu')) return FALSE;
95 
96  $bodycopy =& $asset->getBodycopy('display_format');
97  $bodycopy_edit_fns =& $bodycopy->getEditFns();
98 
99  $status = $bodycopy_edit_fns->processBodycopy($bodycopy, $o, $bodycopy->getPrefix());
100 
101  return $status;
102 
103  }//end processBodycopy()
104 
105 
106 }//end class
107 
108 ?>