MediaWiki  1.23.1
importTextFile.php File Reference

Create or edit pages using the contents of a text file. More...

Go to the source code of this file.

Functions

 showHelp ()
 
 titleFromFilename ( $filename)
 

Variables

 $options = array( 'help', 'nooverwrite', 'norc' )
 
 $optionsWithArgs = array( 'title', 'user', 'comment' )
 
if(count( $args)< 1||isset( $options['help'])) else
 

Detailed Description

Create or edit pages using the contents of a text file.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Author
Rob Church robch.nosp@m.ur@g.nosp@m.mail..nosp@m.com

Definition in file importTextFile.php.

Function Documentation

◆ showHelp()

showHelp ( )

Definition at line 88 of file importTextFile.php.

References as, content, file, is(), options(), page, and php.

◆ titleFromFilename()

titleFromFilename (   $filename)

Definition at line 82 of file importTextFile.php.

Variable Documentation

◆ $options

$options = array( 'help', 'nooverwrite', 'norc' )

Definition at line 25 of file importTextFile.php.

◆ $optionsWithArgs

$optionsWithArgs = array( 'title', 'user', 'comment' )

Definition at line 26 of file importTextFile.php.

◆ else

if (is_file($filename)) else
Initial value:
{
$filename = $args[0]

Definition at line 32 of file importTextFile.php.

$args
if( $line===false) $args
Definition: cdb.php:62