my_groups new Pixpulse_Client_Requ est group search my_groups- categor

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
$my_groups = new Pixpulse_Client_Request('group', 'search');
$my_groups->category = 'groups';
$my_groups->access = 'founder,member';
$my_groups->access_cond = 'IN';
if (isset($_REQUEST['find']) && !empty($_REQUEST['find'])) {
$my_groups->name = $_REQUEST['find'];
$my_groups->name_like = $_REQUEST['find'].'%';
};
if ($_REQUEST['action'] == 'edit') {
$my_groups->founder_user_id = $_SESSION['Auth_User']['user_id'];
}else {
$my_groups->user_id = $_SESSION['Auth_User']['user_id'];
}