MythTV Class Reference

List of all members.


Detailed Description

Definition at line 3 of file MythTV.php.


Public Member Functions

 MythTV ()
 __construct ()
 LoadConfig ()
 Setting ($name, $hostname=NULL, $value="old\0old")
 Command ($command, $host=NULL, $port=NULL, $sendonly=FALSE)
 Send ($command, $host, $port)
 SendData ($socket, $data=NULL)
 CreateSocket ($host, $port, $data=NULL)
 Receive ($host)
 StreamBackendFile ($basename, $fh, $local_path=NULL, $host=NULL, $port=NULL, $seek=0)
 BackendRows ($command, $offset=0)
 StatusCommand ($path= '', $params=array(), $host=NULL, $port=NULL)
 Channel ($ChanID)
 LoadChannels ()
 UnixToMyth ($timestamp)
 MythToUnix ($time)
 Recording ($chanid=NULL, $starttime=NULL, $basename=NULL)
 GetRecordingDirs ()
 GetLocalHostname ()

Public Attributes

 $VERSION = '.21svn'
 $PROTO_VER = 33
 $NUMPROGRAMLINES = 43
 $BACKEND_SEP = '[]:[]'
 $RecordingTypes
 $Searches
 $RecordingStatus
 $ConfigFiles
 $ConfigFile = NULL
 $Config = array()
 $DB = NULL
 $SOCKETS = array()
 $Channels = array()
 $Scheduled = array()
 $Recorded = array()

Constructor & Destructor Documentation

MythTV::__construct (  ) 

Definition at line 76 of file MythTV.php.

Referenced by MythTV().


Member Function Documentation

MythTV::MythTV (  ) 

Definition at line 72 of file MythTV.php.

MythTV::LoadConfig (  ) 

Definition at line 104 of file MythTV.php.

Referenced by __construct().

MythTV::Setting ( name,
hostname = NULL,
value = "old\0old" 
)

Definition at line 117 of file MythTV.php.

Referenced by Send(), StatusCommand(), and StreamBackendFile().

MythTV::Command ( command,
host = NULL,
port = NULL,
sendonly = FALSE 
)

Definition at line 136 of file MythTV.php.

Referenced by BackendRows(), and Send().

MythTV::Send ( command,
host,
port 
)

Definition at line 142 of file MythTV.php.

Referenced by Command().

MythTV::SendData ( socket,
data = NULL 
)

Definition at line 157 of file MythTV.php.

Referenced by CreateSocket(), and Send().

MythTV::CreateSocket ( host,
port,
data = NULL 
)

Definition at line 166 of file MythTV.php.

Referenced by Send().

MythTV::Receive ( host  ) 

Definition at line 181 of file MythTV.php.

Referenced by Command().

MythTV::StreamBackendFile ( basename,
fh,
local_path = NULL,
host = NULL,
port = NULL,
seek = 0 
)

Definition at line 190 of file MythTV.php.

MythTV::BackendRows ( command,
offset = 0 
)

Definition at line 217 of file MythTV.php.

MythTV::StatusCommand ( path = '',
params = array(),
host = NULL,
port = NULL 
)

Definition at line 236 of file MythTV.php.

MythTV::Channel ( ChanID  ) 

Definition at line 264 of file MythTV.php.

MythTV::LoadChannels ( void   ) 

Definition at line 270 of file MythTV.php.

Referenced by Channel().

MythTV::UnixToMyth ( timestamp  ) 

Definition at line 278 of file MythTV.php.

MythTV::MythToUnix ( time  ) 

Definition at line 284 of file MythTV.php.

MythTV::Recording ( chanid = NULL,
starttime = NULL,
basename = NULL 
)

Definition at line 288 of file MythTV.php.

MythTV::GetRecordingDirs (  ) 

Definition at line 292 of file MythTV.php.

MythTV::GetLocalHostname (  ) 

Definition at line 301 of file MythTV.php.


Member Data Documentation

MythTV::$VERSION = '.21svn'

Definition at line 4 of file MythTV.php.

MythTV::$PROTO_VER = 33

Definition at line 7 of file MythTV.php.

MythTV::$NUMPROGRAMLINES = 43

Definition at line 11 of file MythTV.php.

MythTV::$BACKEND_SEP = '[]:[]'

Definition at line 12 of file MythTV.php.

MythTV::$RecordingTypes

Initial value:

 array(    1  => 'Once',
                                        2  => 'Daily',
                                        3  => 'Channel',
                                        4  => 'Always',
                                        5  => 'Weekly',
                                        6  => 'Find Once',
                                        7  => 'Override',
                                        8  => 'Dont Record',
                                        9  => 'Find Daily',
                                        10 => 'Find Weekly' )

Definition at line 14 of file MythTV.php.

MythTV::$Searches

Initial value:

 array(    1  => 'Power',
                                        2  => 'Title',
                                        3  => 'Keyword',
                                        4  => 'People',
                                        5  => 'Manual' )

Definition at line 25 of file MythTV.php.

MythTV::$RecordingStatus

Initial value:

 array(   -8 => 'TunerBusy',
                                        -7 => 'LowDiskSpace',
                                        -6 => 'Cancelled',
                                        -5 => 'Deleted',
                                        -4 => 'Aborted',
                                        -3 => 'Recorded',
                                        -2 => 'Recording',
                                        -1 => 'WillRecord',
                                        0  => 'Unknown',
                                        1  => 'DontRecord',
                                        2  => 'PreviousRecording',
                                        3  => 'CurrentRecording',
                                        4  => 'EarlierShowing',
                                        5  => 'TooManyRecordings',
                                        6  => 'NotListed',
                                        7  => 'Conflict',
                                        8  => 'LaterShowing',
                                        9  => 'Repeat',
                                        10 => 'Inactive',
                                        11 => 'NeverRecord' )

Definition at line 32 of file MythTV.php.

MythTV::$ConfigFiles

Initial value:

 array(    '/usr/local/share/mythtv/mysql.txt',
                                        '/usr/share/mythtv/mysql.txt',
                                        '/usr/local/etc/mythtv/mysql.txt',
                                        '/etc/mythtv/mysql.txt',
                                        '~/.mythtv/mysql.txt',
                                        'mysql.txt' )

Definition at line 54 of file MythTV.php.

MythTV::$ConfigFile = NULL

Definition at line 60 of file MythTV.php.

Referenced by __construct().

MythTV::$Config = array()

Definition at line 62 of file MythTV.php.

MythTV::$DB = NULL

Definition at line 64 of file MythTV.php.

MythTV::$SOCKETS = array()

Definition at line 66 of file MythTV.php.

MythTV::$Channels = array()

Definition at line 68 of file MythTV.php.

MythTV::$Scheduled = array()

Definition at line 69 of file MythTV.php.

MythTV::$Recorded = array()

Definition at line 70 of file MythTV.php.


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

Generated on Sat Dec 18 05:16:08 2010 for MythTV by  doxygen 1.5.5