Source for file Recording.class.php

Documentation is available at Recording.class.php

  1. <?php
  2.  
  3. class Recording {
  4.  
  5. /**
  6. * @access private
  7. * @var string
  8. */
  9. private $lID;
  10.  
  11. /**
  12. * @access private
  13. * @var string
  14. */
  15. private $lName;
  16.  
  17.  
  18. private $lDescription;
  19. private $lServiceName;
  20. private $lStartTime;
  21. private $lDuration;
  22. private $lFilename;
  23. private $lFileSize;
  24.  
  25.  
  26.  
  27.  
  28. /**
  29. * @access private
  30. * @var string
  31. */
  32. private $lIPNummer;
  33.  
  34. /**
  35. * @access private
  36. * @var string
  37. */
  38. private $lType;
  39.  
  40.  
  41. /**
  42. * Constructor. This creates a Channel object.
  43. * @param int $pID
  44. * @param string $pIP
  45. * @param string $pType
  46. * @param string $pName
  47. * @return Channel
  48. */
  49. function __construct($pID,$pIP,$pType,$pName, $pDescription, $pServiceName, $pStartTime, $pDuration, $pFilename, $plFileSize) {
  50. $this->lID = trim($pID);
  51. $this->lIPNummer = trim($pIP);
  52. $this->lType = trim($pType);
  53. $this->lName = trim($pName);
  54. $this->lDescription = trim($pDescription);
  55. $this->lServiceName = trim($pServiceName);
  56. $this->lStartTime = trim($pStartTime);
  57. $this->lDuration = trim($pDuration);
  58. $this->lFilename = trim($pFilename);
  59. $this->lFileSize = trim($plFileSize);
  60. }
  61.  
  62. /**
  63. * Get the channel ID.
  64. * @return string
  65. */
  66. public function getID() {
  67. return trim($this->lID);
  68. }
  69.  
  70. /**
  71. * Get the channel name.
  72. * @return string
  73. */
  74. public function getName() {
  75. return trim($this->lName);
  76. }
  77.  
  78. /**
  79. * Get the description.
  80. * @return string
  81. */
  82. public function getDescription() {
  83. return trim($this->lDescription);
  84. }
  85. /**
  86. * Get the service name.
  87. * @return string
  88. */
  89. public function getServiceName() {
  90. return trim($this->lServiceName);
  91. }
  92. /**
  93. * Get the start time
  94. * @return int
  95. */
  96. public function getStartTime() {
  97. return trim($this->lStartTime);
  98. }
  99.  
  100. /**
  101. * Get the duration.
  102. * @return int
  103. */
  104. public function getDuration() {
  105. return trim($this->lDuration);
  106. }
  107.  
  108. /**
  109. * Get the file name.
  110. * @return string
  111. */
  112. public function getFilename() {
  113. $lStartPos = strripos($this->lFilename,"/");
  114. return trim(substr($this->lFilename,$lStartPos+1));
  115. }
  116.  
  117. /**
  118. * Get the file size.
  119. * @return int
  120. */
  121. public function getFileSize($pFormat) {
  122. return trim($this->lFileSize);
  123. }
  124. }
  125. ?>

Documentation generated on Tue, 24 Jun 2008 18:59:37 +0200 by phpDocumentor 1.3.0RC3