Exemple #1
0
 /**
  * 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);
 }
Exemple #2
0
 /**
  * Get item data
  * @param mixed $id
  * @return array
  */
 public function getItemData($id)
 {
     return $this->_tree->getItemData($id);
 }
Exemple #3
0
 /**
  * @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);
 }