$id
$id : integer
User class
OOP based object to control all connected with User
__construct(integer|string $query, array $o = array())
Router
Get or register User
| integer|string | $query | Query
|
| array | $o | Options
|
ClassesToIds(array<mixed,\User> $q) : array<mixed,integer>
Classes to IDs
Converts array of classes to array of IDs
| array<mixed,\User> | $q | Users array |
Result
IdsToClasses(array<mixed,integer> $q, boolean $no_false = true, array $o = array()) : array<mixed,\User>
IDs to Classes
Converts array of IDs to array of classes
| array<mixed,integer> | $q | IDs array |
| boolean | $no_false | If |
| array | $o | Options for User object |
Result
ClassesToData(array<mixed,\User> $q, boolean $no_false = true) : \(array|array<mixed,\bool)>|void
Classes to Data
Extracts data from User classes
| array<mixed,\User> | $q | Query |
| boolean | $no_false | If |
Result
InitUser(integer $id, array $o = array()) : boolean
Init user
Init user by ID
| integer | $id | ID |
| array | $o | Options
|
If true - success
SignUp(array $d) : boolean
Sign Up
This function registers REAL user and calls Init method
| array | $d | Data
|
If true - success