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(); }
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(); }
public static function model($className = __CLASS__) { return parent::model($className); }