Commit bcb0b39631611f6154a5281d55d93e92a06db53d

Authored by Perry Werneck
1 parent 3e69f3fc
Exists in master

Incluindo mais estados no objeto php

Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
@@ -167,11 +167,20 @@ PHP_METHOD(tn3270, __get) @@ -167,11 +167,20 @@ PHP_METHOD(tn3270, __get)
167 167
168 if(!strncasecmp("online",text,szText)) { 168 if(!strncasecmp("online",text,szText)) {
169 RETURN_BOOL(obj->hSession->is_connected()); 169 RETURN_BOOL(obj->hSession->is_connected());
  170 +
170 } else if(!strncasecmp("ready",text,szText)) { 171 } else if(!strncasecmp("ready",text,szText)) {
171 RETURN_BOOL(obj->hSession->is_ready()); 172 RETURN_BOOL(obj->hSession->is_ready());
  173 +
  174 + } else if(!strncasecmp("sslstate",text,szText)) {
  175 + RETURN_LONG((unsigned long) obj->hSession->get_secure());
  176 +
  177 + } else if(!strncasecmp("message",text,szText)) {
  178 + RETURN_LONG((unsigned long) obj->hSession->get_program_message());
  179 +
172 } else if(!strncasecmp("name",text,szText)) { 180 } else if(!strncasecmp("name",text,szText)) {
173 string str = obj->hSession->get_session_name(); 181 string str = obj->hSession->get_session_name();
174 RETURN_STRING(str.c_str(),1); 182 RETURN_STRING(str.c_str(),1);
  183 +
175 } 184 }
176 185
177 RETURN_BOOL(0); 186 RETURN_BOOL(0);