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