Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1789
storage.php
Active
Public
Actions
Authored by
ftdysa
on May 22 2015, 12:11 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F413432: storage.php
May 22 2015, 12:11 PM
2015-05-22 12:11:00 (UTC+0)
Subscribers
None
<?php
/* serialization */
class
MigrateFile
{
public
$name
;
public
$contents
;
public
$user
;
public
$date
;
public
$type
;
}
class
MigrateComment
{
public
$user
;
public
$description
;
public
$date
;
}
class
MigrateHistory
{
public
$user
;
public
$date
;
public
$field
;
public
$old
;
}
class
MigrateTask
{
public
$id
;
public
$author
;
public
$title
;
public
$description
;
public
$date
;
public
$assign
;
public
$state
;
public
$priority
;
public
$project
;
public
$tracker
;
public
$comments
=
array
();
public
$files
=
array
();
public
$ccs
=
array
();
public
$history
=
array
();
public
$extra_fields
=
array
();
}
class
MigrateUser
{
public
$name
;
public
$id
;
public
$realname
;
public
$email
;
public
$date
;
public
$timezone
;
public
$password
;
public
$unix_password
;
}
class
MigrateImportedUser
{
public
$name
;
public
$email
;
public
$isspam
=
false
;
public
$duplicateof
=
null
;
}
/* utilities */
function
startsWith
(
$haystack
,
$needle
)
{
}
function
endsWith
(
$haystack
,
$needle
)
{
return
$needle
===
""
||
substr
(
$haystack
,
-
strlen
(
$needle
))
===
$needle
;
}
function
lookup_user
(
$name
)
{
if
(
$name
==
null
)
return
null
;
$user
=
id
(
new
PhabricatorUser
())->
loadOneWhere
(
'username = %s'
,
$name
);
if
(!
$user
)
echo
"ERROR: lookup of user "
.
$name
.
" failed
\n
"
;
return
$user
;
}
function
lookup_project
(
$name
)
{
if
(
$name
==
null
)
return
null
;
$project
=
id
(
new
PhabricatorProject
())->
loadOneWhere
(
'name = %s'
,
$name
);
if
(!
$project
)
echo
"ERROR: lookup of project "
.
$name
.
" failed
\n
"
;
return
$project
;
}
Event Timeline
ftdysa
edited the content of this paste.
(Show Details)
May 22 2015, 12:11 PM
2015-05-22 12:11:00 (UTC+0)
ftdysa
changed the title of this paste from untitled to
storage.php
.
ftdysa
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment