Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 60... Línea 60...
60
 
60
 
61
    /**
61
    /**
62
     * Convert a compatible stdClass into an instance of a comment.
62
     * Convert a compatible stdClass into an instance of a comment.
63
     * @param \stdClass $record
63
     * @param \stdClass $record
64
     */
64
     */
65
    public function __construct(\stdClass $record = null) {
65
    public function __construct(?\stdClass $record = null) {
66
        if ($record) {
66
        if ($record) {
67
            $intcols = array('width', 'x', 'y');
67
            $intcols = array('width', 'x', 'y');
68
            foreach ($this as $key => $value) {
68
            foreach ($this as $key => $value) {
69
                if (isset($record->$key)) {
69
                if (isset($record->$key)) {