19 public $userFields = array(
26 public $profileFields = array(
33 public $searchResultPageUrl =
'';
35 public function init()
39 foreach ($this->userFields as $f) {
41 throw new Exception(
"Attribute '$f' not available in 'userFields'");
45 foreach ($this->profileFields as $f) {
47 throw new Exception(
"Attribute '$f' not available in 'profileFields'");
58 if (isset($_GET[
'UserSearch'])) {
59 $user->attributes = $_GET[
'UserSearch'];
62 if (isset($_GET[
'Profile'])) {
63 $profile->attributes = $_GET[
'Profile'];
66 $this->render(
'FriendsSearchWidget', array(
'user' => $user,
'profile' => $profile));