function SJB_IntegerType($property_info) { parent::SJB_Type($property_info); $this->minimum = isset($property_info['minimum']) ? $property_info['minimum'] : null; $this->maximum = isset($property_info['maximum']) ? $property_info['maximum'] : null; $this->sql_type = 'SIGNED'; $this->default_template = 'integer.tpl'; }
function SJB_YouTubeType($property_info) { parent::SJB_Type($property_info); if (isset($this->property_info['value'])) { $this->property_info['value'] = strip_tags($this->property_info['value']); } $this->default_template = 'youtube.tpl'; }
function SJB_EmailType($property_info) { parent::SJB_Type($property_info); $this->default_template = 'email.tpl'; $this->email_confirmation = false; if (isset($property_info['email_confirmation'])) { $this->email_confirmation = $property_info['email_confirmation']; } }
function SJB_LocationType($property_info) { parent::SJB_Type($property_info); $this->fields = isset($property_info['fields']) ? $property_info['fields'] : array(); $this->table_name = isset($property_info['table_name']) ? $property_info['table_name'] : 'listings'; $fields_info = isset($property_info['value']) ? $property_info['value'] : array(); $this->child = new SJB_Complex($this->fields, $this->table_name, $fields_info); $this->default_template = 'location.tpl'; }
function SJB_MultiListType($property_info) { parent::SJB_Type($property_info); $this->list_values = isset($property_info['list_values']) ? $property_info['list_values'] : array(); if (!empty($property_info['display_as']) && $property_info['display_as'] == 'checkboxes') { $this->default_template = 'checkboxes.tpl'; } else { $this->default_template = 'multilist.tpl'; } }
function SJB_ListType($property_info) { parent::SJB_Type($property_info); $this->list_values = isset($property_info['list_values']) ? $property_info['list_values'] : array(); if (!empty($property_info['display_as']) && $property_info['display_as'] == 'radio_buttons') { $this->default_template = 'radiobuttons.tpl'; } else { $this->default_template = 'list.tpl'; } }
function SJB_MonetaryType($property_info) { parent::SJB_Type($property_info); $this->sql_type = 'DECIMAL'; $this->currency_values = isset($property_info['currency_values']) ? $property_info['currency_values'] : array(); if (isset($this->property_info['value']) && !is_array($this->property_info['value'])) { $value = $this->property_info['value']; unset($this->property_info['value']); $this->property_info['value']['value'] = $value; } $this->default_template = 'monetary.tpl'; }
function SJB_ComplexType($property_info) { parent::SJB_Type($property_info); if (is_string($property_info['value'])) { $property_info['value'] = unserialize($property_info['value']); $this->setValue($property_info['value']); } $this->fields = isset($property_info['fields']) ? $property_info['fields'] : array(); $this->table_name = isset($property_info['table_name']) ? $property_info['table_name'] : 'listings'; $fields_info = isset($property_info['value']) ? $property_info['value'] : array(); $this->complex = new SJB_Complex($this->fields, $this->table_name, $fields_info); $this->default_template = 'complex.tpl'; }
function SJB_PasswordType($property_info) { parent::SJB_Type($property_info); $this->default_template = 'password.tpl'; }
function SJB_ComplexFileType($property_info) { parent::SJB_Type($property_info); $this->default_template = 'file.tpl'; }
function SJB_PicturesType($property_info) { parent::SJB_Type($property_info); $this->sql_type = 'UNSIGNED'; $this->default_template = 'pictures.tpl'; }
function SJB_StringType($property_info) { parent::SJB_Type($property_info); $this->default_template = 'string.tpl'; }
function SJB_DateType($property_info) { parent::SJB_Type($property_info); $this->sql_type = 'DATE'; $this->default_template = 'date.tpl'; }
function SJB_BooleanType($property_info) { parent::SJB_Type($property_info); $this->default_template = 'boolean.tpl'; }
function SJB_CaptchaType($property_info) { SJB_Event::dispatch('getPropertyInfo', $property_info, true); parent::SJB_Type($property_info); $this->default_template = 'captcha.tpl'; }
function SJB_GeoType($property_info) { parent::SJB_Type($property_info); $this->default_template = 'geo.tpl'; }
function SJB_IdType($propertyInfo) { parent::SJB_Type($propertyInfo); $this->sql_type = 'SIGNED'; $this->default_template = 'id.tpl'; }