field() static public method

Field: A SubscriberField ==SQL Schema== field_id (int) Database ID/Key field_active ('on','off') If field is displayed on subscriber form field_ordering (int) Order in which field is displayed @ subscriber form field_name (str) Descriptive name for field (used for short identification) field_prompt (str) Prompt assosiated with field on subscriber form field_normally (str) Default value of field on subscriber form field_array (str) A serialized array of the field such as the options of multiple choice fields (drop down select) field_required ('on','off') If field is required for subscription field_type (enum) checkbox, multiple, text, date, number
static public field ( )
Esempio n. 1
0
 static function makeDB($row)
 {
     $in = @array('id' => $row['field_id'], 'active' => $row['field_active'], 'ordering' => $row['field_ordering'], 'name' => $row['field_name'], 'prompt' => $row['field_prompt'], 'normally' => $row['field_normally'], 'required' => $row['field_required'], 'type' => $row['field_type']);
     if (!empty($row['field_array'])) {
         $in['array'] = unserialize($row['field_array']);
     }
     $o = Pommo_Api::getParams(Pommo_Type::field(), $in);
     return $o;
 }