FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Member Functions | List of all members
Sms_Klikniavolej Class Reference

SMS driver for gate Klikniavolej.cz. More...

Inheritance diagram for Sms_Klikniavolej:
Sms

Public Member Functions

 test_conn ()
 Test if connection to server is OK.
 send ($sender, $recipient, $message)
 Try to send SMS messages.
 receive ()
 Try to receive SMS messages.
 get_received_messages ()
 Gets recieved messages after receive.
 get_error ()
 Gets error report.
 get_status ()
 Gets state of message.
 set_test ($test)
 Sets test (no SMS are sended, just states are made)
 set_hostname ($hostname)
 Sets hostname of gate.
- Public Member Functions inherited from Sms
 set_user ($user)
 Sets user to gate.
 set_password ($password)
 Sets password to gate.

Protected Member Functions

 __construct ()
 Construct cannot be called from outside.
 get_last_id ()
 Gets last id from server ans set it to property with status.

Additional Inherited Members

- Static Public Member Functions inherited from Sms
static factory ($driver)
 Factory for SMS drivers.
static get_driver_name ($driver, $with_help=FALSE)
 Gets name of driver.
static get_drivers ()
 Gets drivers array.
static get_active_drivers ()
 Gets list of active drivers for selectboxes.
static has_active_driver ()
 Check if there are any active drivers.
static enabled ()
 Checks if SMS are enabled on server.
- Public Attributes inherited from Sms
const DRIVER_CLASS_PREFIX = 'Sms_'
const DRIVER_INACTIVE = 1
const DRIVER_ACTIVE = 2
const SOUNDWINV100 = 2
const KLIKNIAVOLEJ = 3
- Protected Attributes inherited from Sms
 $hostname
 $user
 $password

Detailed Description

SMS driver for gate Klikniavolej.cz.

See Also
http://www.klikniavolej.cz/
Author
Roman Sevcik, Ondrej Fibich

Member Function Documentation

Sms_Klikniavolej::get_error ( )

Gets error report.

Returns
mixed Error report or FALSE on no error

Reimplemented from Sms.

Sms_Klikniavolej::get_last_id ( )
protected

Gets last id from server ans set it to property with status.

Returns
bool FALSE on error TRUE on success
Sms_Klikniavolej::get_received_messages ( )

Gets recieved messages after receive.

Returns
array

Reimplemented from Sms.

Sms_Klikniavolej::get_status ( )

Gets state of message.

Returns
mixed State or FALSE on no error

Reimplemented from Sms.

Sms_Klikniavolej::receive ( )
final

Try to receive SMS messages.

This driver cannot receive any SMS messages.

Returns
boolean FALSE on error TRUE on success

Reimplemented from Sms.

Sms_Klikniavolej::send (   $sender,
  $recipient,
  $message 
)

Try to send SMS messages.

Parameters
string$senderSender of message
string$recipientRecipier of message
string$messageText of message
Returns
boolean FALSE on error TRUE on success

Reimplemented from Sms.

Sms_Klikniavolej::set_hostname (   $hostname)

Sets hostname of gate.

Disable set of hostname.

Parameters
string$hostname
Deprecated:
Do not use

Reimplemented from Sms.

Sms_Klikniavolej::set_test (   $test)

Sets test (no SMS are sended, just states are made)

Parameters
bool$test

Reimplemented from Sms.

Sms_Klikniavolej::test_conn ( )

Test if connection to server is OK.

Returns
bool

Reimplemented from Sms.


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