Example #1
0
 function __construct($userid, $mem)
 {
     parent::__construct($userid, $mem);
     $this->index = $mem['index'] ? intval($mem['index']) : 0;
     $this->pid = $mem['pid'];
     $this->playlistDb = $opt['PlaylistInfoDB'] ? $opt['PlaylistInfoDB'] : new PlaylistInfoDB();
 }
Example #2
0
 function __construct($userid, $mem, $opt = null)
 {
     parent::__construct($userid, $mem);
     $this->index = $mem['index'] ? intval($mem['index']) : 0;
     $this->cacher = $opt['Cache'] ? $opt['Cache'] : new FileCache();
     $this->voiceDb = $opt['VoiceInfoDB'] ? $opt['VoiceInfoDB'] : new VoiceInfoDB();
 }
Example #3
0
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }