|
static | create ($duration=30, $user_id=null) |
|
static | isValid ($token, $user_id=null) |
|
static | is_valid ($token) |
|
static | tableScheme ($db_table) |
|
static | expireTableScheme () |
|
static | find ($id) |
|
static | exists ($id) |
|
static | countBySql ($sql=1, $params=[]) |
|
static | create ($data) |
|
static | build ($data, $is_new=true) |
|
static | buildExisting ($data) |
|
static | import ($data) |
|
static | findBySQL ($sql, $params=[]) |
|
static | findOneBySQL ($where, $params=[]) |
|
static | findThru ($foreign_key_value, $options) |
|
static | findEachBySQL ($callable, $sql, $params=[]) |
|
static | findMany ($pks=[], $order='', $order_params=[]) |
|
static | findEachMany ($callable, $pks=[], $order='', $order_params=[]) |
|
static | findAndMapBySQL ($callable, $where, $params=[]) |
|
static | findAndMapMany ($callable, $pks=[], $order='', $order_params=[]) |
|
static | deleteBySQL ($where, $params=[]) |
|
static | toObject ($id_or_object) |
|
static | __callStatic ($name, $arguments) |
|
|
const | ID_SEPARATOR = '_' |
|
static | $schemes = null |
|
| _getId ($field) |
|
| _setId ($field, $value) |
|
| _getAdditionalValueFromRelation ($field) |
|
| _setAdditionalValueFromRelation ($field, $value) |
|
| _getAdditionalValue ($field) |
|
| _setAdditionalValue ($field, $value) |
|
| parseRelationOptions ($type, $name, $options) |
|
| storeRelations ($only_these=null) |
|
| deleteRelations () |
|
| initializeContent () |
|
| applyCallbacks ($type) |
|
| registerCallback ($types, $cb) |
|
| unregisterCallback ($types, $cb) |
|
| cbAutoIncrementColumn ($type) |
|
| cbAutoKeyCreation () |
|
| cbNotificationMapper ($cb_type) |
|
| cbAfterInitialize ($cb_type) |
|
| setSerializedValue ($field, $value) |
|
| setI18nValue ($field, $value) |
|
| cbI18N ($type) |
|
| $content = [] |
|
| $content_db = [] |
|
| $is_new = true |
|
| $is_deleted = false |
|
| $db_table = '' |
|
| $db_fields = null |
|
| $pk = null |
|
| $default_values = [] |
|
| $serialized_fields = [] |
|
| $alias_fields = [] |
|
| $i18n_fields = [] |
|
| $additional_fields = [] |
|
| $relations = [] |
|
| $has_many = [] |
|
| $has_one = [] |
|
| $belongs_to = [] |
|
| $has_and_belongs_to_many = [] |
|
| $registered_callbacks = [] |
|
| $known_slots = [] |
|
| $notification_map = [] |
|
| $additional_data = [] |
|
| $getter_setter_map = [] |
|
static | $config = [] |
|
static | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] |
|
◆ __construct()
__construct |
( |
|
$user_id = null , |
|
|
|
$duration = 30 |
|
) |
| |
Compatbility method for legacy plugins.
- Parameters
-
string | $user_id | owner of this token |
string | $duration | validity duration |
- Todo:
- Remove for Stud.IP 5.0
- Deprecated:
◆ configure()
static configure |
( |
|
$config = [] | ) |
|
|
staticprotected |
◆ create()
static create |
( |
|
$duration = 30 , |
|
|
|
$user_id = null |
|
) |
| |
|
static |
◆ get_token()
Compatbility method for legacy plugins.
- Returns
- string token value
- Todo:
- Remove for Stud.IP 5.0
- Deprecated:
◆ is_valid()
static is_valid |
( |
|
$token | ) |
|
|
static |
Compatbility method for legacy plugins.
- Parameters
-
string | $token | Token to check |
- Returns
- mixed used_id if valid, null otherwise
- Todo:
- Remove for Stud.IP 5.0
- Deprecated:
◆ isExpired()
◆ isValid()
static isValid |
( |
|
$token, |
|
|
|
$user_id = null |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: