mythbackend.php File Reference

Go to the source code of this file.

Namespaces

namespace  MythWeb

Enumerations

enum  backend_sep
enum  MYTH_PROTO_VERSION

Functions

 backend_command ($command, $host=NULL, $port=NULL)
 Executes the requested command and returns the backend's response string.
 backend_command2 ($command, &$fp, $host=NULL, $port=NULL)
 A second backend command, so we can allow certain routines to use their own file pointer /*.
 check_proto_version ($host, $port)
 Check that we are speaking a version of the protocol that is compatible with the backend /*.
 get_backend_rows ($query, $offset=1)
 Performs a mythbackend query and splits the response into the appropriate number of rows.
 backend_notify_changes ($recordid=-1, $sleep=1)
 Tell the backend to reschedule a particular record entry.
 backend_disconnect ()
 Sends the disconnect/DONE command to the backend /*.
 myth2unixtime ($mythtime)
 Converts a myth timestamp into a unix timestamp 1.0 cvs changed the format to: 2003-06-28T06:30:00 /*.
 unix2mythtime ($time)
 Converts a unix timestamp into a myth timestamp /*.

Variables

global $NUMPROGRAMLINES = 46
global $Master_Host = get_backend_setting('MasterServerIP')
global $Master_Port = get_backend_setting('MasterServerPort')
 $extra_param = array()
 $extra_query = ' AND hostname=?'
 $value
else $cache ['-unknown-'][$setting] = $value


Enumeration Type Documentation

Definition at line 16 of file mythbackend.php.

Definition at line 20 of file mythbackend.php.


Function Documentation

backend_command ( command,
host = NULL,
port = NULL 
)

Executes the requested command and returns the backend's response string.

Todo:
JS: haven't tested UTF-8 /*

Definition at line 79 of file mythbackend.php.

backend_command2 ( command,
&$  fp,
host = NULL,
port = NULL 
)

A second backend command, so we can allow certain routines to use their own file pointer /*.

Definition at line 101 of file mythbackend.php.

check_proto_version ( host,
port 
)

Check that we are speaking a version of the protocol that is compatible with the backend /*.

Definition at line 154 of file mythbackend.php.

get_backend_rows ( query,
offset = 1 
)

Performs a mythbackend query and splits the response into the appropriate number of rows.

/*

Definition at line 181 of file mythbackend.php.

backend_notify_changes ( recordid = -1,
sleep = 1 
)

Tell the backend to reschedule a particular record entry.

If the change isn't specific to a single record entry (e.g. channel or record type priorities), then use 0. I don't think mythweb should need it, but if you need to indicate every record rule is affected, then use -1. /*

Definition at line 215 of file mythbackend.php.

backend_disconnect (  ) 

Sends the disconnect/DONE command to the backend /*.

Definition at line 228 of file mythbackend.php.

myth2unixtime ( mythtime  ) 

Converts a myth timestamp into a unix timestamp 1.0 cvs changed the format to: 2003-06-28T06:30:00 /*.

Definition at line 236 of file mythbackend.php.

unix2mythtime ( time  ) 

Converts a unix timestamp into a myth timestamp /*.

Definition at line 245 of file mythbackend.php.


Variable Documentation

$NUMPROGRAMLINES = 46

Definition at line 25 of file mythbackend.php.

$Master_Host = get_backend_setting('MasterServerIP')

Definition at line 29 of file mythbackend.php.

$Master_Port = get_backend_setting('MasterServerPort')

Definition at line 29 of file mythbackend.php.

$extra_param = array()

Definition at line 49 of file mythbackend.php.

$extra_query = ' AND hostname=?'

Definition at line 56 of file mythbackend.php.

return $value

Initial value:

 $db->query_col('SELECT data FROM settings WHERE value=?'.$extra_query,
                                $setting,
                                $extra_param)

Definition at line 63 of file mythbackend.php.

Referenced by MythTVProgram::__construct(), MythTVChannel::__construct(), MythTV::LoadConfig(), Services_JSON::name_value(), sajax_get_js_repr(), MythTV::Setting(), and MythTV::StatusCommand().

else $cache['-unknown-'][$setting] = $value

Definition at line 70 of file mythbackend.php.


Generated on Sat Dec 18 05:15:54 2010 for MythTV by  doxygen 1.5.5