public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['generators']['detail']['component'] = 'Kwc_Blog_Comments_Detail_Component'; $ret['generators']['child']['component']['newCommentMail'] = 'Kwc_Blog_Comments_NewCommentMail_Component'; unset($ret['generators']['write']); //either use write (on child page): //$ret['generators']['write']['component'] = 'Kwc_Blog_Comments_Write_Component'; //or quickwrite (default): $ret['generators']['quickwrite'] = array('class' => 'Kwf_Component_Generator_Static', 'component' => 'Kwc_Blog_Comments_QuickWrite_Component'); return $ret; }
public function getSelect() { $ret = parent::getSelect(); $ret->order('create_time', 'DESC'); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['childModel'] = 'Kwc_Trl_Posts_Posts_Model'; return $ret; }