@@ 926-944 (lines=19) @@ | ||
923 | * Delete the selected members |
|
924 | * @return void|BaseObject (void : success, BaseObject : fail) |
|
925 | */ |
|
926 | function procMemberAdminDeleteMembers() |
|
927 | { |
|
928 | $target_member_srls = Context::get('target_member_srls'); |
|
929 | if(!$target_member_srls) return new BaseObject(-1, 'msg_invalid_request'); |
|
930 | $member_srls = explode(',', $target_member_srls); |
|
931 | $oMemberController = getController('member'); |
|
932 | ||
933 | foreach($member_srls as $member) |
|
934 | { |
|
935 | $output = $oMemberController->deleteMember($member); |
|
936 | if(!$output->toBool()) |
|
937 | { |
|
938 | $this->setMessage('failed_deleted'); |
|
939 | return $output; |
|
940 | } |
|
941 | } |
|
942 | ||
943 | $this->setMessage('success_deleted'); |
|
944 | } |
|
945 | ||
946 | /** |
|
947 | * Update a group of selected memebrs |
@@ 615-626 (lines=12) @@ | ||
612 | * Delete extra variables of the module |
|
613 | * @return void|object |
|
614 | */ |
|
615 | function procDocumentAdminDeleteExtraVar() |
|
616 | { |
|
617 | $module_srl = Context::get('module_srl'); |
|
618 | $var_idx = Context::get('var_idx'); |
|
619 | if(!$module_srl || !$var_idx) return new BaseObject(-1,'msg_invalid_request'); |
|
620 | ||
621 | $oDocumentController = getController('document'); |
|
622 | $output = $oDocumentController->deleteDocumentExtraKeys($module_srl, $var_idx); |
|
623 | if(!$output->toBool()) return $output; |
|
624 | ||
625 | $this->setMessage('success_deleted'); |
|
626 | } |
|
627 | ||
628 | /** |
|
629 | * Control the order of extra variables |