library/SimplePie/Caption.php Quellcode

Caption.php
gehe zur Dokumentation dieser Datei
1 <?php
57 {
64  var $type;
65 
72  var $lang;
73 
81 
88  var $endTime;
89 
96  var $text;
97 
104  public function __construct($type = null, $lang = null, $startTime = null, $endTime = null, $text = null)
105  {
106  $this->type = $type;
107  $this->lang = $lang;
108  $this->startTime = $startTime;
109  $this->endTime = $endTime;
110  $this->text = $text;
111  }
112 
118  public function __toString()
119  {
120  // There is no $this->data here
121  return md5(serialize($this));
122  }
123 
129  public function get_endtime()
130  {
131  if ($this->endTime !== null)
132  {
133  return $this->endTime;
134  }
135  else
136  {
137  return null;
138  }
139  }
140 
147  public function get_language()
148  {
149  if ($this->lang !== null)
150  {
151  return $this->lang;
152  }
153  else
154  {
155  return null;
156  }
157  }
158 
164  public function get_starttime()
165  {
166  if ($this->startTime !== null)
167  {
168  return $this->startTime;
169  }
170  else
171  {
172  return null;
173  }
174  }
175 
181  public function get_text()
182  {
183  if ($this->text !== null)
184  {
185  return $this->text;
186  }
187  else
188  {
189  return null;
190  }
191  }
192 
198  public function get_type()
199  {
200  if ($this->type !== null)
201  {
202  return $this->type;
203  }
204  else
205  {
206  return null;
207  }
208  }
209 }
210 




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.