コード例 #1
0
 /**
  * write brief description
  * @param array $input
  */
 public function createOrganization(array $input)
 {
     $org = new Organization();
     $org->name = json_encode($input['name']);
     $org->user_identifier = $input['user_identifier'];
     $org->address = $input['address'];
     $org->telephone = $input['telephone'];
     $org->reporting_org = json_encode($input['reporting_org']);
     $org->save();
 }
コード例 #2
0
 /**
  * @param $input
  * @param $organization
  */
 public function update(array $input, Organization $organization)
 {
     $organization->reporting_org = $input['reporting_org'];
     $organization->save();
 }