function get_field_def() { $def = parent::get_field_def(); $def['dbType'] = 'enum'; $def['separator'] = '<br>'; return $def; }
function get_field_def() { $def = parent::get_field_def(); $def['group'] = $this->group; $def['options'] = 'countries_dom'; return $def; }
function get_field_def() { $def = parent::get_field_def(); $def['dbType'] = 'enum'; $def['parentenum'] = isset($this->ext2) && $this->ext2 != '' ? $this->ext2 : $this->parentenum; return $def; }
function get_field_def() { $def = parent::get_field_def(); $def['type_name'] = 'parent_type'; $def['id_name'] = 'parent_id'; $def['parent_type'] = 'record_type_display'; $def['source'] = 'non-db'; $def['studio'] = 'visible'; return $def; }
function get_field_def() { $def = parent::get_field_def(); if (!empty($this->ext4)) { // turn off error reporting in case we are unpacking a value that hasn't been packed... // this is kludgy, but unserialize doesn't throw exceptions correctly $oldErrorReporting = error_reporting(0); $unpacked = unserialize($this->ext4); error_reporting($oldErrorReporting); // if we have a new error, then unserialize must have failed => we don't have a packed ext4 // safe to assume that false means the unpack failed, as ext4 will either contain an imploded string of default values, or an array, not a boolean false value if ($unpacked === false) { $def['default'] = $this->ext4; } else { // we have a packed representation containing one or both of default and dependency if (isset($unpacked['default'])) { $def['default'] = $unpacked['default']; } if (isset($unpacked['dependency'])) { $def['dependency'] = $unpacked['dependency']; } } } $def['isMultiSelect'] = true; unset($def['len']); return $def; }
function get_field_def() { return array_merge(array('isMultiSelect' => true), parent::get_field_def()); }
function get_field_def() { $def = parent::get_field_def(); // Only allow setting of default value here is not calculate and not enforced if (!$def['calculated'] || !$def['enforced'] || !empty($this->ext4)) { // turn off error reporting in case we are unpacking a value that hasn't been packed... // this is kludgy, but unserialize doesn't throw exceptions correctly if (strpos($this->ext4, 'a:') === 0) { $unpacked = @unserialize($this->ext4); } else { $unpacked = false; } // if we have a new error, then unserialize must have failed => we don't have a packed ext4 // safe to assume that false means the unpack failed, as ext4 will either contain an imploded string of default values, or an array, not a boolean false value if ($unpacked === false && !isset($this->no_default)) { $def['default'] = $this->ext4; } else { // we have a packed representation containing one or both of default and dependency if (isset($unpacked['default']) && !isset($this->no_default)) { $def['default'] = $unpacked['default']; } if (isset($unpacked['dependency'])) { $def['dependency'] = $unpacked['dependency']; } } } $def['isMultiSelect'] = true; unset($def['len']); return $def; }