Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 68... Línea 68...
68
 
68
 
69
    /**
69
    /**
70
     * Convert a compatible stdClass into an instance of this class.
70
     * Convert a compatible stdClass into an instance of this class.
71
     * @param \stdClass $record
71
     * @param \stdClass $record
72
     */
72
     */
73
    public function __construct(\stdClass $record = null) {
73
    public function __construct(?\stdClass $record = null) {
74
        if ($record) {
74
        if ($record) {
75
            $intcols = array('endx', 'endy', 'x', 'y');
75
            $intcols = array('endx', 'endy', 'x', 'y');
76
            foreach ($this as $key => $value) {
76
            foreach ($this as $key => $value) {
77
                if (isset($record->$key)) {
77
                if (isset($record->$key)) {