Ejemplo n.º 1
0
 /**
  * Adds TDataGridItem object to the body collection.
  * This method will be invoked when adding an item to the collection.
  * @param mixed the item to be added.
  * @return boolean whether the item should be added.
  */
 protected function onAddItem($item)
 {
     if ($item instanceof TDataGridItem) {
         $this->grid->addBody($item);
         return true;
     } else {
         return false;
     }
 }