PMC-61
This commit is contained in:
@@ -8,6 +8,7 @@ use G;
|
||||
use PMmemcached;
|
||||
use ProcessPeer;
|
||||
use ResultSet;
|
||||
use UsersPropertiesPeer;
|
||||
|
||||
class Process
|
||||
{
|
||||
@@ -2160,4 +2161,21 @@ class Process
|
||||
|
||||
return $processes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set for the first time the user opened the dynaform editor.
|
||||
*
|
||||
* @param string $usrUid
|
||||
* @param string $seen
|
||||
*/
|
||||
public function setIfFirstTimeConsumed($usrUid, $seen)
|
||||
{
|
||||
if ($seen === '1') {
|
||||
$userProperties = UsersPropertiesPeer::retrieveByPk($usrUid);
|
||||
if ($userProperties) {
|
||||
$userProperties->setPmDynaformFirstTime('1');
|
||||
$userProperties->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user