Messages Custom "missingtranslation" Handling

When missing translation occur, I want to insert the missed message into the table. But I don’t know how to pass the values to the handler.

in main.php




...

'messages' => array(

    'class' => 'CDbMessageSource',

    'onMissingTranslation' => array('Translation', 'missingHandler'),

),

...



Translation.php




class Translation{


    //here I want to pass the $category and $message from Yii::t($category, $message), I need to insert into the table.

    public static function missingHandler(){

        

    }

}



I want to know how to pass value to the Translation class.