Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90981374
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
Wed, Nov 6, 15:19
Size
385 B
Mime Type
text/x-php
Expires
Fri, Nov 8, 15:19 (2 d)
Engine
blob
Format
Raw Data
Handle
22139756
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