Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
file_bridge_edit_fns.inc
1 <?php
17 require_once SQ_INCLUDE_PATH.'/asset_edit/asset_edit_fns.inc';
18 require_once SQ_FUDGE_PATH.'/general/text.inc';
19 
32 {
33 
34 
40  {
41  parent::__construct();
42 
43  }//end constructor
44 
45 
56  function paintFilename(&$asset, &$o, $prefix)
57  {
58  $wa = $asset->writeAccess('attributes');
59  if ($wa) {
60  echo $asset->attr('name');
61  } else {
62  echo $asset->attr('name');
63  }
64  return $wa;
65 
66  }//end paintFilename()
67 
68 
79  function processFilename(&$asset, &$o, $prefix)
80  {
81  $wa = $asset->writeAccess('attributes');
82 
83  return $wa;
84 
85  }//end processFilename()
86 
87 
88 
99  function paintPath(&$asset, &$o, $prefix)
100  {
101  require_once (SQ_DATA_PATH.'/private/conf/file_bridge.inc');
102  $o->openField('Path');
103  echo FILE_BRIDGE_PATH;
104  $o->note("Configure path in ".SQ_DATA_PATH.'/private/conf/file_bridge.inc');
105  $o->closeField();
106 
107  }//end paintFilename()
108 
109 }//end class
110 
111 ?>