Ejemplo n.º 1
0
 public function getFieldsByType($type)
 {
     $presence = array('0', '2');
     $fieldModels = parent::getFieldsByType($type);
     $fields = array();
     foreach ($fieldModels as $fieldName => $fieldModel) {
         if ($fieldModel->get('displaytype') != '1' && $fieldName != 'salutationtype' || !in_array($fieldModel->get('presence'), $presence)) {
             continue;
         }
         $fields[$fieldName] = Settings_Picklist_Field_Model::getInstanceFromFieldObject($fieldModel);
     }
     return $fields;
 }
Ejemplo n.º 2
0
 public function getFieldsByType($type)
 {
     $hardCodedPickFields = array('hdnTaxType', 'email_flag');
     $fieldModels = parent::getFieldsByType($type);
     $fields = array();
     foreach ($fieldModels as $fieldName => $fieldModel) {
         if (in_array($fieldName, $hardCodedPickFields)) {
             continue;
         }
         $fields[$fieldName] = Settings_Picklist_Field_Model::getInstanceFromFieldObject($fieldModel);
     }
     return $fields;
 }