Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97570134
079.nametokenindex.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 5, 09:05
Size
358 B
Mime Type
text/x-php
Expires
Tue, Jan 7, 09:05 (2 d)
Engine
blob
Format
Raw Data
Handle
23428638
Attached To
rPH Phabricator
079.nametokenindex.php
View Options
<?php
echo
"Indexing username tokens for typeaheads...
\n
"
;
$table
=
new
PhabricatorUser
();
$table
->
openTransaction
();
$table
->
beginReadLocking
();
$users
=
$table
->
loadAll
();
echo
count
(
$users
).
' users to index'
;
foreach
(
$users
as
$user
)
{
$user
->
updateNameTokens
();
echo
'.'
;
}
$table
->
endReadLocking
();
$table
->
saveTransaction
();
echo
"
\n
Done.
\n
"
;
Event Timeline
Log In to Comment