示例#1
0
文件: Action.php 项目: vgrish/dvelum
 /**
  * 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);
 }
示例#2
0
文件: Project.php 项目: vgrish/dvelum
 /**
  * Get item data
  * @param mixed $id
  * @return array
  */
 public function getItemData($id)
 {
     return $this->_tree->getItemData($id);
 }
示例#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);
 }