public function __construct(User_ForgeUGroup $group, array $permissions, $users) { $this->id = $group->getId(); $this->title = $group->getName(); $this->description = $group->getDescription(); $this->is_current = false; $this->permissions = $permissions; $this->users = $users; }
public function __construct(User_ForgeUGroup $group = null) { $this->is_new = true; if ($group) { $this->id = $group->getId(); $this->name = $group->getName(); $this->description = $group->getDescription(); $this->is_new = false; } }