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
src/get.cc
... ... @@ -167,11 +167,20 @@ PHP_METHOD(tn3270, __get)
167 167  
168 168 if(!strncasecmp("online",text,szText)) {
169 169 RETURN_BOOL(obj->hSession->is_connected());
  170 +
170 171 } else if(!strncasecmp("ready",text,szText)) {
171 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 180 } else if(!strncasecmp("name",text,szText)) {
173 181 string str = obj->hSession->get_session_name();
174 182 RETURN_STRING(str.c_str(),1);
  183 +
175 184 }
176 185  
177 186 RETURN_BOOL(0);
... ...