/**
  * 
  * @param array $group
  * @return bool $success
  */
 public function editGroup($group)
 {
     $groupClone = $this->cloneGroup();
     $groupClone->setAllFields($this->validator->checkFields($group));
     $success = $this->modelRepository->editGroup($groupClone->getGroup());
     return $success;
 }
Ejemplo n.º 2
0
 /**
  * 
  * @param array $group
  * @return int $id
  */
 public function createGroup($group)
 {
     $group = $this->validator->checkFields($group);
     $id = $this->modelRepository->createGroup($group);
     return $id;
 }