ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilHTML2PDF Class Reference
+ Inheritance diagram for ilHTML2PDF:
+ Collaboration diagram for ilHTML2PDF:

Public Member Functions

 ilHTML2PDF ()
 
 setHTMLString ($a_html_string)
 
 getHTMLString ()
 
 setMode ($a_mode)
 
 getMode ()
 
 send ()
 
 __prepareHTML2PDFParams ()
 
- Public Member Functions inherited from ilRPCServerAdapter
 ilRPCServerAdapter ()
 
 setResponseTimeout ($a_response_timeout)
 
send ()
 Send message to remote rpc server and get response. More...
 
 __checkPear ()
 
 __initClient ()
 Create RPC client object. More...
 
 __initMessage ($a_message_name, $params)
 Create RPC message object. More...
 

Data Fields

 $log = null
 
 $mode = MODE_HTML2PDF
 
 $html_string = ''
 
- Data Fields inherited from ilRPCServerAdapter
 $response_timeout = RPC_TIMEOUT
 
 $log = null
 
 $db = null
 
 $err = null
 
 $settings_obj = null
 
 $rpc_client = null
 
 $rpc_message = null
 

Detailed Description

Definition at line 37 of file class.ilHTML2PDF.php.

Member Function Documentation

◆ __prepareHTML2PDFParams()

ilHTML2PDF::__prepareHTML2PDFParams ( )

Definition at line 86 of file class.ilHTML2PDF.php.

References ilRPCServerAdapter\__initMessage(), and getHTMLString().

Referenced by send().

87  {
88  $this->__initMessage('HTML2PDF.ilHTML2PDF',array(new XML_RPC_Value($this->getHTMLString(),"string")));
89 
90  return true;
91  }
__initMessage($a_message_name, $params)
Create RPC message object.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHTMLString()

ilHTML2PDF::getHTMLString ( )

Definition at line 55 of file class.ilHTML2PDF.php.

References $html_string.

Referenced by __prepareHTML2PDFParams().

56  {
57  return $this->html_string;
58  }
+ Here is the caller graph for this function:

◆ getMode()

ilHTML2PDF::getMode ( )

Definition at line 65 of file class.ilHTML2PDF.php.

References $mode.

Referenced by send().

66  {
67  return $this->mode;
68  }
+ Here is the caller graph for this function:

◆ ilHTML2PDF()

ilHTML2PDF::ilHTML2PDF ( )

Definition at line 43 of file class.ilHTML2PDF.php.

References $ilLog.

44  {
45  global $ilLog;
46 
47  parent::ilRPCServerAdapter();
48 
49  }

◆ send()

ilHTML2PDF::send ( )

Definition at line 70 of file class.ilHTML2PDF.php.

References ilRPCServerAdapter\__initClient(), __prepareHTML2PDFParams(), getMode(), and MODE_HTML2PDF.

71  {
72  $this->__initClient();
73  switch($this->getMode())
74  {
75  case MODE_HTML2PDF:
76  $this->__prepareHTML2PDFParams();
77  break;
78 
79  default:
80  $this->log->write('ilHTML2PDF(): No valid mode given');
81  return false;
82 
83  }
84  return parent::send();
85  }
__initClient()
Create RPC client object.
const MODE_HTML2PDF
+ Here is the call graph for this function:

◆ setHTMLString()

ilHTML2PDF::setHTMLString (   $a_html_string)

Definition at line 51 of file class.ilHTML2PDF.php.

52  {
53  $this->html_string = $a_html_string;
54  }

◆ setMode()

ilHTML2PDF::setMode (   $a_mode)

Definition at line 61 of file class.ilHTML2PDF.php.

62  {
63  $this->mode = $a_mode;
64  }

Field Documentation

◆ $html_string

ilHTML2PDF::$html_string = ''

Definition at line 41 of file class.ilHTML2PDF.php.

Referenced by getHTMLString().

◆ $log

ilHTML2PDF::$log = null

Definition at line 39 of file class.ilHTML2PDF.php.

◆ $mode

ilHTML2PDF::$mode = MODE_HTML2PDF

Definition at line 40 of file class.ilHTML2PDF.php.

Referenced by getMode().


The documentation for this class was generated from the following file: