ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 ()
 Send message to remote rpc server and get response. More...
 
 __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.

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.

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

Referenced by send().

+ 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.

56 {
57 return $this->html_string;
58 }

References $html_string.

Referenced by __prepareHTML2PDFParams().

+ Here is the caller graph for this function:

◆ getMode()

ilHTML2PDF::getMode ( )

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

66 {
67 return $this->mode;
68 }

References $mode.

Referenced by send().

+ Here is the caller graph for this function:

◆ ilHTML2PDF()

ilHTML2PDF::ilHTML2PDF ( )

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

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

References $ilLog.

◆ send()

ilHTML2PDF::send ( )

Send message to remote rpc server and get response.

Returns
object result object. Type is depend on the calles method

@access protected

Reimplemented from ilRPCServerAdapter.

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

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

References ilRPCServerAdapter\__initClient(), __prepareHTML2PDFParams(), getMode(), and 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: