示例#1
0
 protected function setHeaderLine($type)
 {
     $this->types = EfrontExport::getTypes($type);
     if ($type == "users") {
         if (G_VERSIONTYPE == 'enterprise') {
             #cpp#ifdef ENTERPRISE
             $complete_user_info = array();
             foreach ($this->types as $column => $field) {
                 $complete_user_info[$column] = "users." . $field;
             }
             $hcd_user_info = EfrontImport::getTypes("employees");
             unset($hcd_user_info['users_login']);
             foreach ($hcd_user_info as $column => $field) {
                 $complete_user_info[$column] = "module_hcd_employees." . $field;
             }
             $this->types = $complete_user_info;
         }
         #cpp#endif
         unset($this->types['password']);
     }
     $this->lines[] = implode($this->separator, array_keys($this->types));
 }