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' |
Definition at line 35 of file Collection.php.
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 | ) |
setDefaultClass | ( | $ | className | ) |
$_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.