BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
SpecialDuplicator Class Reference
Inheritance diagram for SpecialDuplicator:
Collaboration diagram for SpecialDuplicator:

Public Member Functions

 __construct ()
 
 doesWrites ()
 
 execute ($title)
 
- Public Member Functions inherited from SpecialPage
 __construct ($name= '', $restriction= '', $listed=true, $function=false, $file= '', $includable=false)
 
 getName ()
 
 getRestriction ()
 
 isListed ()
 
 setListed ($listed)
 
 listed ($x=null)
 
 isIncludable ()
 
 maxIncludeCacheTime ()
 
 including ($x=null)
 
 getLocalName ()
 
 isExpensive ()
 
 isCached ()
 
 isRestricted ()
 
 userCanExecute (User $user)
 
 displayRestrictionError ()
 
 checkPermissions ()
 
 checkReadOnly ()
 
 requireLogin ($reasonMsg= 'exception-nologin-text', $titleMsg= 'exception-nologin')
 
 prefixSearchSubpages ($search, $limit, $offset)
 
 setHeaders ()
 
 run ($subPage)
 
 execute ($subPage)
 
 outputHeader ($summaryMessageKey= '')
 
 getDescription ()
 
 getTitle ($subpage=false)
 
 getPageTitle ($subpage=false)
 
 setContext ($context)
 
 getContext ()
 
 getRequest ()
 
 getOutput ()
 
 getUser ()
 
 getSkin ()
 
 getLanguage ()
 
 getConfig ()
 
 getFullTitle ()
 
 msg ($key)
 
 addHelpLink ($to, $overrideBaseUrl=false)
 
 getFinalGroupName ()
 
 doesWrites ()
 
 getLinkRenderer ()
 
 setLinkRenderer (LinkRenderer $linkRenderer)
 

Protected Member Functions

 setOptions (&$request, $title)
 
 dealWithTalk ()
 
 buildForm ()
 
 duplicateSubpages ($source, $dest, $includeHistory)
 
 duplicate ($source, $dest, $includeHistory)
 
- Protected Member Functions inherited from SpecialPage
 getCacheTTL ()
 
 getLoginSecurityLevel ()
 
 checkLoginSecurityLevel ($level=null)
 
 getSubpagesForPrefixSearch ()
 
 prefixSearchString ($search, $limit, $offset)
 
 beforeExecute ($subPage)
 
 afterExecute ($subPage)
 
 getRobotPolicy ()
 
 addFeedLinks ($params)
 
 getGroupName ()
 
 useTransactionalTimeLimit ()
 

Protected Attributes

 $source = ''
 
 $sourceTitle = null
 
 $dest = ''
 
 $destTitle = null
 
 $talk = true
 
 $subpages = true
 
 $history = true
 
- Protected Attributes inherited from SpecialPage
 $mName
 
 $mRestriction
 
 $mIncluding
 
 $mIncludable
 
 $mContext
 

Additional Inherited Members

- Static Public Member Functions inherited from SpecialPage
static getTitleFor ($name, $subpage=false, $fragment= '')
 
static getTitleValueFor ($name, $subpage=false, $fragment= '')
 
static getSafeTitleFor ($name, $subpage=false)
 
- Static Protected Member Functions inherited from SpecialPage
static prefixSearchArray ($search, $limit, array $subpages, $offset)
 

Constructor & Destructor Documentation

SpecialDuplicator::__construct ( )

Constructor

Member Function Documentation

SpecialDuplicator::buildForm ( )
protected

Build a form for entering the source and destination titles

Returns
string
SpecialDuplicator::dealWithTalk ( )
protected

Should we allow the user to see the talk page option? Don't bother if there is no talk page, or we're duplicating one

Returns
bool
SpecialDuplicator::duplicate (   $source,
  $dest,
  $includeHistory 
)
protected

Duplicate one page to another, including full histories Does some basic error-catching, but not as much as the code above [should]

Parameters
$sourceTitle to duplicate
$destTitle to save to
$includeHistoryWhether to copy full article history
Returns
bool
SpecialDuplicator::duplicateSubpages (   $source,
  $dest,
  $includeHistory 
)
protected

Duplicate subpages of $source to $dest

Parameters
$sourceTitle to duplicate subpages for
$destTitle to save subpages to
Returns
bool
SpecialDuplicator::execute (   $title)

Main execution function

Parameters
$titleTitle passed to the page
SpecialDuplicator::setOptions ( $request,
  $title 
)
protected

Determine various options and attempt initialisation of objects

Parameters
$requestWebRequest we're running off
$titleTitle passed to the page

Member Data Documentation

SpecialDuplicator::$dest = ''
protected

Title of the page we are saving to

SpecialDuplicator::$source = ''
protected

Title of the page we are duplicating

SpecialDuplicator::$talk = true
protected

Whether or not we're duplicating the talk page, subpages, and the history


The documentation for this class was generated from the following file: