Files
luos/workflow/engine/classes/model/Session.php
Ronald Quenta 94d4ce1f85 PMC-124
2018-12-17 16:32:39 -04:00

38 lines
874 B
PHP

<?php
/**
* Session.php
* @package workflow.engine.classes.model
*/
require_once 'classes/model/om/BaseSession.php';
/**
* Skeleton subclass for representing a row from the 'SESSION' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package workflow.engine.classes.model
*/
class Session extends BaseSession
{
/**
* Delete all records related to a user uid
* @param string $userUid User uid
* @return int
* @throws PropelException
*/
public function removeByUser($userUid)
{
$criteria = new Criteria();
$criteria->add(SessionPeer::USR_UID, $userUid);
$resultSet = SessionPeer::doDelete($criteria);
return $resultSet;
}
}