Skip to content
Snippets Groups Projects
Verified Commit ff442980 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #7888 freeze pj if it is in status 'FRZ'

parent 6852c83b
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,22 @@ abstract class AttachmentModelAbstract
return true;
}
public static function freezeAttachment(array $aArgs)
{
ValidatorModel::notEmpty($aArgs, ['table', 'resId']);
ValidatorModel::stringType($aArgs, ['table']);
ValidatorModel::intVal($aArgs, ['resId']);
DatabaseModel::update([
'table' => $aArgs['table'],
'set' => ['status' => 'FRZ'],
'where' => ['res_id = ?'],
'data' => [$aArgs['resId']]
]);
return true;
}
public static function setInSignatureBook(array $aArgs)
{
ValidatorModel::notEmpty($aArgs, ['id', 'isVersion']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment