Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
aa13c9aa
Commit
aa13c9aa
authored
8 years ago
by
Anika Henke
Browse files
Options
Downloads
Patches
Plain Diff
removed deprecated changelog functions getRevisionInfo() and getRevisions() outside of class
parent
60c4278d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc/changelog.php
+0
-66
0 additions, 66 deletions
inc/changelog.php
with
0 additions
and
66 deletions
inc/changelog.php
+
0
−
66
View file @
aa13c9aa
...
...
@@ -1057,69 +1057,3 @@ class MediaChangelog extends ChangeLog {
return
mediaFN
(
$this
->
id
);
}
}
/**
* Get the changelog information for a specific page id
* and revision (timestamp). Adjacent changelog lines
* are optimistically parsed and cached to speed up
* consecutive calls to getRevisionInfo. For large
* changelog files, only the chunk containing the
* requested changelog line is read.
*
* @deprecated 2013-11-20
*
* @author Ben Coburn <btcoburn@silicodon.net>
* @author Kate Arzamastseva <pshns@ukr.net>
*
* @param string $id
* @param int $rev
* @param int $chunk_size
* @param bool $media
* @return array|bool
*/
function
getRevisionInfo
(
$id
,
$rev
,
$chunk_size
=
8192
,
$media
=
false
)
{
dbg_deprecated
(
'class PageChangeLog or class MediaChangelog'
);
if
(
$media
)
{
$changelog
=
new
MediaChangeLog
(
$id
,
$chunk_size
);
}
else
{
$changelog
=
new
PageChangeLog
(
$id
,
$chunk_size
);
}
return
$changelog
->
getRevisionInfo
(
$rev
);
}
/**
* Return a list of page revisions numbers
* Does not guarantee that the revision exists in the attic,
* only that a line with the date exists in the changelog.
* By default the current revision is skipped.
*
* The current revision is automatically skipped when the page exists.
* See $INFO['meta']['last_change'] for the current revision.
*
* For efficiency, the log lines are parsed and cached for later
* calls to getRevisionInfo. Large changelog files are read
* backwards in chunks until the requested number of changelog
* lines are recieved.
*
* @deprecated 2013-11-20
*
* @author Ben Coburn <btcoburn@silicodon.net>
* @author Kate Arzamastseva <pshns@ukr.net>
*
* @param string $id the page of interest
* @param int $first skip the first n changelog lines
* @param int $num number of revisions to return
* @param int $chunk_size
* @param bool $media
* @return array
*/
function
getRevisions
(
$id
,
$first
,
$num
,
$chunk_size
=
8192
,
$media
=
false
)
{
dbg_deprecated
(
'class PageChangeLog or class MediaChangelog'
);
if
(
$media
)
{
$changelog
=
new
MediaChangeLog
(
$id
,
$chunk_size
);
}
else
{
$changelog
=
new
PageChangeLog
(
$id
,
$chunk_size
);
}
return
$changelog
->
getRevisions
(
$first
,
$num
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment