Exemplo n.º 1
0
 public function channelList()
 {
     if (!class_exists('live')) {
         include CUR_CONF_PATH . 'lib/class/live.class.php';
     }
     $objNewLive = new live();
     $channel = $objNewLive->getChannel();
     $this->addItem($channel);
     $this->output();
 }
Exemplo n.º 2
0
 public function getChannel()
 {
     include_once ROOT_PATH . 'lib/class/live.class.php';
     $newLive = new live();
     $channel = $newLive->getChannel(-1, 1);
     if (!empty($channel)) {
         $all_node = array();
         if ($this->user['prms']['app_prms'][APP_UNIQUEID]['nodes']) {
             $all_node = $this->user['prms']['app_prms'][APP_UNIQUEID]['nodes'];
         }
         foreach ($channel as $k => $v) {
             if ($this->user['group_type'] > MAX_ADMIN_TYPE) {
                 if ($this->user['prms']['app_prms'][APP_UNIQUEID]['nodes'] && in_array($v['id'], $all_node)) {
                     $this->addItem($v);
                 }
             } else {
                 $this->addItem($v);
             }
         }
         $this->output();
     }
 }
Exemplo n.º 3
0
 public function getChannel()
 {
     include_once ROOT_PATH . 'lib/class/live.class.php';
     $newLive = new live();
     $channel = $newLive->getChannel();
     if (!empty($channel)) {
         foreach ($channel as $k => $v) {
             $this->addItem($v);
         }
         $this->output();
     }
 }
Exemplo n.º 4
0
 /**
  * 获取频道列表
  * Enter description here ...
  */
 public function get_channel()
 {
     include_once ROOT_PATH . 'lib/class/live.class.php';
     $newLive = new live();
     $data = $newLive->getChannel();
     if ($data) {
         foreach ($data as $k => $v) {
             $arr[$v['id']] = $v['name'];
         }
     }
     $this->addItem($arr);
     $this->output();
 }