4
* PluginapApplicablePoliciesTable
6
* This class has been auto-generated by the Doctrine ORM Framework
8
class PluginapApplicablePoliciesTable extends Doctrine_Table
11
* Returns an instance of this class.
13
* @return object PluginapApplicablePoliciesTable
15
public static function getInstance()
17
return Doctrine_Core::getTable('PluginapApplicablePolicies');
20
public function getForIdentity($identity) {
21
$lastconn = Doctrine::getTable('Connection')->getLastConnectionFor($identity);
23
$policies = $lastconn->getPolicies();
24
foreach ($policies as $policy) {
25
$policy->setThisTotalData($policy->getThisTotalData() - ($lastconn->getIncoming() + $lastconn->getOutgoing()));
b'\\ No newline at end of file'