Mage_Dataflow_Model_Convert_Container_Collection Class Reference

List of all members.

Public Member Functions

 setDefaultClass ($className)
 addItem ($name, Mage_Dataflow_Model_Convert_Container_Interface $item)
 getItem ($name)
 hasItem ($name)

Protected Attributes

 $_items = array()
 $_defaultClass = 'Mage_Dataflow_Model_Convert_Container_Generic'


Detailed Description

Definition at line 35 of file Collection.php.


Member Function Documentation

addItem ( name,
Mage_Dataflow_Model_Convert_Container_Interface item 
)

Definition at line 48 of file Collection.php.

00049     {
00050         if (is_null($name)) {
00051             if ($item->getName()) {
00052                 $name = $item->getName();
00053             } else {
00054                 $name = sizeof($this->_items);
00055             }
00056         }
00057 
00058         $this->_items[$name] = $item;
00059 
00060         return $item;
00061     }

getItem ( name  ) 

Definition at line 63 of file Collection.php.

00064     {
00065         if (!isset($this->_items[$name])) {
00066             $this->addItem($name, new $this->_defaultClass());
00067         }
00068         return $this->_items[$name];
00069     }

hasItem ( name  ) 

Definition at line 71 of file Collection.php.

00072     {
00073         return isset($this->_items[$name]);
00074     }

setDefaultClass ( className  ) 

Definition at line 42 of file Collection.php.

00043     {
00044         $this->_defaultClass = $className;
00045         return $this;
00046     }


Member Data Documentation

$_defaultClass = 'Mage_Dataflow_Model_Convert_Container_Generic' [protected]

Definition at line 40 of file Collection.php.

$_items = array() [protected]

Definition at line 38 of file Collection.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:05 2009 for Magento by  doxygen 1.5.8