Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
physical_file_edit_fns.inc
1 <?php
18 require_once SQ_INCLUDE_PATH.'/asset_edit/asset_edit_fns.inc';
19 
32 {
33 
34 
39  function __construct()
40  {
41  parent::__construct();
42  // override static screens - only display details because the others don't apply
43  $this->static_screens = Array(
44  'details' => Array(
45  'name' => translate('details'),
46  'force_unlock' => FALSE,
47  'lock_type' => 'none',
48  ),
49  );
50  unset($this->static_screens['web_paths']);
51 
52  }//end constructor
53 
54 
65  function paintView($asset, Backend_Outputter $o, $prefix)
66  {
67  $type = $asset->getMimeType();
68 
69  if (strpos($type, 'text') === 0) {
70  $asset->printBody();
71  } else {
72  echo '<a href="?a='.$asset->id.'" target="_BLANK">'.$asset->name.'</a>';
73  }//end if
74 
75  return TRUE;
76 
77  }//end paintView()
78 
79 
90  function processView($asset, Backend_Outputter $o, $prefix)
91  {
92  return FALSE;
93 
94  }//end processView()
95 
96 }//end class
97 
98 ?>