contributions/models.tokens/doxygen.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * @defgroup Tokens 00004 * @ingroup Models 00005 * 00006 * Create tokens with a length of 40 characters, that are not guessable and guaranteed 00007 * to be unique for at least 10 days. 00008 * 00009 * Usage is simple: 00010 * 00011 * @code 00012 * Load::models('tokens'); 00013 * $token = Tokens::create_token(); 00014 * @endcode 00015 * 00016 * You also can pass your own seed: 00017 * 00018 * @code 00019 * Load::models('tokens'); 00020 * $token = Tokens::create_token('My Seed'); 00021 * @endcode 00022 * 00023 */