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

Class: Option

Source Location: /code/product/Option.php

Class Overview

DataObject
   |
   --Option

Represents an Option for an Attribute, e.g: Small, Medium, Large, Red etc.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Variables

Methods



Class Details

[line 14]
Represents an Option for an Attribute, e.g: Small, Medium, Large, Red etc.

Default Options can be created for Attributes, they are pre populated and duplicated into the Product when the Attribute is added to a Product. Options can be changed for each Product. Default Options will have a ProductID of 0.




Tags:

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


[ Top ]


Class Variables

static $belongs_many_many = array(    
    'Variations' => 'Variation'
  )

[line 41]

Belongs many many relations for an Option


Type:   Array


[ Top ]

static $db = array(
    'Title' => 'Varchar(255)',
    'Description' => 'Text'
  )

[line 21]

DB fields for this Option



Tags:

access:  public

Type:   Array


[ Top ]

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

[line 31]

Has one relations for an Option



Tags:

access:  public

Type:   Array


[ Top ]



Class Methods


method getCMSFields_forPopup [line 50]

FieldSet getCMSFields_forPopup( )

Set fields for editing an Option in the CMS



Tags:

access:  public


[ Top ]


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