public function get_imsnames($courseattr) {

        $values = $this->imsnames;
        if ($courseattr == 'summary') {
            $values = array_merge(array('ignore' => get_string('emptyattribute', 'enrol_imsenterprise')), $values);
        }
        return $values;
    }
public function get_imsnames($courseattr) {

        $values = $this->imsnames;
        if ($courseattr == 'summary') {
            $values = array_merge(array('ignore' => get_string('emptyattribute', 'enrol_imsenterprise')), $values);
        }
        return $values;
    }
public function get_imsnames ( $ courseattr ) { $ values = $ this -> imsnames ; if ( $ courseattr == 'summary' ) { $ values = array_merge ( array ( 'ignore' => get_string ( 'emptyattribute' , 'enrol_imsenterprise' ) ) , $ values ) ; } return $ values ; }
Returns the assignable values for the course attribute
@param string $courseattr The course attribute (shortname, fullname...)
@return array Array of assignable values
Returns the assignable values for the course attribute