Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

parse::mediawikidump::page(3pm) [debian man page]

Parse::MediaWikiDump::page(3pm) 			User Contributed Perl Documentation			   Parse::MediaWikiDump::page(3pm)

NAME
Parse::MediaWikiDump::page - Object representing a specific revision of a MediaWiki page ABOUT
This object is returned from the "next" method of Parse::MediaWikiDump::Pages and Parse::MediaWikiDump::Revisions. You most likely will not be creating instances of this particular object yourself instead you use this object to access the information about a page in a MediaWiki instance. SYNOPSIS
$pages = Parse::MediaWikiDump::Pages->new('pages-articles.xml'); #get all the records from the dump files, one record at a time while(defined($page = $pages->next)) { print "title '", $page->title, "' id ", $page->id, " "; } STATUS
This software is being RETIRED - MediaWiki::DumpFile is the official successor to Parse::MediaWikiDump and includes a compatibility library called MediaWiki::DumpFile::Compat that is 100% API compatible and is a near perfect standin for this module. It is faster in all instances where it counts and is actively maintained. Any undocumented deviation of MediaWiki::DumpFile::Compat from Parse::MediaWikiDump is considered a bug and will be fixed. METHODS
$page->redirect Returns an empty string (such as '') for the main namespace or a string containing the name of the namespace. $page->categories Returns a reference to an array that contains a list of categories or undef if there are no categories. This method does not understand templates and may not return all the categories the article actually belongs in. $page->title Returns a string of the full article title including the namespace if present $page->namespace Returns a string of the namespace of the article or an empty string if the article is in the default namespace $page->id Returns a number that is the id for the page in the MediaWiki instance $page->revision_id Returns a number that is the revision id for the page in the MediaWiki instance $page->timestamp Returns a string in the following format: 2005-07-09T18:41:10Z $page->username Returns a string of the username responsible for this specific revision of the article or undef if the editor was anonymous $page->userid Returns a number that is the id for the user returned by $page->username or undef if the editor was anonymous $page->userip Returns a string of the IP of the editor if the edit was anonymous or undef otherwise $page->minor Returns 1 if this article was flaged as a minor edit otherwise returns 0 $page->text Returns a reference to a string that contains the article title text perl v5.10.1 2010-12-05 Parse::MediaWikiDump::page(3pm)

Check Out this Related Man Page

Padre::Current(3pm)					User Contributed Perl Documentation				       Padre::Current(3pm)

NAME
Padre::Current - A context object, for centralising the concept of what is "current" DESCRIPTION
The "Padre::Current" detectes and returns whatever is current. Use it whenever you need to do something with anything which might get a focus or be selectable otherwise All methods could be called as functions, methods or class methods. CLASS METHODS
"config" my $config = Padre::Current->config; Returns a Padre::Config object for the current document. Padre has three types of configuration: User-specific, host-specific and project-specific, this method returnsa config object which includes the current values - ne need to for you to care about which config is active and which has priority. "document" my $document = Padre::Current->document; Returns a Padre::Document object for the current document. "editor" my $editor = Padre::Current->editor; Returns a Padre::Editor object for the current editor (containing the current document). "filename" my $filename = Padre::Current->filename; Returns the filename of the current document. "ide" my $ide = Padre::Current->ide; Returns a Padre::Wx object of the current ide. "main" my $main = Padre::Current->main; Returns a Padre::Wx::Main object of the current ide. "notebook" my $main = Padre::Current->notebook; Returns a Padre::Wx::Notebook object of the current notebook. "project" my $main = Padre::Current->project; Returns a Padre::Project object of the current project. "text" my $main = Padre::Current->text; Returns the current selection (selected text in the current document). "title" my $main = Padre::Current->title; Returns the title of the current editor window. NAME
Padre::Current - convenient access to current objects within Padre SYNOPSIS
my $main = Padre::Current->main; # ... DESCRIPTION
Padre uses lots of objects from different classes. And one needs to have access to the current object of this sort or this other to do whatever is need at the time. Instead of poking directly with the various classes to find the object you need, "Padre::Current" provides a bunch of handy methods to retrieve whatever current object you need. METHODS
new # Vanilla constructor Padre::Current->new; # Seed the object with some context Padre::Current->new( document => $document ); The "new" constructor creates a new context object, it optionally takes one or more named parameters which should be any context the caller is aware of before he calls the constructor. Providing this seed context allows the context object to derive parts of the current context from other parts, without the need to fall back to the last-resort "Padre->ide" singleton-fetching method. Many objects in Padre that are considered to be part of them context will have a "current" method which automatically creates the context object with it as a seed. Returns a new Padre::Current object. "ide" Return the Padre singleton for the IDE instance. "config" Returns the current Padre::Config configuration object for the IDE. "main" Returns the Padre::Wx::Main object for the main window. "notebook" Returns the Padre::Wx::Notebook object for the main window. "document" Returns the active Padre::Document document object. "editor" Returns the Padre::Editor editor object for the active document. "filename" Returns the file name of the active document, if it has one. "title" Return the title of current editor window. "project" Return the "Padre::Project" project object for the active document. "text" Returns the selected text, or a null string if nothing is selected. COPYRIGHT &; LICENSE Copyright 2008-2012 The Padre development team as listed in Padre.pm. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.14.2 2012-06-27 Padre::Current(3pm)
Man Page