Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 47... Línea 47...
47
     * Create an instance of this class.
47
     * Create an instance of this class.
48
     *
48
     *
49
     * @param int $id If set, this is the id of an existing record, used to load the data.
49
     * @param int $id If set, this is the id of an existing record, used to load the data.
50
     * @param stdClass $record If set will be passed to {@link self::from_record()}.
50
     * @param stdClass $record If set will be passed to {@link self::from_record()}.
51
     */
51
     */
52
    public function __construct($id = 0, stdClass $record = null) {
52
    public function __construct($id = 0, ?stdClass $record = null) {
53
        global $CFG;
53
        global $CFG;
Línea 54... Línea 54...
54
 
54
 
55
        if ($id > 0) {
55
        if ($id > 0) {
56
            $this->raw_set('id', $id);
56
            $this->raw_set('id', $id);
Línea 973... Línea 973...
973
     *
973
     *
974
     * @param string $select
974
     * @param string $select
975
     * @param array $params
975
     * @param array $params
976
     * @return bool
976
     * @return bool
977
     */
977
     */
978
    public static function record_exists_select($select, array $params = null) {
978
    public static function record_exists_select($select, ?array $params = null) {
979
        global $DB;
979
        global $DB;
980
        return $DB->record_exists_select(static::TABLE, $select, $params);
980
        return $DB->record_exists_select(static::TABLE, $select, $params);
981
    }
981
    }
Línea 982... Línea 982...
982
 
982