Пример #1
0
 public function run()
 {
     $groupName = Group::standardizeGroupName($this->request->getPar('group'));
     $group = new Group();
     $group->setName($groupName);
     $group = $group->read();
     if ($group === null) {
         throw new GraphException('Group ' . $groupName . ' not found');
     }
     $nGroup = Group::getByRequest();
     $nGroup->setId($group->getId());
     $nGroup->setVersion($group->getVersion());
     $this->sendModel($nGroup->update());
 }
Пример #2
0
 public function run()
 {
     $this->sendModel(Group::getByRequest()->create());
 }