MT::Import::Base - base class for importing "stuff" into Movable Type.
package MT::Import::Fubar; use base qw (MT::Import::Fubar);
Base class for importing "stuff" into Movable Type.
Options are passed to MT::Import::Base using a Config::Simple object or a valid Config::Simple config file. Options are grouped by "block".
verbose
Boolean.
Enable verbose logging for both this package and MT::Import::Mbox
force
Force an entry to be reindexed, including any trackback pings and attachments.
Default is false
root
String. required
The path to your Movable Type installation.
blog_id
Int. required
The numberic ID of the Movable Type weblog you are posting to.
blog_ownerid
The numberic ID of a Movable Type author with permissions to add new authors to the Movable Type weblog you are posting to.
author_pass
String.
The password to assign to any new authors you add to the Movable Type weblog you are posting to.
Default is "none".
author_perms
Int.
The permissions set to grant any new authors you add to the Movable Type weblog you are posting to.
Default is 514, or the ability to add new categories.
Returns true or false, indicating whether or not debug events would be logged.
Returns a Log::Dispatch object.
If $id is defined, stores the ID in the object's internal cache of entry's that have been imported.
Otherwise, the method returns a list or array reference of imported entries depending on whether or not the method was called in a wantarray context.
Rebuild all of the entries returned by the object's imported method. Indexes are rebuilt afterwards.
Returns true or false.
Rebuild all of the indexes for the blog defined mt.blog_id.
Rebuild an individual entry. If the entry has neighbouring entries, they will be added to the object's internal "imported" list.
If it does not already exist for the blog defined by mt.blog_id creates a new Movable Type category for $label.
$parent_id is the numeric ID for another MT category and is not required.
Returns a MT::Category object on success or undef if there was an error.
If it does not already exist for the blog defined by mt.blog_id creates a new Movable Type author for $name.
Leading and trailing space will be trimmed from $name.
Returns a MT::Author object on success or undef if there was an error.
If it does not already exist for the combined entry object and category object creates a new Movable Type placement entry for the pair.
Returns a MT::Placement object on success or undef if there was an error.
Returns a MT specific datetime string.
Wrapper method for storing an file outside of Movable Type using the blog engine's file manager.
Wrapper method for calling $obj->{cfg}->param("mt.blog_id")
Wrapper method pinging another entry.
The entry object is the post doing the pinging. $reply_basename is the post that is being pinged. $from is a label indicating where the ping is coming from.
The entry being pinged is fetched by where the entry's basename matches I$<basename> and it's blog_id matches mt.blog_id.
1.01
$Date: 2005/12/03 18:46:21 $
Aaron Straup Cope <ascope@cpan.org>
Please report all bugs via : http://rt.cpan.org
Copyright (c) 2005 Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.
To install MT::Import::Base, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MT::Import::Base
CPAN shell
perl -MCPAN -e shell install MT::Import::Base
For more information on module installation, please visit the detailed CPAN module installation guide.