0) { $criteria->Limit = $limit; } return ClientRecord::finder()->findAll($criteria); } public function getClientByName($name) { return ClientRecord::finder()->findByName($name); } public function getClientById($id) { return ClientRecord::finder()->findByclientid($id); } public function setClient($clientId, $clientOptions) { $client = $this->getClientById($clientId); if(property_exists($clientOptions, 'fileretention')) { $client->fileretention = $clientOptions->fileretention; } if(property_exists($clientOptions, 'jobretention')) { $client->jobretention = $clientOptions->jobretention; } if(property_exists($clientOptions, 'autoprune')) { $client->autoprune = $clientOptions->autoprune; } return $client->save(); } } ?>