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

Class: ProductImage

Source Location: /code/product/ProductImage.php

Class Overview

DataObject
   |
   --ProductImage

A image for Products.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Variables

Methods



Class Details

[line 11]
A image for Products.



Tags:

author:  Frank Mullenger <frankmullenger@gmail.com>
version:  1.0
copyright:  Copyright (c) 2011, Frank Mullenger


[ Top ]


Class Variables

static $db = array (
    'Caption' => 'Text'
  )

[line 18]

DB fields for the ProductImage


Type:   Array


[ Top ]

static $has_one = array (
    'Image' => 'Image',
    'Product' => 'Product'
  )

[line 27]

Has one relations for a ProductImage


Type:   Array


[ Top ]



Class Methods


method fortemplate [line 63]

Image|String fortemplate( )

Necessary for displaying product images in the CMS



Tags:

return:  If no image can be found returns '(No Image)'


[ Top ]

method getCMSFields_forPopup [line 37]

FieldSet getCMSFields_forPopup( )

Create fields for editing a ProductImage in the CMS.



Tags:

access:  public


[ Top ]

method SummaryOfImage [line 53]

Image|String SummaryOfImage( )

Helper method to return a thumbnail image for displaying in CTF fields in CMS.



Tags:

return:  If no image can be found returns '(No Image)'


[ Top ]


Documentation generated on Thu, 08 Mar 2012 16:47:28 +1300 by phpDocumentor 1.4.4