Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93448657
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
Thu, Nov 28, 20:32
Size
385 B
Mime Type
text/x-php
Expires
Sat, Nov 30, 20:32 (2 d)
Engine
blob
Format
Raw Data
Handle
22640730
Attached To
rPH Phabricator
079.nametokenindex.php
View Options
<?php
echo
pht
(
'Indexing username tokens for typeaheads...'
).
"
\n
"
;
$table
=
new
PhabricatorUser
();
$table
->
openTransaction
();
$table
->
beginReadLocking
();
$users
=
$table
->
loadAll
();
echo
pht
(
'%d users to index'
,
count
(
$users
));
foreach
(
$users
as
$user
)
{
$user
->
updateNameTokens
();
echo
'.'
;
}
$table
->
endReadLocking
();
$table
->
saveTransaction
();
echo
"
\n
"
.
pht
(
'Done.'
).
"
\n
"
;
Event Timeline
Log In to Comment