PHP User::retrieveByPK Examples

PHP User::retrieveByPK - 2 examples found. These are the top rated real world PHP examples of User::retrieveByPK extracted from open source projects. You can rate examples to help us improve the quality of examples.
Example #1
0
function getUser()
{
    if (isset($_SESSION['authUser'])) {
        return User::retrieveByPK($_SESSION['authUser']);
    }
    return null;
}
Example #2
0
function PopulateEvent($event)
{
    return ["user_owner_id" => User::retrieveByPK($event->user_owner_id), "user_target_id" => User::retrieveByPK($event->user_target_id), "customer_id" => Customer::retrieveByPK($event->customer_id), "customer_car_id" => CustomerCar::retrieveByPK($event->customer_car_id)];
}