Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
ipb_user_edit_fns.inc
1 <?php
17 require_once SQ_CORE_PACKAGE_PATH.'/users/backend_user/backend_user_edit_fns.inc';
18 
31 {
32 
33 
38  function Ipb_User_Edit_Fns()
39  {
40  $this->Backend_User_Edit_Fns();
41 
42  $this->static_screens = Array(
43  'details' => Array(
44  'name' => 'Details',
45  'force_unlock' => TRUE,
46  'lock_type' => 'none',
47  ),
48  'dependants' => Array(
49  'name' => 'Dependants',
50  'force_unlock' => TRUE,
51  'lock_type' => 'none',
52  ),
53  );
54 
55  }//end constructor
56 
57 
68  function paintCustomField(&$asset, &$o, $prefix)
69  {
70  $ipb_bridge =& $GLOBALS['SQ_SYSTEM']->am->getAsset($asset->_ipbid);
71  $ipb =& $ipb_bridge->getIpbConn();
72  $custom_fields = $ipb->getCustomFields();
73  $user_custom_data = $ipb->getMemberCustomFieldData($asset->id);
74 
75  if (empty($custom_fields)) {
76  echo translate('no_custom_field').'<br />';
77  } else {
78  foreach ($custom_fields as $field) {
79  $o->openField($field['pf_title']);
80  if (empty($user_custom_data[0]['field_'.$field['pf_id']])) {
81  echo translate('none');
82  } else {
83  echo $user_custom_data[0]['field_'.$field['pf_id']];
84  }
85  $o->closeField();
86  }
87  }
88 
89  return FALSE;
90 
91  }//end paintCustomField()
92 
93 
106  function processCustomField(&$asset, &$o, $prefix)
107  {
108  return FALSE;
109 
110  }//end processCustomField()
111 
112 
113 }//end class
114 
115 ?>