Esempio n. 1
0
 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';
 }
Esempio n. 2
0
 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';
 }
Esempio n. 3
0
 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'];
     }
 }
Esempio n. 4
0
 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';
 }
Esempio n. 5
0
 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';
     }
 }
Esempio n. 6
0
 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';
     }
 }
Esempio n. 7
0
 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';
 }
Esempio n. 8
0
 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';
 }
Esempio n. 9
0
 function SJB_PasswordType($property_info)
 {
     parent::SJB_Type($property_info);
     $this->default_template = 'password.tpl';
 }
Esempio n. 10
0
 function SJB_ComplexFileType($property_info)
 {
     parent::SJB_Type($property_info);
     $this->default_template = 'file.tpl';
 }
Esempio n. 11
0
 function SJB_PicturesType($property_info)
 {
     parent::SJB_Type($property_info);
     $this->sql_type = 'UNSIGNED';
     $this->default_template = 'pictures.tpl';
 }
Esempio n. 12
0
 function SJB_StringType($property_info)
 {
     parent::SJB_Type($property_info);
     $this->default_template = 'string.tpl';
 }
Esempio n. 13
0
 function SJB_DateType($property_info)
 {
     parent::SJB_Type($property_info);
     $this->sql_type = 'DATE';
     $this->default_template = 'date.tpl';
 }
Esempio n. 14
0
 function SJB_BooleanType($property_info)
 {
     parent::SJB_Type($property_info);
     $this->default_template = 'boolean.tpl';
 }
Esempio n. 15
0
 function SJB_CaptchaType($property_info)
 {
     SJB_Event::dispatch('getPropertyInfo', $property_info, true);
     parent::SJB_Type($property_info);
     $this->default_template = 'captcha.tpl';
 }
Esempio n. 16
0
 function SJB_GeoType($property_info)
 {
     parent::SJB_Type($property_info);
     $this->default_template = 'geo.tpl';
 }
Esempio n. 17
0
 function SJB_IdType($propertyInfo)
 {
     parent::SJB_Type($propertyInfo);
     $this->sql_type = 'SIGNED';
     $this->default_template = 'id.tpl';
 }