protected static function transform_user_evidence($userid, user_evidence $ue) {
        $options = ['context' => $ue->get_context()];
        return [
            'name' => format_string($ue->get('name'), true, $options),
            'description' => format_text($ue->get('description'), $ue->get('descriptionformat'), $options),
            'url' => $ue->get('url'),
            'timecreated' => $ue->get('timecreated') ? transform::datetime($ue->get('timecreated')) : '-',
            'timemodified' => $ue->get('timemodified') ? transform::datetime($ue->get('timemodified')) : '-',
            'created_or_modified_by_you' => transform::yesno($ue->get('usermodified') == $userid),
            'competencies' => []
        ];
    }
protected static function transform_user_evidence($userid, user_evidence $ue) {
        $options = ['context' => $ue->get_context()];
        return [
            'name' => format_string($ue->get('name'), true, $options),
            'description' => format_text($ue->get('description'), $ue->get('descriptionformat'), $options),
            'url' => $ue->get('url'),
            'timecreated' => $ue->get('timecreated') ? transform::datetime($ue->get('timecreated')) : '-',
            'timemodified' => $ue->get('timemodified') ? transform::datetime($ue->get('timemodified')) : '-',
            'created_or_modified_by_you' => transform::yesno($ue->get('usermodified') == $userid),
            'competencies' => []
        ];
    }
protected static function transform_user_evidence ( $ userid , user_evidence $ ue ) { $ options = [ 'context' => $ ue -> get_context ( ) ] ; return [ 'name' => format_string ( $ ue -> get ( 'name' ) , true , $ options ) , 'description' => format_text ( $ ue -> get ( 'description' ) , $ ue -> get ( 'descriptionformat' ) , $ options ) , 'url' => $ ue -> get ( 'url' ) , 'timecreated' => $ ue -> get ( 'timecreated' ) ? transform :: datetime ( $ ue -> get ( 'timecreated' ) ) : '-' , 'timemodified' => $ ue -> get ( 'timemodified' ) ? transform :: datetime ( $ ue -> get ( 'timemodified' ) ) : '-' , 'created_or_modified_by_you' => transform :: yesno ( $ ue -> get ( 'usermodified' ) == $ userid ) , 'competencies' => [ ] ] ; }
Transform a user evidence.

@param int $userid The user we are exporting for.
@param user_evidence $ue The evidence of prior learning.
@return array
Transform a user evidence .