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

Class: OrderItemField

Source Location: /code/form/OrderItemField.php

Class Overview

FormField
   |
   --OrderItemField

Represent each Item in the Order on the OrderForm.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Variables

Methods



Class Details

[line 11]
Represent each Item in the Order on the OrderForm.



Tags:

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


[ Top ]


Class Variables

$item =

[line 25]

Current Item this field represents.



Tags:

access:  protected

Type:   Item


[ Top ]

$template =  "OrderItemField"

[line 18]

Template for rendering



Tags:

access:  protected

Type:   String


[ Top ]



Class Methods


constructor __construct [line 33]

OrderItemField __construct( Item $item, [Form $form = null])

Construct the form field and set the Item it represents.



Parameters:

Item   $item  
Form   $form  

[ Top ]

method FieldHolder [line 46]

String FieldHolder( )

Render the form field with the correct template.



[ Top ]

method Item [line 55]

Item Item( )

Retrieve the Item this field represents.



[ Top ]

method setItem [line 64]

void setItem( Item $item)

Set the Item this field represents.



Parameters:

Item   $item  

[ Top ]

method validate [line 75]

Boolean validate( $validator)

Validate this form field, make sure the Item exists, is in the current Order and the item is valid for adding to the cart.



Parameters:

   $validator  

[ Top ]


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