예제 #1
0
 /**
  * Checks if an item can be added into body collection.
  * @param mixed the item to be added
  * @param boolean whether the item should be added into the colleciton.
  */
 protected function onAddItem($item)
 {
     if ($this->control->allowBody($item)) {
         if ($item instanceof TControl) {
             $this->control->synchronizeControl($item);
         }
         return true;
     } else {
         return false;
     }
 }