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