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

Procedural File: mime.themes.php

Source Location: d:\website\PhpDocumentor\/treasury/plugins/mime.themes.php



Page Details:



Tags:

filesource:  Source Code for this file
author:  xing <xing@synapse.plus.com>
version:  $Header: /cvsroot/bitweaver/_bit_treasury/plugins/mime.themes.php,v 1.15 2007/01/07 21:06:06 squareing Exp $
version:  $Revision: 1.15 $ created Sunday Jul 02, 2006 14:42:13 CEST


Includes:

require_once('mime.default.php') [line 58]





TREASURY_MIME_GUID_THEME [line 22]

TREASURY_MIME_GUID_THEME = 'mime_theme'
This is the name of the plugin - max char length is 16

As a naming convention, the treasury mime handler definition should start with: TREASURY_MIME_GUID_



[ Top ]




treasury_theme_get_icons [line 220]

Path treasury_theme_get_icons( array $pPath, [ $pIconDir = 'large'], [ $pPattern = '/\.(png|gif|jpe?g)$/i'])

Extract icons found in the theme archive



Tags:

return:  to preview image on success, FALSE on failure
access:  public


Parameters

array   $pPath   Path to extracted archive
   $pIconDir  
   $pPattern  
[ Top ]



treasury_theme_get_preview [line 172]

Path treasury_theme_get_preview( array $pPath)

Extract style_info/preview.<ext> for theme icon



Tags:

return:  to preview image on success, FALSE on failure
access:  public


Parameters

array   $pPath   Path to extracted archive
[ Top ]



treasury_theme_get_screenshots [line 196]

Path treasury_theme_get_screenshots( array $pPath)

Extract screenshots found in the theme archive



Tags:

return:  to preview image on success, FALSE on failure
access:  public


Parameters

array   $pPath   Path to extracted archive
[ Top ]



treasury_theme_load [line 139]

TRUE treasury_theme_load( &$pFileHash, array $pRow)

Load file data from the database



Tags:

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


Parameters

array   $pRow  
   &$pFileHash  
[ Top ]



treasury_theme_process_extracted_files [line 244]

TRUE treasury_theme_process_extracted_files( array $pStoreRow)

All the files that have been extracted so far need to be processed and moved around



Tags:

return:  on success, FALSE on failure - mErrors will contain reason for failure
access:  public


Parameters

array   $pStoreRow  
[ Top ]



treasury_theme_store [line 125]

TRUE treasury_theme_store( &$pStoreRow, &$pCommonObject, 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  
   &$pCommonObject  
[ Top ]



treasury_theme_update [line 111]

TRUE treasury_theme_update( &$pStoreRow, &$pCommonObject, array $pStoreRow)

When a file is edited



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  
   &$pCommonObject  
[ Top ]



treasury_theme_verify [line 68]

TRUE treasury_theme_verify( &$pStoreRow, array $pStoreRow, array $pStoreRow['upload'])

Sanitise and validate data before it's stored



Tags:

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


Parameters

array   $pStoreRow   Hash of data that needs to be stored
array   $pStoreRow['upload']   Hash passed in by $_FILES upload
   &$pStoreRow  
[ Top ]



Documentation generated on Thu, 15 Feb 2007 20:44:12 +0000 by phpDocumentor 1.3.0