| 187 | |
| 188 | // set the class members which don't get sent from the backend |
| 189 | $program->rater = $data['rater']; |
| 190 | $program->rating = $data['rating']; |
| 191 | $program->category_type = _or($data['category_type'], t('Unknown')); |
| 192 | $program->showtype = $data['showtype']; |
| 193 | $program->starstring = $data['starstring']; |
| 194 | $program->stars = $data['stars']; |
| 195 | $program->subtitled = $data['subtitled']; |
| 196 | $program->partnumber = $data['partnumber']; |
| 197 | $program->parttotal = $data['parttotal']; |
| 198 | $program->colorcode = $data['colorcode']; |
| 199 | $program->syndicatedepisodenumber = $data['syndicatedepisodenumber']; |
| 200 | $program->title_pronounce = $data['title_pronounce']; |
346 | | $this->has_commflag = ($progflags & 0x01) ? true : false; // FL_COMMFLAG = 0x01 |
347 | | $this->has_cutlist = ($progflags & 0x02) ? true : false; // FL_CUTLIST = 0x02 |
348 | | $this->auto_expire = ($progflags & 0x04) ? true : false; // FL_AUTOEXP = 0x04 |
349 | | $this->is_editing = ($progflags & 0x08) ? true : false; // FL_EDITING = 0x08 |
350 | | $this->bookmark = ($progflags & 0x10) ? true : false; // FL_BOOKMARK = 0x10 |
| 360 | $this->has_commflag = ($progflags & 0x001) ? true : false; // FL_COMMFLAG = 0x001 |
| 361 | $this->has_cutlist = ($progflags & 0x002) ? true : false; // FL_CUTLIST = 0x002 |
| 362 | $this->auto_expire = ($progflags & 0x004) ? true : false; // FL_AUTOEXP = 0x004 |
| 363 | $this->is_editing = ($progflags & 0x008) ? true : false; // FL_EDITING = 0x008 |
| 364 | $this->bookmark = ($progflags & 0x010) ? true : false; // FL_BOOKMARK = 0x010 |
| 365 | // FL_INUSERECORDING = 0x020 |
| 366 | // FL_INUSEPLAYING = 0x040 |
| 367 | $this->stereo = ($progflags & 0x080) ? true : false; // FL_STEREO = 0x080 |
| 368 | $this->closecaptioned = ($progflags & 0x100) ? true : false; // FL_CC = 0x100 |
| 369 | $this->hdtv = ($progflags & 0x200) ? true : false; // FL_HDTV = 0x200 |
| 370 | // FL_TRANSCODED = 0x400 |