Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
gportal_profiles_fields.php
1 <?php
2 /**
3  * Created by JetBrains PhpStorm.
4  * User: andrew
5  * Date: 7/16/12
6  * Time: 6:30 PM
7  * To change this template use File | Settings | File Templates.
8  */
9 return array(
10  'lastname' => array('varname' => 'lastname', 'title' => 'Last Name', 'field_type' => 'VARCHAR', 'field_size' => 255, 'field_size_min' => 3, 'required' => ProfileField::REQUIRED_YES_SHOW_REG, 'error_message' => 'Incorrect Last Name (length between 3 and 255 characters).', 'position' => 1, 'visible' => ProfileField::VISIBLE_ALL,'match'=>'/.*/'),
11  'firstname' => array('varname' => 'firstname', 'title' => 'First Name', 'field_type' => 'VARCHAR', 'field_size' => 255, 'field_size_min' => 3, 'required' => ProfileField::REQUIRED_YES_SHOW_REG, 'error_message' => 'Incorrect First Name (length between 3 and 255 characters).', 'position' => 3, 'visible' => ProfileField::VISIBLE_ALL,),
12  'birthday' => array('varname' => 'birthday', 'title' => 'Birthday', 'field_type' => 'DATE', 'field_size' => 0, 'field_size_min' => 0, 'required' => ProfileField::REQUIRED_NO_SHOW_REG, 'widget' => 'UWjuidate', 'widgetparams' => '{"ui-theme":"base","defaultDate":"-20y","maxDate":"+0y","minDate":"-100y","yearRange":"-100:+0","changeMonth":"true","changeYear":"true"}', 'position' => 3, 'visible' => ProfileField::VISIBLE_REGISTER_USER,),
13  'gender' => array('varname' => 'gender', 'title' => 'Gender', 'field_type' => 'VARCHAR', 'field_size' => '1', 'field_size_min' => '1', 'required' => '2', 'range' => 'M==Male;F==Female', 'position' => '100', 'visible' => ProfileField::VISIBLE_ALL),
14  'send_me_notifications' => array('varname' => 'send_me_notifications', 'title' => 'Send me notifications via mail', 'field_type' => 'VARCHAR', 'field_size' => '1', 'field_size_min' => '0', 'required' => '2', 'range' => 'checkbox-1', 'position' => '100', 'visible' => ProfileField::VISIBLE_ALL, 'default' => 1,'other_validator'=>'{"boolean":{}}'),
15  'forAll' => array('varname' => 'private_zip', 'title' => 'Private Zip', 'field_type' => 'VARCHAR', 'field_size' => '64', 'field_size_min' => '0', 'required' => '2', 'position' => '100', 'visible' => ProfileField::VISIBLE_ALL),
16  'forUser'=>array('varname' => 'private_city', 'title' => 'Private City ', 'field_type' => 'VARCHAR', 'field_size' => '50', 'field_size_min' => '0', 'required' => '2', 'position' => '100', 'visible' => ProfileField::VISIBLE_REGISTER_USER),
17  'forOwner'=>array('varname' => 'private_country', 'title' => 'Private Country', 'field_type' => 'VARCHAR', 'field_size' => '50', 'field_size_min' => '0', 'required' => '2', 'position' => '100', 'visible' => ProfileField::VISIBLE_ONLY_OWNER),
18  'REQUIRED_NO_SHOW_REG'=>array('varname' => 'private_phone_number', 'title' => 'Private Phone Number', 'field_type' => 'VARCHAR', 'field_size' => '100', 'field_size_min' => '0', 'required' => ProfileField::REQUIRED_NO_SHOW_REG, 'position' => '100', 'visible' => ProfileField::VISIBLE_ALL),
19  'REQUIRED_YES_SHOW_REG'=>array('varname' => 'private_mobile_phone', 'title' => 'Private Mobile Phone Number ', 'field_type' => 'VARCHAR', 'field_size' => '100', 'field_size_min' => '0', 'required' => ProfileField::REQUIRED_YES_SHOW_REG, 'position' => '100', 'visible' => ProfileField::VISIBLE_ALL),
20 );