/** * Get Action * @param string $id * @return Ext_Grid_Column_Action_Button * @throws Exception */ public function getAction($id) { if (!$this->actionExists($id)) { throw new Exception('Invalid action'); } return $this->_actions->getItemData($id); }
/** * Get item data * @param mixed $id * @return array */ public function getItemData($id) { return $this->_tree->getItemData($id); }
/** * @depends testGetItem */ public function testGetItemData() { $tree = new Tree(); $item = new stdClass(); $item->id = 1; $tree->addItem($item->id, 0, $item); $this->assertEquals($tree->getItemData($item->id), $item); }