Ejemplo n.º 1
0
 /**
  * Remove a field from this group and the GroupedFields container.
  *
  * @param string $id
  * @return Group
  */
 public function remove($id)
 {
     // This check ensures we don't enter an infinite loop because the set will try to remove from the group as well
     if ($this->groupedFields->has($id)) {
         $this->groupedFields->remove($id);
     }
     return parent::remove($id);
 }
Ejemplo n.º 2
0
 /**
  * Remove a field from this collection.  This will remove it from the
  * core collection and whatever group it is a member of.
  *
  * @param string $id
  * @return GroupedFields
  */
 public function remove($id)
 {
     parent::remove($id);
     foreach ($this->groups as $group) {
         if ($group->has($id)) {
             $group->remove($id);
         }
     }
     return $this;
 }