Skip to content
Raphael Jackstadt edited this page Jun 27, 2016 · 1 revision

with Aauth v2 you can define user specified variables for all users.

set_user_var( $key, $value, $user_id = false )

Set User Variable as key value if variable not set before, it will ve set if set, overwrites the value

$this->aauth->set_user_var("phone","+90 532 343 22 34");
$this->aauth->set_user_var("address","Kardesler Building, Cakmaklar Street No:34 Sutluce / Istanbul");

unset_user_var( $key, $user_id = false )

Unset User Variable as key value

$this->aauth->unset_user_var("phone");

get_user_var( $key, $user_id = false)

Get User Variable by key Return string of variable value or false when not found.

$this->aauth->get_user_var("phone");