Package base :: Package lib :: Package drupy :: Module DrupyPHP :: Class __Output
[hide private]

Class __Output

source code

Handles drupy output functions
Instance Methods [hide private]
 
__init__(self, usebuffer=True)
init
source code
 
write(self, data)
Write body
source code
 
header(self, data, replace=True)
Write headers
source code
 
_get_header(self, item, remove=True)
Get header string
source code
 
_set_header(self, item, val, check=False)
Set a header
source code
 
flush(self)
Flush buffer...
source code
Method Details [hide private]

write(self, data)

source code 
Write body
Parameters:
  • data - Str

header(self, data, replace=True)

source code 
Write headers
Parameters:
  • data - Str

_get_header(self, item, remove=True)

source code 
Get header string
Parameters:
  • item - Str

_set_header(self, item, val, check=False)

source code 
Set a header
Parameters:
  • item - Str
  • val - Str
  • check - Bool
Returns:
Bool

flush(self)

source code 
Flush buffer For now this is only constructed to work with CGI Eventually this will need to be modified to work with WSGI