コード例 #1
0
 /**
  * 
  * @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;
 }
コード例 #2
0
 /**
  * 
  * @param array $group
  * @return int $id
  */
 public function createGroup($group)
 {
     $group = $this->validator->checkFields($group);
     $id = $this->modelRepository->createGroup($group);
     return $id;
 }