Changeset 2746

Show
Ignore:
Timestamp:
07/10/08 01:56:21 (2 months ago)
Author:
bchoate
Message:

Updated POD for MT::Page, MT::TaskMgr.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-41/lib/MT/Page.pm

    r1616 r2746  
    6666 
    67671; 
     68__END__ 
     69 
     70=head1 NAME 
     71 
     72MT::Page - Movable Type page record 
     73 
     74=head1 SYNOPSIS 
     75 
     76    use MT::Page; 
     77    my $page = MT::Page->new; 
     78    $page->blog_id($blog->id); 
     79    $page->author_id($author->id); 
     80    $page->title('Page title'); 
     81    $page->text('Some text'); 
     82    $page->save 
     83        or die $page->errstr; 
     84 
     85=head1 DESCRIPTION 
     86 
     87The C<MT::Page> class is a subclass of L<MT::Entry>. Pages are very similar 
     88to entries, except that they are not published in a reverse-chronological 
     89listing, typically. Pages are published into folders, represented by 
     90L<MT::Folder> instead of categories. 
     91 
     92=head2 MT::Page->class_label 
     93 
     94Returns the localized descriptive name for this class. 
     95 
     96=head2 MT::Page->class_label_plural 
     97 
     98Returns the localized, plural descriptive name for this class. 
     99 
     100=head2 MT::Page->container_label 
     101 
     102Returns the localized phrase identifying the "container" type for 
     103pages (ie: "Folder"). 
     104 
     105=head2 MT::Page->container_type 
     106 
     107Returns the string "folder", which is the MT type identifier for 
     108the L<MT::Folder> class. 
     109 
     110=head2 $page->folder 
     111 
     112Returns the L<MT::Folder> the page is assigned to. 
     113 
     114=head2 $page->archive_file 
     115 
     116Returns the filename for the published page. 
     117 
     118=head2 $page->archive_url 
     119 
     120Returns the permalink for the page, based on the site_url of the 
     121blog, and folder assignment for the page. 
     122 
     123=head2 $page->permalink 
     124 
     125Returns the permalink for the page. 
     126 
     127=head2 $page->all_permalinks 
     128 
     129Returns the permalink for the page. 
     130 
     131=cut 
  • branches/release-41/lib/MT/TaskMgr.pm

    r1912 r2746  
    200200=head1 SYNOPSIS 
    201201 
    202     MT::TaskMgr->add_task($task); 
    203  
    204202    MT::TaskMgr->run_tasks; 
    205203 
     
    254252=head1 METHODS 
    255253 
    256 =head2 MT::TaskMgr->add_task($task_obj) 
    257  
    258 =head2 MT::TaskMgr->add_task(\%task) 
    259  
    260 Registers a new I<MT::Task> object. If this method is called with a hashref, 
    261 a I<MT::Task> will be constructed using that data. 
     254=head2 MT::TaskMgr->new 
     255 
     256Constructs the MT::TaskMgr singleton instance. 
     257 
     258=head2 MT::TaskMgr->init 
     259 
     260Initializes the MT::TaskMgr instance, pulling tasks are defined in 
     261the MT registry. It also runs a callback 'tasks' after gathering 
     262this list. 
    262263 
    263264=head2 MT::TaskMgr->run_tasks 
     
    281282instance using the I<instance> method. 
    282283 
     284=head2 tasks(\%tasks) 
     285 
     286Upon initialization of the TaskMgr instance, the list of MT tasks are 
     287gathered from the MT registry. This hashref of tasks is then passed to 
     288the 'tasks' callback, giving plugins a chance to manipulate the task 
     289metadata before being used. 
     290 
    283291=head1 AUTHOR & COPYRIGHTS 
    284292