static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
'title' => Loc::getMessage('V_TABLE_FIELD_ID'),
),
'SYMBOLIC_NAME' => array(
'data_type' => 'string',
'size' => 255,
'title' => Loc::getMessage('V_TABLE_FIELD_SYMBOLIC_NAME'),
),
'TITLE' => array(
'data_type' => 'string',
'size' => 255,
'title' => Loc::getMessage('V_TABLE_FIELD_TITLE'),
),
'C_SORT' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('V_TABLE_FIELD_C_SORT'),
),
'ACTIVE' => array(
'data_type' => 'boolean',
'values' => array('N', 'Y'),
'default_value' => 'Y',
'title' => Loc::getMessage('V_TABLE_FIELD_ACTIVE')
),
'HIDDEN' => array(
'data_type' => 'boolean',
'values' => array('N', 'Y'),
'default_value' => 'N',
'title' => Loc::getMessage('V_TABLE_FIELD_HIDDEN')
),
'TIMESTAMP_X' => array(
'data_type' => 'datetime',
'title' => Loc::getMessage('V_TABLE_FIELD_TIMESTAMP_X'),
),
'VOTE_SINGLE' => array(
'data_type' => 'boolean',
'values' => array('N', 'Y'),
'default_value' => 'Y',
'title' => Loc::getMessage('V_TABLE_FIELD_ACTIVE')
),
'USE_CAPTCHA' => array(
'data_type' => 'boolean',
'values' => array('N', 'Y'),
'default_value' => 'N',
'title' => Loc::getMessage('V_TABLE_FIELD_HIDDEN')
),
'PERMISSION' => array(
'data_type' => 'BitrixVoteChannelGroupTable',
'reference' => array(
'=this.ID' => 'ref.CHANNEL_ID',
),
'join_type' => 'INNER',
),
'SITE' => array(
'data_type' => 'BitrixVoteChannelSiteTable',
'reference' => array(
'=this.ID' => 'ref.CHANNEL_ID',
),
'join_type' => 'LEFT',
)
);
}