Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
trigger_folder_edit_fns.inc
1 <?php
18 require_once SQ_CORE_PACKAGE_PATH.'/folder/folder_edit_fns.inc';
19 
20 
30 {
31 
32 
38  {
39  $this->Folder_Edit_Fns();
40 
41  $this->static_screens = Array();
42  // enable just the details
43  // disable lock section
44  $this->static_screens['details']['name'] = translate('details');
45  $this->static_screens['details']['force_unlock'] = FALSE;
46  $this->static_screens['details']['lock_type'] = 'none';
47 
48  }//end constructor
49 
50 
61  function paintDetails(&$asset, &$o, $prefix)
62  {
63 
64  if(!isset($asset->name) || empty($asset->name)) {
65  return FALSE;
66  }
67 
68  // display category delimited with '/'
69  $category = explode(':',$asset->name);
70  array_shift ($category);
71  $category_path = implode('/',$category);
72 
73  $o->openField(translate('category'));
74  echo ($category_path);
75  $o->closeField();
76  // no committing allowed
77  return FALSE;
78 
79  }//end paintDetails()
80 
81 
94  function processDetails(&$asset, &$o, $prefix)
95  {
96  return FALSE;
97 
98  }//end processDetails()
99 
100 }//end class
101 
102 ?>