Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 187... Línea 187...
187
     */
187
     */
188
    public function getUserVerified() {
188
    public function getUserVerified() {
189
        return $this->_flags->userVerified;
189
        return $this->_flags->userVerified;
190
    }
190
    }
Línea -... Línea 191...
-
 
191
 
-
 
192
    /**
-
 
193
     * returns true if the backup is eligible
-
 
194
     * @return boolean
-
 
195
     */
-
 
196
    public function getIsBackupEligible()
-
 
197
    {
-
 
198
        return $this->_flags->isBackupEligible;
-
 
199
    }
-
 
200
 
-
 
201
    /**
-
 
202
     * returns true if the current credential is backed up
-
 
203
     * @return boolean
-
 
204
     */
-
 
205
    public function getIsBackup()
-
 
206
    {
-
 
207
        return $this->_flags->isBackup;
-
 
208
    }
191
 
209
 
192
    // -----------------------------------------------
210
    // -----------------------------------------------
193
    // PRIVATE
211
    // PRIVATE
Línea 194... Línea 212...
194
    // -----------------------------------------------
212
    // -----------------------------------------------
Línea 257... Línea 275...
257
        $flags->bit_7 = !!($binFlag & 128);
275
        $flags->bit_7 = !!($binFlag & 128);
Línea 258... Línea 276...
258
 
276
 
259
        // named flags
277
        // named flags
260
        $flags->userPresent = $flags->bit_0;
278
        $flags->userPresent = $flags->bit_0;
-
 
279
        $flags->userVerified = $flags->bit_2;
-
 
280
        $flags->isBackupEligible = $flags->bit_3;
261
        $flags->userVerified = $flags->bit_2;
281
        $flags->isBackup = $flags->bit_4;
262
        $flags->attestedDataIncluded = $flags->bit_6;
282
        $flags->attestedDataIncluded = $flags->bit_6;
263
        $flags->extensionDataIncluded = $flags->bit_7;
283
        $flags->extensionDataIncluded = $flags->bit_7;
264
        return $flags;
284
        return $flags;