liberty
[ class tree: liberty ] [ index: liberty ] [ all elements ]

Procedural File: mime.pdfx.php

Source Location: /liberty/plugins/mime.pdfx.php



Page Details:



Tags:

author:  xing <xing@synapse.plus.com>
version:  $Header: /cvsroot/bitweaver/_bit_liberty/plugins/mime.pdf.php,v 1.2 2009/04/29 14:29:24 wjames5 Exp $
version:  $Revision: 1.2 $ created Thursday May 08, 2008
filesource:  Source Code for this file







PLUGIN_MIME_GUID_PDFX [line 22]

PLUGIN_MIME_GUID_PDFX = 'mimepdfx'
This is the name of the plugin - max char length is 16

As a naming convention, the liberty mime handler definition should start with: PLUGIN_MIME_GUID_



[ Top ]




mime_pdfx_help [line 192]

string mime_pdfx_help( )

mime_pdf_help



Tags:

access:  public


[ Top ]



mime_pdfx_load [line 118]

TRUE mime_pdfx_load( &$pFileHash, &$pPrefs, [array $pParams = NULL], array $pFileHash, array $pPrefs)

Load file data from the database



Tags:

return:  on success, FALSE on failure - $pStoreRow[errors] will contain reason
access:  public


Parameters

array   $pFileHash   Contains all file information
array   $pPrefs   Attachment preferences taken liberty_attachment_prefs
array   $pParams   Parameters for loading the plugin - e.g.: might contain values such as thumbnail size from the view page
   &$pFileHash  
   &$pPrefs  
[ Top ]



mime_pdfx_store [line 62]

TRUE mime_pdfx_store( &$pStoreRow, array $pStoreRow)

Store the data in the database



Tags:

return:  on success, FALSE on failure - $pStoreRow[errors] will contain reason
access:  public


Parameters

array   $pStoreRow   File data needed to store details in the database - sanitised and generated in the verify function
   &$pStoreRow  
[ Top ]



mime_pdfx_thumbnail [line 141]

TRUE mime_pdfx_thumbnail( array $pFileHash, array $pFileHash[upload])

mime_pdfx_thumbnail Create a jpg thumbnail of the first page of the PDF



Tags:

return:  on success, FALSE on failure
access:  public


Parameters

array   $pFileHash   file details.
array   $pFileHash[upload]   should contain a complete hash from $_FILES
[ Top ]



mime_pdfx_update [line 91]

TRUE mime_pdfx_update( &$pStoreRow, [ $pParams = NULL], array $pStoreRow)

mime_pdf_update update file information in the database if there were changes.



Tags:

return:  on success, FALSE on failure - $pStoreRow[errors] will contain reason
access:  public


Parameters

array   $pStoreRow   File data needed to update details in the database
   &$pStoreRow  
   $pParams  
[ Top ]



Documentation generated on Wed, 29 Jul 2015 13:57:08 +0000 by phpDocumentor 1.5.0-lsces