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

Class: ItemOption

Source Location: /code/order/ItemOption.php

Class Overview

DataObject
   |
   --ItemOption

An option for an Item in the Order. Items can have many ItemOptions.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Variables

Methods



Class Details

[line 11]
An option for an Item in the Order. Items can have many ItemOptions.



Tags:

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


[ Top ]


Class Variables

static $create_table_options = array(
      'MySQLDatabase' => 'ENGINE=InnoDB'
   )

[line 39]

Set table type to InnoDB to support transactions which are not currently implemented.


Type:   Array


[ Top ]

static $db = array(
     'ObjectID' => 'Int',
     'ObjectClass' => 'Varchar',
     'ObjectVersion' => 'Int',
     'Amount' => 'Money'
   )

[line 18]

DB fields for this class



Tags:

access:  public

Type:   Array


[ Top ]

static $has_one = array(
     'Item' => 'Item'
   )

[line 30]

Relations for this class



Tags:

access:  public

Type:   Array


[ Top ]



Class Methods


method Object [line 50]

DataObject Object( )

Retrieve the object this item represents, usually a Variation.

Uses the object version so that the correct object details such as price are retrieved.




[ Top ]

method onAfterWrite [line 63]

void onAfterWrite( )



Tags:

access:  public


[ Top ]

method validate [line 59]

void validate( )

By default all ItemOptions are valid.



[ Top ]


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