public function updateLyricsCount() { $this->saveVar('ss_lyrics', Slay_Lyrics::getLyricsCount($this)); }
private function formAddLyrics(Slay_Song $song) { $user = GWF_Session::getUser(); $data = array('lyrics' => array(GWF_Form::MESSAGE_NOBB, Slay_Lyrics::getLyrics($song, $user), $this->module->lang('th_lyrics')), 'enabled' => array(GWF_Form::CHECKBOX, Slay_Lyrics::isEnabledLyrics($song, $user), $this->module->lang('th_enabled')), 'add' => array(GWF_Form::SUBMIT, $this->module->lang('btn_add_lyrics'))); return new GWF_Form($this, $data); }
private function formEditLyrics(Slay_Lyrics $lyrics) { $data = array('lyrics' => array(GWF_Form::MESSAGE_NOBB, $lyrics->getVar('ssl_lyrics'), $this->module->lang('th_lyrics')), 'enabled' => array(GWF_Form::CHECKBOX, $lyrics->isEnabled(), $this->module->lang('th_enabled')), 'add' => array(GWF_Form::SUBMIT, $this->module->lang('btn_edit'))); return new GWF_Form($this, $data); }