46 $field = ConnectionManager::escape($_GET[
"field"]);
49 Fakoli::end(
"User Search Handler: no document library id");
65 if(is_callable(array(
$mgr, getActiveClause)))
71 $members = Query::create(
$class_name,
"WHERE $clause (first_name like :s or last_name like :s or email like :s)
72 and user_id not in (select user_id from {$libraryMember->table} where document_library_id=:l) LIMIT 100")
81 <div
style=
""><a href=
"/action/fileshare/add_member?document_library_id=<?php echo $document_library_id ?>&user_id=<?php echo $member->user_id ?>"
82 onclick=
"new LibraryManager().addMemberFromProgressiveSearch(<?php echo $document_library_id ?>, <?php echo $member->user_id ?>); return false;"><b><?echo
"{$member->first_name} {$member->last_name}" ?></b><br/>
83 <span
style=
'font-size: 8pt'><?echo
"{$member->email}" ?></span></a>
static using()
Import the datamodels, views and manifest for the specified component(s).
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
Provides the interface to the user model for the application.
if(is_callable(array($mgr, getActiveClause))) $members