phpDocumentor ItemAdd
UserInterface
[ class tree: ItemAdd ] [ index: ItemAdd ] [ all elements ]

Class: ItemAddFromServer

Source Location: /modules/itemadd/ItemAddFromServer.inc

Class ItemAddFromServer

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From ItemAddPlugin

ItemAddPlugin::getTitle()
Return a localized title for this plugin, suitable for display to the user
ItemAddPlugin::handleRequest()
Let the plugin handle the incoming request
ItemAddPlugin::isAppropriate()
Is this plugin appropriate at this time? Default is true.
ItemAddPlugin::loadTemplate()
Load the template with data from this plugin

[ Top ]
Method Summary
array   addDirectory()  
GalleryStatus   addItem()   Add the given file as data-item to the specified album.
void   fetchLocalServerDirList()  
void   getTitle()  
void   handleRequest()  
void   isAppropriate()  
void   loadTemplate()  
GalleryStatus   processDirectory()   Process a directory by recursively adding files as data-items and sub-directories as albums.
int   _getFileCountForDirectory()   Get the number of files / dirs within a sub-tree of the filesystem.
void   _sortFiles()   Sort directory listing.. directory, known types, unknowns.

[ Top ]
Methods
addDirectory  [line 333]

  array addDirectory( $parentId, $path, $useSymlink, $textFields, &$status, &$error  )

Parameters:
   $parentId: 
   $path: 
   $useSymlink: 
   $textFields: 
   &$status: 
   &$error: 

API Tags:
Return:  GalleryStatus, mixed id of new album or false


[ Top ]
addItem  [line 297]

  GalleryStatus addItem( int $parentId, string $file, bool $useSymlink, array $textFields, &$status, &$error, array $status, array $error  )

Add the given file as data-item to the specified album.

Parameters:
int   $parentId:  The id of the parent album
string   $file:  The filesystem path to the file to be added as data-item
bool   $useSymlink:  Whether to use symlinks when adding items.
array   $textFields:  Flags about the title, summary and description field.
array   $status:  See ItemAddPlugin::handleRequest for the specified structure.
array   $error:  An array of template error codes.
   &$status: 
   &$error: 


[ Top ]
fetchLocalServerDirList  [line 540]

  void fetchLocalServerDirList( )



[ Top ]
getTitle  [line 766]

  void getTitle( )


API Tags:
See:  ItemAddPlugin::getTitle


Redefinition of:
ItemAddPlugin::getTitle()
Return a localized title for this plugin, suitable for display to the user

[ Top ]
handleRequest  [line 56]

  void handleRequest( $form, &$item, &$addController  )

Parameters:
   $form: 
   &$item: 
   &$addController: 

API Tags:
See:  ItemAddPlugin::handleRequest


Redefinition of:
ItemAddPlugin::handleRequest()
Let the plugin handle the incoming request

[ Top ]
isAppropriate  [line 38]

  void isAppropriate( )


API Tags:
See:  ItemAddPlugin::isAppropriate


Redefinition of:
ItemAddPlugin::isAppropriate()
Is this plugin appropriate at this time? Default is true.

[ Top ]
loadTemplate  [line 560]

  void loadTemplate( &$template, &$form, $item  )

Parameters:
   &$template: 
   &$form: 
   $item: 

API Tags:
See:  ItemAdd:loadTemplate

Information Tags:
Todo:  Don't let the user select folders if the user is missing the core.addAlbum permission.

Redefinition of:
ItemAddPlugin::loadTemplate()
Load the template with data from this plugin

[ Top ]
processDirectory  [line 385]

  GalleryStatus processDirectory( int $albumId, string $path, bool $useSymlink, array $textFields, array $form, &$status, &$error, array $status, array $error  )

Process a directory by recursively adding files as data-items and sub-directories as albums.

Parameters:
int   $albumId:  The id of the album to which all new items should be added to.
string   $path:  The filesystem path to the directory to be processed.
bool   $useSymlink:  Whether to use symlinks when adding items.
array   $textFields:  Flags about the title, summary and description field.
array   $form:  The request form from the item add controller.
array   $status:  See ItemAddPlugin::handleRequest for the specified structure.
array   $error:  An array of template error codes.
   &$status: 
   &$error: 


[ Top ]
_getFileCountForDirectory  [line 500]

  int _getFileCountForDirectory( string $dirName, &$progressCount, int $progressCount  )

Get the number of files / dirs within a sub-tree of the filesystem.

Parameters:
string   $dirName: 
int   $progressCount: 
   &$progressCount: 

API Tags:
Return:  the number of files with this sub-tree of the filesystem


[ Top ]
_sortFiles  [line 779]

  void _sortFiles( $a, $b  )

Sort directory listing.. directory, known types, unknowns.

Parameters:
   $a: 
   $b: 

API Tags:
Access:  private


[ Top ]

Documentation generated on Sat, 21 Nov 2009 04:57:56 -0800 by phpDocumentor 1.3.0RC6