Ejemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * @see \library\BaseModel::getElementsRender()
  */
 public function getElementsRender()
 {
     $output = array('member_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_ID_HINT')), 'login_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_NAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_NAME_HINT'), 'required' => true), 'login_type' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_TYPE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_TYPE_HINT'), 'options' => DataPortal::getLoginTypeEnum(), 'value' => DataPortal::LOGIN_TYPE_MAIL), 'password' => array('__tid__' => 'main', 'type' => 'password', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_PASSWORD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_PASSWORD_HINT'), 'required' => true), 'repassword' => array('__tid__' => 'main', 'type' => 'password', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_REPASSWORD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_REPASSWORD_HINT'), 'required' => true), 'salt' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_SALT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_SALT_HINT')), 'member_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_NAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_NAME_HINT')), 'member_mail' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_MAIL_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_MAIL_HINT')), 'member_phone' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_PHONE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_PHONE_HINT')), 'relation_member_id' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_RELATION_MEMBER_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_RELATION_MEMBER_ID_HINT')), 'dt_registered' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_REGISTERED_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_REGISTERED_HINT'), 'disabled' => true), 'dt_last_login' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_LAST_LOGIN_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_LAST_LOGIN_HINT'), 'disabled' => true), 'dt_last_repwd' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_LAST_REPWD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_LAST_REPWD_HINT'), 'disabled' => true), 'ip_registered' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_REGISTERED_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_REGISTERED_HINT'), 'disabled' => true), 'ip_last_login' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_LAST_LOGIN_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_LAST_LOGIN_HINT'), 'disabled' => true), 'ip_last_repwd' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_LAST_REPWD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_LAST_REPWD_HINT'), 'disabled' => true), 'login_count' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_COUNT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_COUNT_HINT'), 'disabled' => true), 'repwd_count' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_REPWD_COUNT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_REPWD_COUNT_HINT'), 'disabled' => true), 'valid_mail' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_VALID_MAIL_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_VALID_MAIL_HINT'), 'options' => DataPortal::getValidMailEnum(), 'value' => DataPortal::VALID_MAIL_N), 'valid_phone' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_VALID_PHONE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_VALID_PHONE_HINT'), 'options' => DataPortal::getValidPhoneEnum(), 'value' => DataPortal::VALID_PHONE_N), 'forbidden' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_FORBIDDEN_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_FORBIDDEN_HINT'), 'options' => DataPortal::getForbiddenEnum(), 'value' => DataPortal::FORBIDDEN_N), 'trash' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_TRASH_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_TRASH_HINT'), 'options' => DataPortal::getTrashEnum(), 'value' => DataPortal::TRASH_N), 'dt_registered_ge' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_DT_REGISTERED_GE_LABEL')), 'dt_registered_le' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_DT_REGISTERED_LE_LABEL')), 'dt_last_login_ge' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_DT_LAST_LOGIN_GE_LABEL')), 'dt_last_login_le' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_DT_LAST_LOGIN_LE_LABEL')), 'login_count_ge' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_LOGIN_COUNT_GE_LABEL')), 'login_count_le' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_LOGIN_COUNT_LE_LABEL')));
     return $output;
 }
Ejemplo n.º 2
0
 /**
  * (non-PHPdoc)
  * @see \library\BaseModel::getElementsRender()
  */
 public function getElementsRender()
 {
     $output = array('member_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MEMBER_MEMBERS_MEMBER_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_MEMBER_ID_HINT')), 'login_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_NAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_NAME_HINT'), 'required' => true), 'login_type' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_TYPE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_TYPE_HINT'), 'options' => DataPortal::getLoginTypeEnum(), 'value' => DataPortal::LOGIN_TYPE_MAIL), 'p_password' => array('__tid__' => 'main', 'type' => 'password', 'label' => Text::_('MOD_MEMBER_MEMBERS_P_PASSWORD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_P_PASSWORD_HINT'), 'required' => true), 'p_repassword' => array('__tid__' => 'main', 'type' => 'password', 'label' => Text::_('MOD_MEMBER_MEMBERS_P_REPASSWORD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_P_REPASSWORD_HINT'), 'required' => true), 'type_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBERS_TYPE_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_TYPE_ID_HINT')), 'rank_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBERS_RANK_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_RANK_ID_HINT')), 'experience' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_EXPERIENCE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_EXPERIENCE_HINT')), 'balance' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_BALANCE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_BALANCE_HINT')), 'balance_freeze' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_BALANCE_FREEZE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_BALANCE_FREEZE_HINT')), 'points' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_POINTS_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_POINTS_HINT')), 'points_freeze' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_POINTS_FREEZE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_POINTS_FREEZE_HINT')), 'consum' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_CONSUM_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_CONSUM_HINT')), 'orders' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_ORDERS_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_ORDERS_HINT')), 'description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_MEMBER_MEMBERS_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_DESCRIPTION_HINT')), 'dt_last_rerank' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_DT_LAST_RERANK_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_DT_LAST_RERANK_HINT'), 'disabled' => true), 'dt_created' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_DT_CREATED_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_DT_CREATED_HINT'), 'disabled' => true));
     return $output;
 }
Ejemplo n.º 3
0
 /**
  * 获取“是否删除”验证规则
  * @param mixed $value
  * @return array
  */
 public function getTrashRule($value)
 {
     $enum = DataPortal::getTrashEnum();
     return array('InArray' => new validator\InArrayValidator($value, array_keys($enum), sprintf(Lang::_('SRV_FILTER_MEMBER_PORTAL_TRASH_INARRAY'), implode(', ', $enum))));
 }
Ejemplo n.º 4
0
 /**
  * 获取“是否禁用”
  * @param string $forbidden
  * @return string
  */
 public function getForbiddenLangByForbidden($forbidden)
 {
     $enum = DataPortal::getForbiddenEnum();
     return isset($enum[$forbidden]) ? $enum[$forbidden] : '';
 }