4
* sfGuardUserProfileTable
6
* This class has been auto-generated by the Doctrine ORM Framework
8
class sfGuardUserProfileTable extends PluginsfGuardUserProfileTable
11
* Returns an instance of this class.
13
* @return object sfGuardUserProfileTable
15
public static function getInstance()
17
return Doctrine_Core::getTable('sfGuardUserProfile');
20
public function getByToken(array $parameters)
22
$user = Doctrine_Core::getTable('sfGuardUserProfile')->findOneByToken($parameters['token']);
23
if (!$user || !$user->getIsWebserviceClient() ||!$user->getIsActive())
25
throw new sfError404Exception(sprintf('Client with token "%s" does not exist or is not activated.', $parameters['token']));
b'\\ No newline at end of file'